TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to force text (in a beamer slide) not to overflow to the next line, regardless of whether it fits into the page or not?

share|improve this question
you might use \rlap{...} to allow a line to exceed the usual line width. of course, this must be done on a case-by-case basis, and may also require the use of a forced line break if the "overflow text" is followed by more text. – barbara beeton Nov 15 '12 at 13:58
up vote 3 down vote accepted

If you box the contents inside \mbox (say), it doesn't know the length and therefore doesn't break/wrap:

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer
  \frametitle{This is a the frame title}
  Here is some text that will flow from this line into the following line.

  \mbox{Here is some text that will NOT flow from this line into the following line.}
share|improve this answer
this is actually not working for some reason in my beamer slide. Is there any reason that it could be the case? (the text still wraps even when surrounded by \mbox) – kloop Nov 15 '12 at 6:17
it must be related to something specific in my beamer .tex file, because your example does work. – kloop Nov 15 '12 at 6:18
@kloop: Well then, edit your post with an example that shows it doesn't work. Note that \mbox will only box the argument. If used in conjunction with other elements on the same line, it may break before/after \mbox, but not inside of it. – Werner Nov 15 '12 at 6:19

Your Answer


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.