[Tex/LaTex] How to make a bold horizontal rule under each section title

rulessectioning

I want to place a long bold \hrule-type line under the \section to make it more distinctive. How can I do that?

Best Answer

You can use the titlesec package; the optional argument for \titlerule allows you to control the rule "thickness":

\documentclass{article}
\usepackage{titlesec}

\titleformat{\section}
  {\normalfont\Large\bfseries}{\thesection}{1em}{}[{\titlerule[0.8pt]}]

\begin{document}

\section{Test Section}

\end{document}

enter image description here

Related Question