Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

We have several group members whose names should be on the title slide of a Beamer document. However, when I put something like this:

\author{Person A \and Person B \and Person C \and Person D \and Person E}
\begin{document}
\maketitle
...
\end{document}

Person C's name will be broken across two lines.

How can I prevent this from happening?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Box the person's name using \mbox{Person C} (or \hbox{...}). Here's a little example:

enter image description here

\documentclass{beamer}
\author{Dude Azerbaijan \and Dude Bangkok \and Dude Canada 
\and Dude Denmark \and Dude Ethiopia \and Dude France}
\begin{document}
\maketitle
\end{document}

If you now use \mbox{Dude Denmark}, the result is:

enter image description here

share|improve this answer
    
Is there an advantage of using mbox over a unbreakable space ~? An if yes what is it? –  bloodworks Apr 15 '12 at 12:00
1  
@bloodworks: In this case I don't think so. \mbox will keep the entire box together, while an unbreakable space ~ might cause hyphenation in the names (thereby breaking the name yet again, just in a different place). –  Werner Apr 15 '12 at 14:24
    
Great, this works just fine. –  xiongtx Apr 15 '12 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.