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

appendices

318 views
Skip to first unread message

R grdunik

unread,
Dec 2, 2011, 2:24:56 PM12/2/11
to
Hi,
How can I have more than 26 appendices within a document? Up to 26
seems to be ok but I need to have about 60 appendices.

Regards,
Reza

Dan Luecking

unread,
Dec 2, 2011, 4:35:31 PM12/2/11
to
On Fri, 2 Dec 2011 11:24:56 -0800 (PST), R grdunik
<grdsubsc...@gmail.com> wrote:

>Hi,
>How can I have more than 26 appendices within a document? Up to 26
>seems to be ok but I need to have about 60 appendices.

What are your requirements? I would simply
\renewcomand{\theappendix}{\arabic{appendix}}
and have them come out Appendix 1 through Appendix 60.

It seams silly to insist on letters, but if you must, the
package alphalph provides \AlphAlph to produce A through Z
and then AA through AZ, BA through BZ, etc.:

\usepackage{alphalph}
\renewcommand{\theappendix}{\AlphAlph{\value{appendix}}}


Dan
To reply by email, change LookInSig to luecking

R grdunik

unread,
Dec 2, 2011, 5:20:32 PM12/2/11
to
On Dec 2, 9:35 pm, Dan Luecking <LookIn...@uark.edu> wrote:
> On Fri, 2 Dec 2011 11:24:56 -0800 (PST), R grdunik
>
Hi Dan,

To get Appendix 1 through Appendix 60, I used the following as you
have suggested:

\appendix
\renewcommand\theappendix{\arabic{appendix}}

I have also added \usepackage{appendix} in preamble. However, I get
the following error message

! LaTeX Error: \theappendix undefined.

Regards,
Reza

Robin Fairbairns

unread,
Dec 3, 2011, 6:15:49 AM12/3/11
to
R grdunik <grdsubsc...@gmail.com> writes:

> On Dec 2, 9:35 pm, Dan Luecking <LookIn...@uark.edu> wrote:
>> On Fri, 2 Dec 2011 11:24:56 -0800 (PST), R grdunik
>> <grdsubscripti...@gmail.com> wrote:
>>
>> >How can I have more than 26 appendices within a document?  Up to 26
>> >seems to be ok but I need to have about 60 appendices.
>>
>> What are your requirements? I would simply
>>   \renewcomand{\theappendix}{\arabic{appendix}}
>> and have them come out Appendix 1 through Appendix 60.
>>
>> It seams silly to insist on letters, but if you must, the
>> package alphalph provides \AlphAlph to produce A through Z
>> and then AA through AZ, BA through BZ, etc.:
>>
>>   \usepackage{alphalph}
>>   \renewcommand{\theappendix}{\AlphAlph{\value{appendix}}}
>
> To get Appendix 1 through Appendix 60, I used the following as you
> have suggested:
>
> \appendix
> \renewcommand\theappendix{\arabic{appendix}}
>
> I have also added \usepackage{appendix} in preamble. However, I get
> the following error message
>
> ! LaTeX Error: \theappendix undefined.

if your document uses \chapter, say

\appendix
\renewcommand\thechapter{\arabic{chapter}}

and if it uses \section{}s but no \chapter{}s,

\appendix
\renewcommand\thesection{\arabic{chapter}}

this will work with the appendix package, too.

(note the same sort of thing will apply to the \AlphAlph solution if you
go for that:

\renewcommand{\theappendix}{\AlphAlph{\value{chapter}}}

or \value{section} as appropriate.)
--
Robin Fairbairns, Cambridge
my address is @cl.cam.ac.uk, regardless of the header. sorry about that.

Heiko Oberdiek

unread,
Dec 3, 2011, 2:05:06 PM12/3/11
to
\renewcommand{\thechapter}{\AlphAlph{\value{chapter}}
or
\renewcommand{\thesection}{\AlphAlph{\value{section}}

This could also be added in the preamble (if the
used \appendix does not need arguments):

\makeatletter
\g@addto@macro\appendix{%
\renewcommand*{\thechapter}{\AlphAlph{\value{chapter}}}%
}%
\makeatother

--
Heiko Oberdiek

Peter Flynn

unread,
Dec 3, 2011, 3:50:45 PM12/3/11
to
On 02/12/11 19:24, R grdunik wrote:
> Hi,
> How can I have more than 26 appendices within a document? Up to 26
> seems to be ok but I need to have about 60 appendices.

If they can be considered to form related groups, collapse them to a
smaller number and use \section.

///Peter

R grdunik

unread,
Dec 4, 2011, 6:47:47 PM12/4/11
to
On Dec 3, 11:15 am, Robin Fairbairns <r...@cl.cam.ac.uk> wrote:
Hi Robin,
The following works only if \input has not been used within the body
of chapters. Each of my appendices (chapters) has a \input for the
external file used for the given appendix.

> \appendix
> \renewcommand\thechapter{\arabic{chapter}}

With \input the above fails after 26 appendices.

Regards,
Reza



Heiko Oberdiek

unread,
Dec 5, 2011, 1:48:08 AM12/5/11
to
No. \input is not related to this in any way.
But the contents of the input file matters of course.
Check it, perhaps it contains another call of \appendix
that redefines \thechapter again to use \Alph.

--
Heiko Oberdiek

Dan Luecking

unread,
Dec 5, 2011, 9:21:19 AM12/5/11
to
My apologies. I keep forgetting that in most classes
appendices are obtained with \chapter. Others have
already given workable solutions. (Basically one needs
to redefine \thechapter after the \appendix command.)

R grdunik

unread,
Dec 6, 2011, 2:04:06 PM12/6/11
to
On Dec 3, 7:05 pm, Heiko Oberdiek <heiko.oberd...@googlemail.com>
wrote:
> Robin Fairbairns <r...@cl.cam.ac.uk> wrote:
Hi Heiko,

I have provided a small file in the following. I get an error message
when I latex the file -- that is no more than 26 appendices are
allowed. However, the file compiles without any problem creating the
appendices as expected when \usepackage{hyperref} and associated
hypersetup lines after it are commented!


\documentclass[12pt,a4paper]{report}
\usepackage[british]{babel}

\usepackage{hyperref}
\hypersetup{
colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black
}

\begin{document}

\appendix
\renewcommand\thechapter{\arabic{chapter}}


\chapter{1}
\chapter{2}
\chapter{3}
\chapter{4}
\chapter{5}
\chapter{6}
\chapter{7}
\chapter{8}
\chapter{9}
\chapter{10}
\chapter{11}
\chapter{12}
\chapter{13}
\chapter{14}
\chapter{15}
\chapter{16}
\chapter{17}
\chapter{18}
\chapter{19}
\chapter{20}
\chapter{21}
\chapter{22}
\chapter{23}
\chapter{24}
\chapter{25}
\chapter{26}
\chapter{27}
\chapter{28}



\end{document}


The error message is:

Appendix 26.
[26]
! Undefined control sequence.
\GenericError ...
#4 \errhelp
\@err@ ...
l.45 \chapter{27}


Regards,
Reza

Heiko Oberdiek

unread,
Dec 6, 2011, 2:49:58 PM12/6/11
to
R grdunik <grdsubsc...@gmail.com> wrote:

> \usepackage{hyperref}

> \appendix
> \renewcommand\thechapter{\arabic{chapter}}

% Add:

\renewcommand*{\theHchapter}{\arabic{chapter}}

Ab der nächsten hyperref-Version 6.82n wird hyperref
auch mit einer vergessenen Umdefinition von \theHchapter
zurechtkommen, indem statt \Alph ein \Hy@AlphNoErr
verwendet wird, das die Bereiche, bei denen \Alph einen
Fehler ausgibt, durch etwas Eigenes ersetzt und so die
Fehlermeldung ausbleibt.

--
Heiko Oberdiek

Heiko Oberdiek

unread,
Dec 6, 2011, 2:53:04 PM12/6/11
to
R grdunik <grdsubsc...@gmail.com> wrote:

> \usepackage{hyperref}

> \appendix
> \renewcommand\thechapter{\arabic{chapter}}

% Add:

\renewcommand*{\theHchapter}{\arabic{chapter}}

The next hyperref version 6.82n will use \Hy@AlphNoErr
instead of \Alph in \theHchapter to avoid error messages,
if the redefinition of \theHchapter has been forgotten.

--
Heiko Oberdiek

R grdunik

unread,
Dec 6, 2011, 2:58:03 PM12/6/11
to
On Dec 6, 7:49 pm, Heiko Oberdiek <heiko.oberd...@googlemail.com>
wrote:
> R grdunik <grdsubscripti...@gmail.com> wrote:
> > \usepackage{hyperref}
> > \appendix
> > \renewcommand\thechapter{\arabic{chapter}}
>
> % Add:
>
> \renewcommand*{\theHchapter}{\arabic{chapter}}
>
> Ab der n chsten hyperref-Version 6.82n wird hyperref
> auch mit einer vergessenen Umdefinition von \theHchapter
> zurechtkommen, indem statt \Alph ein \Hy@AlphNoErr
> verwendet wird, das die Bereiche, bei denen \Alph einen
> Fehler ausgibt, durch etwas Eigenes ersetzt und so die
> Fehlermeldung ausbleibt.
>
> --
> Heiko Oberdiek

Heiko you are a star. Thanks ever so much. It is working. Smashing.
You have saved my day.

Regards,
Reza

astro.um...@gmail.com

unread,
Apr 2, 2012, 11:58:27 AM4/2/12
to
Hi All,

I have more than 26 appendices in my paper. I somehow still have troubles with making the appendices Appendix AA..AZ. Here I used the following;


\usepackage{alphalph}
\renewcommand{\theappendix}{\AlphAlph{\value{appendix}}}

%%% more writings etc.

\appendix
\section{mySect1}
\section{mySect2}
....


It does not work this way. Also in alphalph.sty file, there is appendix word to run for appendices. I would be glad if you have a solution for this problem.
Thanks a lot.

Umut
0 new messages