[OS X TeX] memoir question

Bruno Voisin bvoisin at mac.com
Sat Nov 27 02:49:45 EST 2004


Le 26 nov. 04, à 16:15, Gerben Wierda a écrit :

> I am using memoir in the article mode andn I want the appendices of my 
> article have the "Appendix" chapter name (while the chapters only have 
> numbers). I tried:
>
> \renewcommand{\appendixname}{Appendix}
> \appendix
> \chapter{Option Games}
>
> But that does not work. They are still just numbered A, B etc.

For the standard article class, \appendix is defined as:

\newcommand\appendix{\par
   \setcounter{section}{0}%
   \setcounter{subsection}{0}%
   \gdef\thesection{\@Alph\c at section}}

I haven't tried, but I imagine the following should work (to be put in 
the preamble):

\makeatletter
\renewcommand\appendix{\par
   \setcounter{section}{0}%
   \setcounter{subsection}{0}%
   \gdef\thesection{\appendixname\space\@Alph\c at section}}
\makeatother

For the memoir class, \appendix is defined as:

\newcommand\appendix{\par
   \setcounter{chapter}{0}%
   \setcounter{section}{0}%
   \gdef\@chapapp{\appendixname}%
   \gdef\thechapter{\@Alph\c at chapter}}

hence you could try:

\makeatletter
\renewcommand\appendix{\par
   \setcounter{chapter}{0}%
   \setcounter{section}{0}%
   \gdef\@chapapp{\appendixname}%
   \gdef\thechapter{\appendixname\space\@Alph\c at chapter}}
\makeatother

Hope this works,

Bruno
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list