如何在LaTeX中加下划线标题? [英] How to underline section-headings in LaTeX?
本文介绍了如何在LaTeX中加下划线标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用水平线从下列文本中分隔标题。目前,我使用以下内容:
$ $ $ $ $ $ $ c $ \ newcommand {\ tmpsection} [1] {}
\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
但是这会产生一行,与section-heading和以下文本相距太远。有没有人有更好的主意?
解决方案
您可以使用 \sectionrule
命令在 sectsty包中。
EDIT: As I see in the first answer, underline is the wrong word. I want a line under the section heading, separating the heading from the following text.
I want to separate section headings from the following text with a horizontal line. At the moment I use the following:
\newcommand{\tmpsection}[1]{}
\let\tmpsection=\section
\renewcommand{\section}[1]{\tmpsection{#1}\hrule\nobreak}
But that produces a line, that is too far away from the section-heading and to near to the following text. Has anyone a better idea?
解决方案
You can do this with the \sectionrule
command in the sectsty package.
这篇关于如何在LaTeX中加下划线标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文