[Tex/LaTex] Text going to next line – how to keep on same line

formattingtext manipulation

My cover for my thesis looks like this:

Thesis Cover

The relevant MWE looks like this (I am using a template)

\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
John \textsc{Smith}
% Your name
\href{mailto:john.doe@gmail.com}{john.doe@gmail.com}
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
Dr. Cornelius \textsc{Van der Westhuizen}% Supervisor's Name
\href{mailto:cornevdw@gmail.com}{cornevdw@gmail.com}
\end{flushright}
\end{minipage}\\[4cm]

How do I move the 'Huizen' part of 'Westhuizen' onto the same line?

Best Answer

although an explicit line break (the double backslash) may be needed because the name of your supervisor is very long, it may be enough just to provide a space after the name:

Dr. Cornelius \textsc{Van der Westhuizen} % Supervisor's Name
\href{mailto:cornevdw@gmail.com}{cornevdw@gmail.com}

as you have input it, the % that immediately follows the name in braces causes the \href{...} to be tied tightly to the end of the name, with no break. (it is also not a recognized place for a comma; even if the line were broken there with a comma, that wouldn't be the desired output.)

Related Question