When badness exceeds \hbadness, there should be Underfull. When badness exceeds \tolerance, there should be Overfull. Origin story.tex file is
\hrule
\vskip 1in
\centerline{\bf A SHORT STORY}
\vskip 6pt
\centerline{\sl by A. U. Thor}
\vskip .5cm
Once upon a time, in a distant
galaxy called \"O\"o\c c,
there lived a computer
named R.~J. Drofnats.
Mr.~Drofnats---or ``R. J.,'' as
he preferred to be called---% error has been fixed!
was happiest when he was at work
typesetting beautiful documents.
\vskip 1in
\hrule
\vfill\eject
After tex command, \hsize=1.5in \tolerance=10000\raggedright\hbadness=-1 \input story was input, then \end, but the log file showed
Underfull \hbox (badness 230) in paragraph at lines 7--11
\tenrm in a dis-tant galaxy
\hbox(6.94444+1.94444)x108.405, glue set 1.3203
.\tenrm i
.\tenrm n
.\glue(\spaceskip) 3.33298
.\tenrm a
.\glue(\spaceskip) 3.33298
.etc.
Loose \hbox (badness 15) in paragraph at lines 7--11
\tenrm called []O^^?o^^Xc, there lived
\hbox(9.20636+1.94444)x108.405, glue set 0.53001
.\tenrm c
.\tenrm a
.\tenrm l
.\tenrm l
.\tenrm e
.etc.
The code above is only a part of all. As \hbadness=-1, so there should be Underfull every line, but why are there Loose and what does Loose mean here?
\hbadnessdoes not affect whether or not a box is underfull, just whether there is a warning in the log.\toleranceis unrelated to overfull boxes it is a limit on the total badness in a paragraph, see https://tex.stackexchange.com/questions/241343/what-is-the-meaning-of-fussy-sloppy-emergencystretch-tolerance-hbadness/241355#241355 – David Carlisle Nov 13 '23 at 08:43\hbadnessaffects theUnderfullin the log file. – Y. zeng Nov 13 '23 at 10:05