# Is there a way to force text to NOT wrap to the next line?

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?

-
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

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

\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}

-
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