General ⇒ Appendix Problems
Appendix Problems
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Appendix Problems
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¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10