In my document, I have some figures in my appendix I want to reference in my text but the output of \ref{} is only "Figure .2 shows...". It should be something like "Figure B.2".
Here's my minimal example:
\documentclass[bibliography=totoc,index=totoc,numbers=noenddot]{scrbook}
\usepackage[demo]{graphicx}
\begin{document}
\frontmatter
\include{Titel}
\tableofcontents
\mainmatter
Here is my text \ref{fig:XYZ}
\backmatter
\appendix
\renewcommand\thesection{\Alph{section}}
\chapter{Appendix}
\section{UML-Diagrams}
\begin{figure}[h]
\begin{center}
\includegraphics[width=15cm]{xyz.jpg}
\caption{\label{fig:XYZ}XYZ}
\end{center}
\end{figure}
\end{document}
\usepackage[demo]{graphicx}to your MWE, as it doesn't compile otherwise. The[demo]option replaces images with black rectangles, so compilation doesn't fail because of missing images. I can't reproduce the behaviour you describe, however. I get the outputHere is my text 1, and the figure caption isFigure 1: XYZ. – Jake Oct 17 '11 at 07:06\include{Titel}. – Martin Scharrer Oct 17 '11 at 07:21