74

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

1
  • 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, 2021 at 20:57

4 Answers 4

80

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

2
  • 2
    Exactly what I was looking after! Thanks a lot.
    – Budde92
    May 1, 2014 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 Jun 11, 2018 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

5
  • 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, 2014 at 7:51
  • Solved in Tahtisilma's answer :)
    – Fran
    May 1, 2014 at 8:03
  • is there a way of doing this, but getting 1. First appendix 2. Second appendix? Dec 15, 2020 at 15:08
  • @canIchangethis Change \appendix by \setcounter{section}{0}, but then are not appendices, but duplicated sections ...
    – Fran
    Dec 15, 2020 at 18:43
  • Thanks. I made a new question cause I think my problem is „more“ than just that but will try! Dec 15, 2020 at 20:41
12

I find it easier to simply use:

\appendix
\renewcommand{\thechapter}{A}

and just change it for each appendix:)

3
  • You could do that of course, but there are better ways -- I leave to others to deal with this answer
    – user31729
    Dec 12, 2015 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.
    – Spenhouet
    Aug 9, 2016 at 13:54
  • Worked like a charm for me, and I am using \thesection. Thanks.
    – SurfProc
    May 5, 2021 at 3:52
0

\section*{A: Section heading}

OR

\section*{Section A: Section heading}

OR

\section*{Part A: Section heading}

1
  • 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, 2022 at 12:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .