I am fairly new to LaTeX so could you please reply assuming i don't know very much. i have written a paper and need to include an appendix.
im using the report documentclass.
my attempts to use \appendix have failed miserably - it doesn't print "appendix a : ..." as a title and i can't get it to appear in the table of contents and then the equations i post in it dont get numbered as A.1, A.2 etc
having spent the last 3 days sinking further and further into the slough of despond i decided to seek some guidance. the best i've managed so far is:
\titleformat{\chapter}[display]{\normalfont\huge\bfseries}{}{20pt}{\large}
\chapter*{Appendix A: Deriving the Einstein Equations for Polarised Gowdy Spacetimes}\label{appendix}
\addtocontents{toc}{\protect\pagebreak\contentsline{chapter}{Appendix A: Deriving the Einstein Equations for Polarised Gowdy Spacetimes}{\pageref{appendix}}}
\chaptermark{Appendix}
\markboth{Appendix}{Appendix}
but as this is a chapter, the numbering of equations doesn't work correctly i.e. i get 6.1, 6.2 etc instead of A.1, A.2 etc (chapter 6 was my previous chapter before the dreaded appendix)
thanks for any help.
General ⇒ Appendix Problems
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Appendix Problems
Try the following example.
Best regards and welcome to the board
Thorsten¹
Code: Select all
\documentclass[11pt,a4paper,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{appendix}
\usepackage{blindtext}
\pagestyle{headings}
\begin{document}
\tableofcontents
\blinddocument
\begin{equation}
E=mc^2
\end{equation}
\newpage
\appendix
\addappheadtotoc
\blinddocument
\begin{equation}
E=mc^2
\end{equation}
\end{document}
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10