77

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 :)

Budde92
  • 773
  • I have a similar problem, in the appendix section letter and Arabic numbers get mixed up, the first appendix gets a letter and the remaining appendices get Arabic numbers. – foo Dec 19 '21 at 20:57

4 Answers4

82

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

Tahtisilma
  • 2,396
  • 2
    Exactly what I was looking after! Thanks a lot. – Budde92 May 01 '14 at 07: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
22

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

Fran
  • 80,769
12

I find it easier to simply use:

\appendix
\renewcommand{\thechapter}{A}

and just change it for each appendix:)

Yan King Yin
  • 1,743
  • 1
  • 19
  • 26
  • You could do that of course, but there are better ways -- I leave to others to deal with this answer –  Dec 12 '15 at 08: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. – Spenhouet Aug 09 '16 at 13:54
  • Worked like a charm for me, and I am using \thesection. Thanks. – SurfProc May 05 '21 at 03:52
0

\section*{A: Section heading}

OR

\section*{Section A: Section heading}

OR

\section*{Part A: Section heading}

  • While this may give a result that looks like a solution, it's not a good idea to short-circuit LaTeX and to manually do the work that LaTeX should be doing. It's better to use a package for this, or use a macro. The previous answers already covered this completely. – Miyase Sep 29 '22 at 12:59