I’m typesetting a book in DIN A5 format which produces a lot of line breaks right after the “I” character, which doesn’t look very pleasing. Inserting a ~ right after would introduce more badboxes in my conditions (microtype is already employed with protrusion and expansion).
Is there a way to tell LaTeX (I’m compiling with pdftex) that breaking after the “I” is bad, so discouraging it, but still let it break if it would introduce a badbox otherwise?
MWE:
\documentclass[a5paper,10pt]{article}
\usepackage[left=18mm,right=25mm,top=18mm,bottom=25mm]{geometry}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[protrusion=true,expansion=true,stretch=20,shrink=20]{microtype}
\newcommand\sentence{This is the first long long sentence with interword spaces. I am broken off from the rest.}
\begin{document}
\pagestyle{empty}
\rule{4mm}{.5pt}\sentence\\
\rule{8mm}{.5pt}\sentence\\
\rule{12mm}{.5pt}\sentence\\
\rule{16mm}{.5pt}\sentence\\
\rule{20mm}{.5pt}\sentence\\
\rule{24mm}{.5pt}\sentence\\
\end{document}



I\nolinebreak[2]? – David Carlisle Aug 20 '15 at 20:07Iwith the command. – lblb Aug 20 '15 at 20:30