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.

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
add comment

1 Answer

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
\begin{document}
\begin{frame}
  \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.}
\end{frame}
\end{document}
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
1  
@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
add comment

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.