0

In my document I have several lines where the words are not wrapped to the next line. Latex writes it into the border area of the page.

I can not reproduce it in an MWE. There it is working correctly.

Maybe this a typical behavior and someone knows how to fix it.

It seems that it happens when the word has a hyphen. Is there a simple option to make those words wrap?

Here are screenshots:

1.

enter image description here 2.

enter image description here 3.

enter image description here 4.

enter image description here

Michael
  • 195
  • 2
    Could be this: https://tex.stackexchange.com/questions/63232/why-can-words-with-hyphen-char-not-be-hyphenated/63234#63234 ? – Rmano Nov 08 '19 at 11:56
  • 1
    And probably the easier solution is @loop-space https://tex.stackexchange.com/a/2715/38080 – Rmano Nov 08 '19 at 12:03
  • I replaced al hyphens by "= and now it works as expected. But I still don't understand why is is needed and doesn't work out of the box. – Michael Nov 08 '19 at 13:59
  • I'm happy it works for you. The reason is deep ingrained in the original TeX engine, see the answer by @egreg in the first question I linked. – Rmano Nov 08 '19 at 14:02
  • You have probably seen "hbox overfull" warning. – hola Apr 01 '21 at 16:19

1 Answers1

1

Have you tried using

\usepackage[language]{babel}

in your preamble? Remember that language should be the language in which you are writing your document.

With respect to that, take a look at this page, where they discuss the differences between german and ngerman option in the Babel package, which might be relevant for hyphenation.

plr
  • 371