General ⇒ need help with referencing figures in appendices
need help with referencing figures in appendices
When I reference a figure, equation or a table in my appendices, I get an extra space (i.e. A .1 or B .4). For my regular chapters,
it looks like this: 1.2 , 5.4. Where is the extra space coming from? This extra space shows up when I reference the figure, on the caption, and in the TOC.
This is what I'm using on my main tex file:
\documentclass[12pt]{report}
\usepackage{amsmath,amsthm,amsfonts,amscd} % Some packages to write mathematics.
\usepackage{eucal} % Euler fonts
\usepackage{verbatim} % Allows quoting source with commands.
\usepackage{setspace}
\usepackage[usenames]{color}
\usepackage{colortbl}
\usepackage{hhline}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage[square]{natbib}
\begin{document}
\include{chap1}
\appendix
\include{appendix1}
\end{document}
Thanks for looking and any help you may provide,
Ariel
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
need help with referencing figures in appendices
Anyway, it seems that the problem concerns the definition of the \thechapter command, which prints the value of the chapter number, once the \appendix command has been processed. As a workaround, try to put after \appendix the following code:
Code: Select all
\renewcommand{\thechapter}{\Alph{chapter}}