When citing a figure in a section in my report body, the reference prints the correct number:
Figure\ref{fig:UML} illustrates complexity arising from the non-modularity of the existing design:
Figure 5.1.1 illustrates complexity arising from the non-modularity of the existing design:
However, the reference in my appendices fails to print out the reference in the same manner:
\appendix
\backmatter
%...
Figure \ref{fig:mvcmodel} is a visual representation of the pattern:
Figure B is a visual representation of the pattern:
I am currently using chngcntr package to number my figures and tables in my
\listoffigures and \listoftables, and I want the reference in appendices to follow the same numbering scheme as my table of contents.
I am attaching my document class:
\let\appendix@rig\appendix
\renewcommand{\appendix}{%
\@mainsect%
\ifthenelse{\boolean{uwwkrpt@math}}{%
\renewcommand{\@secdotzerostart}[1]{\renewcommand{\dotzero}{}}
\renewcommand{\@secdotzeroend}[1]{}
}{}%
\ifthenelse{\boolean{uwwkrpt@ece}}
{\renewcommand{\@appendixtitle}{Appendix }}{}
\appendix@rig%
}
\newcommand{\backmatter}{%
\clearpage
\@notmainsect%
\ifthenelse{\boolean{uwwkrpt@math}}%
{\renewcommand{\section}{\clearpage\section@rig}}{}%
}

\appendix. Try to include\counterwithin{figure}{section}a second time after\appendix. If that doesn't help, you have to make the class file available. – lockstep May 2 '11 at 16:35\labeland\caption: the former should be always after the latter. – egreg May 2 '11 at 21:22