Hyphenation in Beamer Presentations

I am using beamer in LaTeX to create a presentation. But it seems hyphenation is disabled. At least for the items inside itemize environments and text inside the blocks I don't see any hyphenation while by eye inspection I expect LaTeX to do automatic hyphenation and produce nicer paragraphs.

Is there any specific command so that I can force LaTeX to run automatic hyphenation?

-

migrated from stackoverflow.comFeb 14 '12 at 16:41

This question came from our site for professional and enthusiast programmers.

Yes, it is disabled. IIRC, the standpoint on this (which one may or may not disagree with) is "if you need automatic hyphenation, you have too much text on your slides; and, like a heading, every slide warrants manual hyphenation". –  Ulrich Schwarz Feb 14 '12 at 11:23
I'll be even more extreme than @UlrichSchwarz: If you have more than ten words on your slides, you have too much text... –  Brent.Longborough Feb 14 '12 at 14:15
@Brent - that limit applies to each slide, or to all of them combined? ;) –  Michael Palmer Feb 14 '12 at 19:58
@MichaelPalmer: The former if you're really garrulous, the latter if not... (¦-} –  Brent.Longborough Feb 14 '12 at 20:39
So anyways is there a solution? Even for manually enabling hyphenation wherever it seems necessary? –  Mani Bastani Parizi Feb 15 '12 at 15:45

Actually, beamer doesn't disable hyphenation. However, as \raggedright instead of justified text is used, hyphenation becomes nearly impossible. You can use the ragged2e package which provides the \RaggedRight macro to get better results:

\documentclass{beamer}
\usepackage{ragged2e}
\let\raggedright=\RaggedRight
\usepackage{kantlipsum} % only used to generate dummy text
\begin{document}
\begin{frame}
\begin{itemize}
\item \kant[1]
\end{itemize}
\end{frame}
\end{document}


Compare the output of \raggedright and \RaggedRight:

Still, I totally agree with the comments you already received: If you actually need automatic hyphenation, you should probably think about reducing the amount of text on your slides!

-