Is there any way I can tell LaTeX to try to do the normal full-justification if at all possible, but in worst case (if the h-box would otherwise be overfull), to just line-break early and leave a ragged right?
Asked
Active
Viewed 636 times
\raggedright, indeed. In less serious cases, it comes to my mind: not use big fonts in narrow columns, allow hyphenation whenever possible (sethyphenpenalty,\exhyphenpenalty,\pretolerance,\tolerance,\righthyphenmin,\lefthyphenmin, use \hyphenation or\-for unknown words), use themicrotypepackage, rewrite the text, set\emergencystretch, set\fontdimen3,\fontdimen4and\fontdimen7and ... Have I said already rewrite the text? – Fran Jan 21 '21 at 07:33\hboxmean that LaTeX already tried to do the normal full-justification automatically, but for some reason it not possible. So you must change something to make it possible. For a bibliography, the problem is the same, and the solutions too, (obviously except the rewrite of the text). – Fran Jan 23 '21 at 01:05\hboxmaking a line break whenever needed. This is exactly what\raggedrightdoes. If you want some less drastic ragged margin, allow some hyphenation (e.g.\raggedright\hyphenpenalty50) and/or allow more stretching and shrinking of the space between words (for instance, playing with\fontdimen). – Fran Jan 23 '21 at 10:48\mbox{...}around a lot of the letters. – Noldorin Jan 23 '21 at 19:16