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.

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?

share|improve this question

migrated from stackoverflow.com Feb 14 '12 at 16:41

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

9  
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
3  
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
3  
@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

1 Answer 1

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:

\raggedright (no hyphenation) on the left, \RaggedRight (with hyphenation) on the right

danger 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!

share|improve this answer

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.