1

For a custom title page I need to set the font size to a specific value not covered by any of the standard \Large etc. font sizes. Therefore, I use the \fontsize command. Reducing to a minimal example my code looks like this:

\documentclass[a4paper,10pt]{article}
\begin{document}

{\noindent\fontsize{24pt}{29pt}\selectfont
\bfseries This is a\\ long title that is split\\ over multiple lines}

\vspace{2cm}
This is normal text.
\end{document}

This does change the font size, however it doesn't seem to change the baseline skip resulting in ugly line spacing. See image below:

enter image description here

The following code seems to do the trick

\noindent\parbox{\textwidth}{\fontsize{24pt}{29pt}\selectfont
\bfseries This is a\\ long title that is split\\ over multiple lines}

However this seems to be a bit overcomplicated and I don't see why the first code doesn't work. What is the easiest/recommended way to set the font size in my case?

lockstep
  • 250,273

0 Answers0