I am trying to create a uniform spacing between three lines, the middle of which has a different font size. However, when I try as follows, the spacing above the middle line is different from the one below.
\documentclass{article}
\begin{document}
One
\vspace{\baselineskip}
{\Huge Two\par}
\vspace{\baselineskip}
Three
\end{document}
This is what the generated PDF looks like:
I have tried \parbox
es and \minipage
s, but so far have not been able to create uniform spacing.
Can anyone explain why the vertical spacing generated by the above code is different and how uniform spacing could be achieved?
Best Answer
It's difficult to even define “uniform spacing”, but here's a possibility.
Stating
\prevdepth=\maxdimen
will make TeX use the\lineskip
between the two lines (default value 1pt) and we can add whatever vertical space we prefer.