In my text I am using lots of dates. Now I have the following problem: 1480–1541
(two figures and between them a dash) appears at the end of one line and extends over the line into the margin space without being properly broken into the next line. I guess this is caused by the dash. Something like 1480–\-1541
does not work, since it adds an extra hyphen. So, how I can achieve the proper result:
... ... ... 1480–
1541?
Best Answer
Sebastian,
I believe what you want for this is
\emergencystretch
, for example\emergencystretch=3em
. This allows TeX a bit more flexibility when it applies its line-breaking algorithm.Here is a simple example, followed by a picture. Try it out with different values between
0em
(the LaTeX default) and5em
and let us know if that works for you.And here's how that looks — no more overfull or underfull boxes. :) It's not perfect, but it may just do the trick for the text you are typesetting. How wide/narrow are your margins? This sample output below progresses through several narrowings: