blob: 0d536e2bcdb1364ad9cc2cfa88eeab2133359e68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
% testsubfighyperref.tex
\documentclass{article}
\usepackage{subfigure}
% option for use with pdflatex
%\usepackage{hyperref}
%\usepackage[draft]{hyperref}
\usepackage[pdftex]{hyperref}
\csname toclevel@#2\endcsname
\begin{document}
\setcounter{lofdepth}{2}
\listoffigures
\clearpage
\section{Test of subfigure}
There is a test figure \ref{fig:test} with subfigures
\ref{fig:testsub1} and \ref{fig:testsub2}.
Also referenced with \ref{fig:test}\subref{fig:testsub1} and
\ref{fig:test}\subref{fig:testsub2}.
\begin{figure}[!ht]
\centering
\unitlength .5cm
\subfigure[SubFig1]
{ \label(SubFig1){fig:testsub1}
\begin{picture}(10,10)
\put(0,0){\line(1,1){10}}
\end{picture}
} \qquad
\subfigure[SubFig2]
{ \label(SubFig2){fig:testsub2}
\begin{picture}(10,10)
\put(0,10){\line(1,-1){10}}
\end{picture}
} \\
\caption{Testfigures}
\label{fig:test}
\end{figure}
\end{document}
|