Graphics, Figures & Tables ⇒ Label
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
Label
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}