[Tex/LaTex] Placing text between horizontal lines generated by \rule: equispacing

rulesspacingvertical alignment

How to fix the vertical spacing between the text and the lines? In the following MWE the vertical space between the text and the line below it is much greater than the vertical space between the text and the line over it. I want those two vertical spaces to be equal and I want to be able to give a value to this vertical space.

\documentclass[12pt]{report}

\begin{document}

\rule{6cm}{0.4pt}\par
\textbf{\large TITLE}\par
\rule{8cm}{0.4pt}

\end{document}

Best Answer

The rule is drawn at the baseline of text. Hence the lower line is at the baseline of the next line of text.

enter image description here

So you have to lift the lower line by suitable amount. This may be done by \vspace or adding the depth to the \rule.

\documentclass[12pt]{report}

\begin{document}

\rule{6cm}{0.4pt}Some\par
\textbf{\large TITLE}\par%\vspace{-0.66\baselineskip}
\rule[0.66\baselineskip]{8cm}{0.4pt}Some

\end{document}

enter image description here