43

I'm trying to get a hold of numbering the letter of the appendices. This is how it looks now:

\documentclass[11pt, a4paper, twoside]{article}

% PACKAGES
\usepackage{geometry}
\usepackage{lipsum}     

\begin{document}
\tableofcontents

\section{First section}
\subsection{A subsection}
\lipsum[1]

\appendix
\section{Appendices}
\subsection{First appendix}
\subsection{Second appendix}

\end{document}

Preview
But instead of counting the numbers

A.1
A.2
...

I want to the letters to be increased. It should be something like this:

Appendices
A - first appendix
B - second appendix
C - third appendix

where "Appendices" is a section, and the other are subsections.

I hope that anyone can help me :)

45

If you really need the appendices to be subsections you can change numbering of subsections using \renewcommand{\thesubsection}{\Alph{subsection}}:

\documentclass[11pt, a4paper, twoside]{article}
\usepackage{geometry}
\usepackage{lipsum}

\begin{document}
\tableofcontents

\section{First section}
\subsection{A subsection}
\lipsum[1]

\appendix
\section*{Appendices}
\addcontentsline{toc}{section}{Appendices}
\renewcommand{\thesubsection}{\Alph{subsection}}

\subsection{Appendix Subsection}
\subsection{Another appendix Subsection}
\end{document}

enter image description here

  • 1
    Exactly what I was looking after! Thanks a lot. – Budde92 May 1 '14 at 7:53
  • If I try to use your answer, I run into two issues: firstly, I receive the error "No counter 'chapter' defined." on the line \appendix even though my document class is set to article, so there shouldn't be any chapters at all. If I remove that line, my document compiles, but my appendices added as subsections start from C rather than A (I have 2 subsections in my last section in the document). If I use \setcounter{subsection}{0}, they start from A but the page numbering gets flawed in the table of contents – Dávid Pásztor Jun 11 '18 at 15:20
15

Use \section*{Appendices}and add this to the toc with \addcontentsline. Then simply use \section for each appendix.

\documentclass{article}
\begin{document}
\tableofcontents
\section{First section}
\subsection{A subsection}
\appendix
\addcontentsline{toc}{section}{Appendices}
\section*{Appendices}
\section{First appendix}
\section{Second appendix}
\end{document}

MWE

  • 2
    I don't think it clearly solves my problem, that the appendices A, B ect. should be subsections of Appendices. Do you know how to do that? Thanks. – Budde92 May 1 '14 at 7:51
  • Solved in Tahtisilma's answer :) – Fran May 1 '14 at 8:03
4

I find it easier to simply use:

\appendix
\renewcommand{\thechapter}{A}

and just change it for each appendix:)

  • You could do that of course, but there are better ways -- I leave to others to deal with this answer – user31729 Dec 12 '15 at 8:37
  • 1
    Solved my problem since i'm using only one chapter for the appendix and the numbering didn't work at all (for the chapter). The 'A' for the chapter just stands for Appendix and every subsection is numbered with A.1, A.2, ... and so on. – Spen Aug 9 '16 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.