I can't fix this no matter how I set the parameters \pretolerance, \tolerance, and \emergencystretch.
Minimum Working Example with downloadable font using xelatex:
\documentclass[10pt,twoside]{book}
\usepackage[paperwidth=5.5in,paperheight=8.75in,left=1in,top=1in,right=0.75in,bottom=1in]{geometry}
\usepackage{fontspec}
\setmainfont{sorts_mill_goudy.otf}
\usepackage{fix-cm}
\usepackage{microtype}
\tolerance=2000
\emergencystretch=1in
\begin{document}
Vivamus est quam, maximus vulputate felis a, fringilla scelerisque sapien.
\vspace{2em}
\clearpage
\end{document}
Warning:
Underfull \hbox (badness 3503) in paragraph at lines 12--13
[]\EU1/sorts_mill_goudy.otf(0)/m/n/10 Vivamus est quam, maximus vulputate felis
a, fringilla
Nothing I try will eliminate this warning except masking it with \hbadness. In my real-life case, by changing \pretolerance or \tolerance in either direction I can produce more warnings, but there are several persistent ones like this. Increasing \emergencystretch has no effect.
I've read all of the following, and still have no clue what else to try:
- how to suppress "Underfull \vbox (badness 10000) ... while \output is active"?
- What are underfull hboxes and vboxes and how can I get rid of them?
- http://www.tex.ac.uk/FAQ-overfull.html
It's definitely unlikely to occur... I had to try some 20 paragraphs of generated lorem ipsum before I could reproduce this without using my exact real-life text.
However, if there are just rare combinations of text that are impossible to typeset without errors, why does my project have 3 of them in 11,000 words while the last one I did has 0 in 60,000?
And above all, why doesn't increasing \emergencystretch satisfy it?
I feel frustrated and confused here, and strongly relate to the use of "black art" to describe this part of LaTeX (What's the difference between \tolerance and \badness ?).


So changing
– Quartz Nov 26 '15 at 02:15\emergencystretchcan under no circumstances possibly effect warning output? It's great to know it's working properly ... I guess I just need to increase\hbadnessthen?fix-cmfrom my MWE, but it does seem to address warnings in my real example. I'm still pretty ignorant about its purpose and function TBH. – Quartz Nov 26 '15 at 02:34\parfillskipso it does not stretch enough to fill the last, short, line of the paragraph. – David Carlisle Nov 26 '15 at 07:57\parfillskipand can't seem to learn what it does. Just that it's something to the last line of the paragraph, but in my real case the offending line is the 1st of 5. It's only a badness of 1038, and it actually looks fine. Is it possible that it's just a better fit than the hyphenation would allow? – Quartz Nov 27 '15 at 15:56\-doesn't trigger hyphenation in the output. I'd love to make it hyphenate, but I guess I don't know how. – Quartz Nov 27 '15 at 16:09Public school in a lower-class neighborhood was a living nightmare for her.The line breaks betweenlivingandnightmarewith a badness of 1038, even if I sayliv\-ing night\-mare. – Quartz Nov 27 '15 at 16:13ni\-ght\-mareThe obvious solution is to spell neighbourhood as in British English, then the U will nicely fill out the line:-) – David Carlisle Nov 27 '15 at 17:30\documentclass{article} \textwidth=277.25pt \begin{document} Public school in a lower-class neighborhood was a living nightmare for her. \end{document}– David Carlisle Nov 27 '15 at 17:30\textwidth, and the only thing to do is change the text or increase\hbadness?Thanks for your help.
– Quartz Nov 27 '15 at 17:48