Example:
\noindent
abcd abcd abcd abcd abcd abcd abcd aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
abcd abcd abcd abcd abcd abcd abcd aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
abcd abcd abcd abcd abcd \hbox{abcd abcd aaaaaaaaaaaaaaaaaaa}
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
abcd abcd abcd abcd abcd abcd abcd aaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
\end
As you can see the line with \hbox has different spacing. My question is, if we must have this \hbox, is it possible to let TeX see through this box and stretch the spaces inside and outside in the same way?
Edit. This example shows there is a difference between the second and the third lines, which is caused by the \hbox (for sake of this problem you can ignore the first and last lines). I need this \hbox to prevent potential line breaks, but still would like its internal spaces to be stretched in the same way as the outside ones. There may be other ways to prevent line breaks, but I really like \hbox for its simplicity and would like to stick with it if there is a way to solve the stretching problem.



sloppyparor one of the other tactics suggested here: How to avoid using \sloppy document-wide to fix overfull \hbox problems? – barbara beeton Dec 13 '20 at 02:29\hboxto bind several pieces together so that there won't be a line break in between. But then I noticed the spaces inside are not stretched as the ones outside, which produces ugly inconsistency. While there may be other ways to prevent line breaks, I really want to apply an\hboxsince it's very simple and illustrative. Any solutions are fine, TeX or LaTeX. – Cyker Dec 13 '20 at 06:26\hbox to {width}, but I have to manually probe this fixed width but that is both inaccurate and clumsy. – Cyker Dec 13 '20 at 06:31\raggedrightto turn off justification for the other lines, or\parfillskip=0ptto justify the last line. – John Kormylo Dec 13 '20 at 16:26