## LaTeX forum ⇒ Text Formatting ⇒ Annex Footnote Error

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

### Annex Footnote Error

I have a been given a large template, with associated classes and macros, as outlined below. Due to the size and complexity of this template I will not post a MWE but the template can be seen here: http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/CUEDThesisPSnPDF.zip.

In chapter1.tex I write
\footnote{See Annex \ref{AnnexA}}

annexA.tex is a file which contains the code
\chapter{Annex A}\label{AnnexA}

When the document compiles, I see in the PDF, the footnote, but it does say "See Annex A" as it should do, but "See 8.2.7". The hyperlink does work.

How can I force this to show the correct text on compiling?

\documentclass[oneside,8pt]{Classes/myClass}\begin{document}\usepackage[toc,page]{appendix}\maketitle\frontmatter\tableofcontents\mainmatter\include{Chapter1/chapter1}                     \backmatter\begin{appendices}\renewcommand{\thesection} {A.\arabic{section}}\include{AnnexA/AnnexA}                           % Annex A\end{appendices}  \end{document}

Tags:

cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm
Can you make a minimal working example that let's us reproduce your issues? The code you posted contains several custom files that we don't have (and which are probably unrelated to the issue...) With

\documentclass[oneside,8pt]{myClass}\begin{document}\usepackage[toc,page]{appendix}\maketitle\frontmatter\tableofcontents\mainmatter\chapter{First chapter}See chapter~\ref{foo}.\backmatter\begin{appendices}\renewcommand{\thesection} {A.\arabic{section}}\chapter{First chapter in appendix}\label{foo}\end{appendices}\end{document}

the problem should still show up (can you verify this?) but we'd still need the class file.

Regards
site moderator & package author

sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm
Please see attached the MWE, as requested.

You will see that the hyperlink on page 1 says "See Annex 1" and not "See Annex A" as I would wish it to.
Attachments
MWE.rar
MWE