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

For some reason I can't compile the following small example in memoir.



\chapter{First chapter}
\chapter{Second chapter}
More text


Gives the following error:

! Undefined control sequence.
<argument> \hspace {0.4em}\resizebox 
                                     {!}{4ex}{\chapnamefont \bfseries \sffam...
l.13 \mainmatter

If I comment the line \chapterstyle{madsen} the document compiles well. I have used \chapterstyle{madsen} in other documents before. Why is it that I can't compile this one?

share|improve this question
Add \usepackage{graphicx}, as explained in the manual, p. 94, where the chapter style madsen is described. – egreg Mar 25 '12 at 22:24
Thanks @egreg, that fixed it! If you want to rewrite that as an answer, I"ll accept it. – Amelio Vazquez-Reina Mar 25 '12 at 22:28
up vote 6 down vote accepted

The description of the madsen chapter style on p. 94 of memoir's manual specifies that


is required.

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.