From 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 9 Jan 2006 00:49:07 +0000
Subject: doc/latex

git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/doc/latex/subfigure/test4.tex | 45 +++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Master/texmf-dist/doc/latex/subfigure/test4.tex

(limited to 'Master/texmf-dist/doc/latex/subfigure/test4.tex')

diff --git a/Master/texmf-dist/doc/latex/subfigure/test4.tex b/Master/texmf-dist/doc/latex/subfigure/test4.tex
new file mode 100644
index 00000000000..0d536e2bcdb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/subfigure/test4.tex
@@ -0,0 +1,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}
+
-- 
cgit v1.2.3

