[Tex/LaTex] Title page line spacing

line-spacingtitles

I have a simple problem but I didn't manage to find any answer for it. In my title page, I just used

\title{Name of the title}

then

\hrule height 0,1cm \leavevmode \\[0,5cm] 
   {\Huge{\textbf{\@title}}}\\[0,5cm]
\hrule height 0,1cm \leavevmode \\[0,5cm]

to print the title of my document.
But it takes more than 3 lines on the PDF file, and I have a different spacing between the 1st and 2nd line compared to the 2nd and 3rd, which is a bit frustrating.

Anyone got an idea of why ?

Best Answer

You gotta use paragraphs, not line breaks.

They guy who invented that dreadful rule business put that on wikibooks and it lives on. Better use no lines at all.

\documentclass{article}
\usepackage{showframe}
\begin{document}
\hrule height 0,1cm \leavevmode \\[0,5cm] 
{\Huge\textbf{ The incredible journey of Walter~Wombat }}\\[0,5cm]
\hrule height 0,1cm \leavevmode \\[0,5cm]

%Output of the screenshot
\begin{center}
\rule{\textwidth}{.4pt}\par
{\huge\bfseries The incredible journey of Walter~Wombat \par}
\rule{\textwidth}{.4pt}\par
\bigbreak
{\Large Carl Capybara\par}
\end{center}
\end{document}

quentinTitle