Text FormattingAnnex Footnote Error

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

Annex Footnote Error

Post by sw3quant »

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/tex ... PSnPDF.zip.

In chapter1.tex I write

Code: Select all

\footnote{See Annex \ref{AnnexA}}
annexA.tex is a file which contains the code

Code: Select all

\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?

Code: Select all

\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} 

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Annex Footnote Error

Post by cgnieder »

Can you make a Infominimal 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

Code: Select all

\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

Re: Annex Footnote Error

Post by sw3quant »

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
(55.57 KiB) Downloaded 283 times
Post Reply