diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/subfigure/test3.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/subfigure/test3.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/subfigure/test3.tex | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/subfigure/test3.tex b/Master/texmf-dist/doc/latex/subfigure/test3.tex new file mode 100644 index 00000000000..4b1e507d9d2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/subfigure/test3.tex @@ -0,0 +1,75 @@ +\documentclass{article} +\usepackage{fullpage} +\usepackage{subfigure} + +\fboxsep=-\fboxrule +\def\textfraction{.1} + +\newcommand{\figbox}[1]{% + \fbox{% + \vbox to 1in{% + \vfil + \hbox to 2in{% + \parbox{2in}{% + \centering + #1}}% + \vfil}}} + +\begin{document} + +\setcounter{lofdepth}{2} +\listoffigures +\newpage + +\section{Reference Test} + +\begin{figure}% + \centering + \subfigure{% + \label{fig:A}% + \figbox{SUBFIG ONE:\\ + (no opt)}}% + \quad + \subfigure[]{% + \label{fig:B}% + \figbox{SUBFIG TWO:\\ + (empty opt)}}% + \label{fig:AB}\\ +% + \subfigure[Subfigure Three.]{% + \label{fig:C}% + \figbox{SUBFIG THREE:\\ + (opt)}}% + \quad + \subfigure[][Subfigure Four.]{% + \label{fig:D}% + \figbox{SUBFIG FOUR:\\ + (empty opt and opt)}}% + \quad + \subfigure[][]{% + \label{fig:E}% + \figbox{SUBFIG FIVE:\\ + (both empty opt)}}\\ +% + \subfigure[The Sixth Subfigure.][Subfigure Six.]{% + \label{fig:F}% + \figbox{SUBFIG SIX:\\ + (both opt)}}% + \quad + \subfigure[The Seventh Subfigure][]{% + \label{fig:G}% + \figbox{SUBFIG SEVEN:\\ + (opt and empty opt)}} +% + \caption{Optional argument test.}% + \label{fig:main}% +\end{figure} + +The figure~\ref{fig:main} on page~\pageref{fig:main} is composed +of the seven subfigures~\subref{fig:A} (aka: \ref{fig:A}), +\subref{fig:B} (aka: \ref{fig:B}), \subref{fig:C} (aka: \ref{fig:C}), +\subref{fig:D} (aka: \ref{fig:D}), \subref{fig:E} (aka: \ref{fig:E}), +\subref{fig:F} (aka: \ref{fig:F}), and \subref{fig:G} (aka: +\ref{fig:G}). + +\end{document}
\ No newline at end of file |