I'm using the book class and I want to renew its existing command \@makechapterhead. The original command is shown on p.32 of this document. In particular, I want to change the spacing in line 811 from 50 to 30, so I did the following
\renewcommand{\@makechapterhead}{
\def\@makechapterhead#1{%
\vspace*{30\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
⟨book⟩ \if@mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
⟨book⟩ \fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
}
But I got an error saying illegal parameter number in definition of \@makechapterhead. How do I fix this?
Thanks.
<book>tag in your redefinition? – Yan Zhou Jan 23 '17 at 02:06