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