Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Returning to chapter numbering after an appendix

3,658 views
Skip to first unread message

Colin Rowat

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
Hi all,

I'm using Scientific Word 2.5 as a frontend for LaTeX (Win 3.11)

I have placed an \appendix after my second \chapter{} but, after the
appendices, would like to be able to return to regular chapter headings,
a la:

Chapter 1
Chapter 2
Appendix A
Appendix B
Chapter 3

I am currently getting:

Chapter 1
Chapter 2
Appendix A
Appendix B
Appendix C

Does one use appendix.sty to get around this?

Thanks!

Colin Rowat
King's College
Cambridge tel: +44 (0)468 056 984
CB2 1ST UK fax: +44 (0)1223 335 219

p.s. I'd appreciate replies directly to this address as I don't check
this list frequently.


Rafael Feismann

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
On Wed, 02 Jun 1999 13:28:03 -0700, Colin Rowat <CI...@econ.cam.ac.uk>
wrote:


>I have placed an \appendix after my second \chapter{} but, after the
>appendices, would like to be able to return to regular chapter headings,
>a la:


Normally the \appendix is only used at the end of the document and
therefor there will be no problems with the seciton-numbering.

Maybe you can try \end{appendix} and will so return to the first
sectioning of your document.

R. Feismann

Peter Wilson

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to Colin Rowat
Colin Rowat wrote:
>
> Hi all,
>
> I'm using Scientific Word 2.5 as a frontend for LaTeX (Win 3.11)
>
> I have placed an \appendix after my second \chapter{} but, after the
> appendices, would like to be able to return to regular chapter headings,
> a la:
>
> Chapter 1
> Chapter 2
> Appendix A
> Appendix B
> Chapter 3
>
> I am currently getting:
>
> Chapter 1
> Chapter 2
> Appendix A
> Appendix B
> Appendix C
>
> Does one use appendix.sty to get around this?

Yes, but you will have to do a bit of work yourself to get the
chapter numbering correctly.
1) Use the appendices environment from the appendix package
2) In your preamble define a new counter (e.g. \newcounter{savechap})
3) Taking your example above, do it as:
\chapter{One}
\chapter{Two}
\setcounter{savechap}{\value{chapter}}
\begin{appendices}
\chapter{An appendix}
\chapter{Another}
\end{appendices}
\setcounter{chapter}{\value{savechap}}
\chapter{Three}

Basically, the \appendix command redefines the \chapter command and
sets the chapter number back to zero, and the appendices environment
does something similar. You then have to save the chapter number before
it gets reset to zero and after your appndix(es) reset the chapter
number back to what it was before going into appendix mode.

Peter W.
peter.r...@boeing.com

Robin Fairbairns

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to
Rafael Feismann <rfe...@gwdg.de> wrote:
>On Wed, 02 Jun 1999 13:28:03 -0700, Colin Rowat <CI...@econ.cam.ac.uk>
>wrote:
>>I have placed an \appendix after my second \chapter{} but, after the
>>appendices, would like to be able to return to regular chapter headings,
>>a la:
>
>Normally the \appendix is only used at the end of the document and
>therefor there will be no problems with the seciton-numbering.
>
>Maybe you can try \end{appendix} and will so return to the first
>sectioning of your document.

the grouping afforded by \begin{appendix} ... \end{appendix} will
allow restoration of the chapter name, but not of the chapter number.
that, you would have to restore manually:

\newcounter{savechap}

...

\setcounter{savechap}{\value{chapter}}
\begin{appendix}
\chapter{appendix A}
...
\end{appendix}
\setcounter{chapter}{\value{savechap}}


if you have several such blocks of appendices, you probably ought to
preserve the where the chapter number gets to inside the appendix
`environment', and restore it at the start of the environment, in a
similar fashion.
--
Robin Fairbairns, Cambridge

Peter Wilson

unread,
Jun 2, 1999, 3:00:00 AM6/2/99
to rfe...@gwdg.de
Rafael Feismann wrote:
>
> On Wed, 02 Jun 1999 13:28:03 -0700, Colin Rowat <CI...@econ.cam.ac.uk>
> wrote:
>
> >I have placed an \appendix after my second \chapter{} but, after the
> >appendices, would like to be able to return to regular chapter headings,
> >a la:
>
> Normally the \appendix is only used at the end of the document and
> therefor there will be no problems with the seciton-numbering.
>
> Maybe you can try \end{appendix} and will so return to the first
> sectioning of your document.
>
Sorry, but this won't work. The \appendix command (it is not an
environment) changes the definition of chapter (or section) and resets
numbering to zero. Indexes and Bibliographies only appear to work
properly after \appendix because, by default, they are unnumbered.

Peter W.
peter.r...@boeing.com

0 new messages