4

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.