[Tugindia] Appendex Section Numbering

Radhakrishnan CV cvr at river-valley.org
Thu Feb 4 03:34:36 CET 2010


On Wed, Feb 3, 2010 at 10:27 PM, mihir gore <mihirgore at hotmail.com> wrote:
>
> I want to add appendix to a article class.
>
> Here are my requirements
>
> a. There should be an entry for Appendix in the TOC
>
> b. All subsections of the Appendix should appear as the child Appendix
> section in the TOC
>
> c. The appendix sections should be number A, B, C, so first should
> read A List of Banks, second should read B Efficiency Scores
>
> I was able to get my first and second requirements using \section* and
> \subsection* and adding them to toc explicitly, however using the *
> notation means the default behavior is lost, so the numbering of the
> appendix is lost.
>
> Any workaround for this?

That is the default behaviour of appendices in article.cls.  You need to
tell LaTeX that you are starting appendix by inserting the command
\appendix just before the first section command of your appendix.  I
think, you have missed it.  Here is an example, can you please try?

%<---------------- begin test.tex ---------->

\documentclass[a4paper]{article}
\usepackage{lipsum}

\begin{document}

\tableofcontents

\appendix

\section{List of Banks}
\lipsum[1]

\subsection{Aa}
\lipsum[2]

\subsection{Ab}
\lipsum[3]

\section{Efficiency Scores}
\lipsum[4]

\subsection{Ba}
\lipsum[5]

\subsection{Bb}
\lipsum[6]

\end{document}

%<--------------------- end test.tex ---------------->

-- 
Radhakrishnan

The usefulness of any meeting is in inverse
proportion to the attendance.


More information about the tugindia mailing list