[Tex/LaTex] Adjust spacing between text and horizontal rule

spacingtikz-pgf

Please consider the following code:

\documentclass{amsart}
\usepackage{tikz}
\begin{document}
\noindent \tikz\draw(0,0)--(\textwidth,0);
Some Text. More Text. More Text. \newline
\noindent \tikz\draw(0,0)--(\textwidth,0);
\end{document}

Below is a relevant part of the output that will explain the question:

Some Text

Question

How to reduce the space between the text and the second thin line (the lower one), so that the space between them equals the space between the first thin line (the upper one) and the text?

Best Answer

For dividing text with rules, here's a way. This doesn't ensure equal space between the rules, but the application you have in mind doesn't seem to need it.

\documentclass{article}

\newcommand{\divider}{\vskip2pt\hrule\vskip2pt}
\setlength{\parindent}{0pt}

\begin{document}
Some text

\divider

Some ptext

\divider

Some text

\divider

Some text

\end{document}

enter image description here

If you want that the rule automatically disappears at page breaks, then use

\newcommand{\divider}{%
  \vskip2pt
  \leaders\vrule width \textwidth\vskip0.4pt
  \nointerlineskip
  \vskip2pt
}