[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{flushleft} \large
John \textsc{Smith}
% Your name
\begin{flushright} \large
\emph{Supervisor:} \\
Dr. Cornelius \textsc{Van der Westhuizen}% Supervisor's Name

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

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