How to avoid using \sloppy
document-wide to fix overfull \hbox
problems?
This is my minimal working example.
\documentclass[12pt]{report}
\usepackage[english,ngerman]{babel}
\usepackage[a4paper,inner=25mm,outer=25mm,top=30mm,bottom=30mm]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
Have a look at this URL ignoring the page margin within the text flow \textit{example.com/donc\_oe/longurl} lorem ipsum.\par
The very strange plugin Java-JDT (\textit{en. Java Development Toolkit}) "`Plugin-Entwicklungsumgebung"' -- what's wrong with this german word?\par
\lipsum[2]
\end{document}
With \sloppy
it looks better.
But I got told it's (obviously) better to avoid using it document-wide. What else can I do?
\url
from theurl
package.\usepackage[ngerman]{babel}
; so input the offending long word asPlugin"-Entwicklungsumgebung
, using the"-
shorthand: a hyphen allowing hyphenation in the rest of the word.Plugin"=Entwicklungsumgebung
\sloppy
throughout the whole document?