TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a "memoire" about a research project to end my undergraduate studies, but I am not able to format the sections and the table of contents as I would like to do. My paper, written with the LaTeX class article, is composed with 3 major sections, followed by 3 appendices and references at the end. I'd like it to have a table of contents looking like:

I- Section 1
II- Section 2
III- Section 3
A - Appendix A
B - Appendix B
C - Appendix C

So far, I created a \section{Appendices} to make it have the same weight as the three first sections. But, as they are important and take several pages, I'd like each one of the appendices to be defined as a section too and not a subsection. Is there a way to make Appendices appear in the table of contents still showing that it contains the three following lines without defining it as a section. Sorry if I'm not really clear, and thank you in advance.

Also: I added the references with a \begin{thebibliography}{99} and they don't appear in the table of contents so far, how can I fix it?

share|improve this question
Could you post the code snippet you've used so far?! – Ivan Machado Jul 9 '12 at 15:14
up vote 5 down vote accepted

You can always add a line like:

\addcontentsline{toc}{section}{\protect\numberline{A}{Appendix A}}

and section gives the format you want. Then the level in the toc and the format of the heading is independent:

    \subsection*{Appendix \theappendix}
    \addcontentsline{toc}{section}{\protect\numberline{\theappendix}{Appendix \theappendix}}

I bet there's a package that does this too ;-) Also instead of using \subsection you could define your own heading with \@startsection. But that is more involved and probably not necessary.

As for the bibliography, if I understand you correctly, you can do it in the same way:

share|improve this answer
Thank you, it works fine ;) – toot Jul 9 '12 at 18:03
Good to hear. Then please mark the answer as accepted. – canaaerus Jul 9 '12 at 18:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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