Search code examples
latexline-breaksdiacritics

Overfull box warning when breaking line with accent word in LaTex


I am writting a document in Spanish in LaTeX and the overfull box warning pops up. It is because LaTeX is trying to break the line with a word that has an accent. Because of this, that part of the document looks kind of bad because it goes over the margin. Is there a way to solve this?


Solution

  • Try the sloppypar enviroment in latex, it tells LaTeX to adjust word spacing less strictly.

    \begin{sloppypar} %your word / paragraph \end{sloppypar}