Graphics, Figures & Tables ⇒ Label
NEW: TikZ book now 40% off at Amazon.com for a short time.

Label
Hi,
you can use the \subref command with some additional settings using the caption package (make sure that your system uses a recent version of the caption package):
you can use the \subref command with some additional settings using the caption package (make sure that your system uses a recent version of the caption package):
Code: Select all
\documentclass{book}
\usepackage{caption}
\usepackage{subfig}
\captionsetup[subfloat]{listofformat=parens}
\begin{document}
\chapter{Test chapter}
\begin{figure}%
\centering
\subfloat[first subfigure]{\rule{3cm}{3cm}\label{fig:subfig1}}%
\qquad
\subfloat[second subfigure]{\rule{3cm}{3cm}\label{fig:subfig2}}
\caption{two subfigures.}%
\label{fig:test}%
\end{figure}
As we seen in figure \subref{fig:subfig1}...
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...