How can I remove the warning
Underfull \hbox (badness 10000) detected at line 4 \OT1/cmr/m/n/10 test
in the following MWE ?
\documentclass{article}
\begin{document}
\leavevmode\hbox to3cm{test}Hello
\end{document}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe latex syntax for this adds the glue to stop the underful message (and \leavevmode
)
\documentclass{article}
\begin{document}
\makebox[3cm][l]{test}Hello
\end{document}
\makebox[3cm][l]{test}
\hbox to 3cm{test\hfill}
.