How can I remove the warning

Underfull \hbox (badness 10000) detected at line 4 \OT1/cmr/m/n/10 test

in the following MWE ?

\leavevmode\hbox to3cm{test}Hello
  • the latex syntax would not need leavmode or hbox \makebox[3cm][l]{test} Aug 19, 2021 at 11:56
  • The TeX syntax would be \hbox to 3cm{test\hfill}. Aug 19, 2021 at 13:50
  • @campa I voted to undelete yours as it explained why the message happens, I would have said something about that if your answer hadn't been there already. Aug 20, 2021 at 10:08

1 Answer 1


The latex syntax for this adds the glue to stop the underful message (and \leavevmode)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .