Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

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.