I use memoir class, I get an error message file ended when scanning \makechapterstye

This is what I want. I get the code from "Variation over VZ39, contributed by Danie Els, Various chapter styles for the memoir class" by LarsMadsen

Can anyone help me please? This is the code :

\usepackage{fourier} % or what ever
\usepackage[scaled=.92]{helvet}%. Sans serif Helvetica
\leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}
\makebox[0pt][c]{#1\strut} \\[.5ex]
\chaptitlefont ##1\par}}%

Error message : File ended while scanning use of \makechapterstyle.

  • 1
    You should add an example of your LaTeX code. – egreg Sep 4 '11 at 9:33

You're missing the closing brace in the last \parbox first argument, but as it is it means nothing:


isn't a dimension. What you probably want is


You need also to change the code in \BuildChpNum:

    \makebox[0pt][c]{#1\strut} \\[.5ex]

Using a \rule to get a horizontal space is quite strange; moreover the two 1ex are different, as the first is from \normalfont and the second is from \bfseries. Adjust the 6pt to something that pleases you.

  • Thanks egreg, you're right . with this all running well : \parbox[t]{\hsize-\wd\ChpNumBox-1em}{% – Verly Sep 4 '11 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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