TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't find the reason for getting this message:

Underfull \hbox (badness 10000) in paragraph

This is my test case:

\newcommand{\rulercap}[1]{\ruler{\Large #1\hfill\\}\ruler}

\rulercap{test caption}
share|improve this question

Your second call to \ruler ends with a linebreak, but the line is empty, which creates an underfull hbox. Do this instead:

\newcommand{\rulercap}[1]{\ruler\\{\Large #1\hfill\\}\ruler}

\rulercap{test caption}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.