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.

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

I am trying to achieve text, that uses hyphentation despite being centered. Apparently this is something non-standard to latex.

Help very much appreciated.

Thanks a lot in advance.

MWE:

\documentclass[12pt, oneside]{Thesis}
\usepackage{lipsum}
\usepackage[english,ngerman]{babel}

\begin{document}
  \lipsum[10]
  \centering
  \lipsum[10]
\end{document}
share|improve this question
up vote 7 down vote accepted

\centering does not suppress hyphenation but the penalties and glue are such that it will (almost) always be the case that there is a lower penalty for having a shorter line.

The ragged2e package has \Centering which is less flexible at the margins, so more likely to choose hyphenation,

enter image description here

\documentclass[12pt, oneside]{article}
\usepackage{lipsum,ragged2e}
\usepackage[english,ngerman]{babel}

\begin{document}
  \lipsum[10]
  \Centering
  \lipsum[10]
\end{document}
share|improve this answer
    
That was quick! Thanks a lot. – Grodon Jan 17 at 15:33

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.