4

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?

1 Answer 1

8

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

3
  • Is there an advantage of using mbox over a unbreakable space ~? An if yes what is it?
    – bloodworks
    Commented Apr 15, 2012 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
    Commented Apr 15, 2012 at 14:24
  • Great, this works just fine. Commented Apr 15, 2012 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .