[OS X TeX] memoir question
Gerben Wierda
Gerben.Wierda at rna.nl
Sat Nov 27 09:39:12 EST 2004
On 27 Nov 2004, at 08:49, Bruno Voisin wrote:
> 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,
This works for the heading. However, the table of contents is all
screwed up ("Appendix A" and "Option Games" are printed on top of each
other) and the header now says "Appendix Appendix A".
G
>
> 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>
>
>
>
--------------------- 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