In the following code, the hrules are different distances from the baselines. The first hrule is at the baseline of the text and the second is at the bottom of the y. How can I make them the same whether or not letters extend past the baseline?
Section x
\hrule height 0.5pt
\vspace*{1cm}
Section y
\hrule height 0.5pt
Also, why is this behavior happening? Even if I put a vspace{2pt} between each Section x/y and hrule, the spacing between the text and the lines varies. I thought vspace created a space starting at the baseline of the text.
Edit: One solution I have found to get an hrule at the baseline is to do
Section y
\\ \vspace{-\baselineskip}
\hrule height 0.5pt
but this is kind of hackish.
