| 1 |
\documentclass{article} |
| 2 |
%\usepackage{caption} |
| 3 |
%\usepackage{caption2} |
| 4 |
%\usepackage{ccaption} |
| 5 |
\usepackage{captcont} |
| 6 |
%\usepackage{caption} |
| 7 |
%\usepackage{caption2} |
| 8 |
%\usepackage{ccaption} |
| 9 |
\usepackage[TABTOPCAP]{subfigure} |
| 10 |
%\usepackage{caption} |
| 11 |
%\usepackage{caption2} |
| 12 |
%\usepackage{ccaption} |
| 13 |
|
| 14 |
\newcommand{\figbox}[1]{% |
| 15 |
\fbox{% |
| 16 |
\vbox to .6in{% |
| 17 |
\vfil |
| 18 |
\hbox to .8in{% |
| 19 |
\hfil |
| 20 |
#1% |
| 21 |
\hfil}% |
| 22 |
\vfil}}} |
| 23 |
\newcommand{\bigfigbox}[1]{% |
| 24 |
\fbox{% |
| 25 |
\vbox to 6in{% |
| 26 |
\vfil |
| 27 |
\hbox to 4in{% |
| 28 |
\hfil |
| 29 |
#1% |
| 30 |
\hfil}% |
| 31 |
\vfil}}} |
| 32 |
\makeatletter |
| 33 |
\def\subfigtopskip{4pt} |
| 34 |
\def\subfigbottomskip{4pt} |
| 35 |
\def\subfigcapskip{2pt} |
| 36 |
\subtabletopcaptrue |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
|
| 40 |
\setcounter{lofdepth}{2} |
| 41 |
\listoffigures |
| 42 |
\clearpage |
| 43 |
\setcounter{lotdepth}{2} |
| 44 |
\listoftables |
| 45 |
\clearpage |
| 46 |
|
| 47 |
First we test the regular figures. The first figure is |
| 48 |
Figure~\ref{fig:First} on page \pageref{fig:First}. The second is |
| 49 |
Figure~\ref{fig:SecondA} and appears on pages~\pageref{fig:SecondA}, |
| 50 |
\pageref{fig:SecondB}, \pageref{fig:SecondC}, and \pageref{fig:SecondD}. |
| 51 |
|
| 52 |
\begin{figure}% |
| 53 |
\begin{center}% |
| 54 |
\bigfigbox{Regular figure 1}% |
| 55 |
\end{center}% |
| 56 |
\vspace{-10pt}% |
| 57 |
\caption{Regular figure 1}% |
| 58 |
\label{fig:First}% |
| 59 |
\end{figure} |
| 60 |
|
| 61 |
\begin{figure}% |
| 62 |
\begin{center}% |
| 63 |
\bigfigbox{Continued figure 2A}% |
| 64 |
\end{center}% |
| 65 |
\vspace{-10pt}% |
| 66 |
\captcont{Continued figure 2A}% |
| 67 |
\label{fig:SecondA}% |
| 68 |
\end{figure} |
| 69 |
|
| 70 |
\begin{figure}% |
| 71 |
\begin{center}% |
| 72 |
\bigfigbox{Continued figure 2B}% |
| 73 |
\end{center}% |
| 74 |
\vspace{-10pt}% |
| 75 |
\captcont*{Continued figure 2B}% |
| 76 |
\label{fig:SecondB}% |
| 77 |
\end{figure} |
| 78 |
|
| 79 |
\begin{figure}% |
| 80 |
\begin{center}% |
| 81 |
\bigfigbox{Continued figure 2C}% |
| 82 |
\end{center}% |
| 83 |
\vspace{-10pt}% |
| 84 |
\captcont*{Continued figure 2C}% |
| 85 |
\label{fig:SecondC}% |
| 86 |
\end{figure} |
| 87 |
|
| 88 |
\begin{figure}% |
| 89 |
\begin{center}% |
| 90 |
\bigfigbox{Continued figure 2D} |
| 91 |
\end{center}% |
| 92 |
\vspace{-10pt}% |
| 93 |
\caption*{Continued figure 2D} |
| 94 |
\label{fig:SecondD}% |
| 95 |
\end{figure} |
| 96 |
|
| 97 |
|
| 98 |
Then we test the regular tables. The first table is |
| 99 |
Table~\ref{tab:First} on page \pageref{tab:First}. The second is |
| 100 |
Table~\ref{tab:SecondA} and appears on pages~\pageref{tab:SecondA}, |
| 101 |
\pageref{tab:SecondB}, \pageref{tab:SecondC}, and \pageref{tab:SecondD}. |
| 102 |
|
| 103 |
\begin{table}% |
| 104 |
\caption{Regular table 1}% |
| 105 |
\label{tab:First}% |
| 106 |
\begin{center}% |
| 107 |
\bigfigbox{Regular table 1}% |
| 108 |
\end{center}% |
| 109 |
\end{table} |
| 110 |
|
| 111 |
\begin{table}% |
| 112 |
\caption{Continued table 2A}% |
| 113 |
\label{tab:SecondA}% |
| 114 |
\begin{center}% |
| 115 |
\bigfigbox{Continued table 2A}% |
| 116 |
\end{center}% |
| 117 |
\end{table} |
| 118 |
|
| 119 |
\begin{table}% |
| 120 |
\captcont*{Continued table 2B}% |
| 121 |
\label{tab:SecondB}% |
| 122 |
\begin{center}% |
| 123 |
\bigfigbox{Continued table 2B}% |
| 124 |
\end{center}% |
| 125 |
\end{table} |
| 126 |
|
| 127 |
\begin{table}% |
| 128 |
\captcont*{Continued table 2C}% |
| 129 |
\label{tab:SecondC}% |
| 130 |
\begin{center}% |
| 131 |
\bigfigbox{Continued table 2C}% |
| 132 |
\end{center}% |
| 133 |
\end{table} |
| 134 |
|
| 135 |
\begin{table}% |
| 136 |
\captcont*{Continued table 2D} |
| 137 |
\label{tab:SecondD}% |
| 138 |
\begin{center}% |
| 139 |
\bigfigbox{Continued table 2D} |
| 140 |
\end{center}% |
| 141 |
\end{table} |
| 142 |
|
| 143 |
Next we look at the subfigures in a simple figure. They are |
| 144 |
Figures~\ref{fig:sub1A}, \ref{fig:sub1B}, \ref{fig:sub1C}, and |
| 145 |
\ref{fig:sub1D}, which are part of Figure~\ref{fig:sub1} on |
| 146 |
page~\pageref{fig:sub1}. |
| 147 |
|
| 148 |
The continued subfigures are contained in three parts. The first is |
| 149 |
Figure~\ref{fig:sub21} on page~\pageref{fig:sub21} which contains the |
| 150 |
Subfigures~\ref{fig:sub2A}, \ref{fig:sub2B}, \ref{fig:sub2C}, and |
| 151 |
\ref{fig:sub2D}. |
| 152 |
The second is |
| 153 |
Figure~\ref{fig:sub22} on page~\pageref{fig:sub22} which contains the |
| 154 |
Subfigures~\ref{fig:sub2E}, \ref{fig:sub2F}, \ref{fig:sub2G}, and |
| 155 |
\ref{fig:sub2H}. |
| 156 |
The third is |
| 157 |
Figure~\ref{fig:sub23} on page~\pageref{fig:sub23} which contains the |
| 158 |
Subfigures~\ref{fig:sub2I}, \ref{fig:sub2J}, \ref{fig:sub2K}, and |
| 159 |
\ref{fig:sub2L}. |
| 160 |
|
| 161 |
\begin{figure}% |
| 162 |
\begin{center}% |
| 163 |
\subfigure[\label{fig:sub1A}]{\figbox{Subfigure 1A}}% |
| 164 |
\hspace{10pt}% |
| 165 |
\subfigure[\label{fig:sub1B}]{\figbox{Subfigure 1B}}\\ |
| 166 |
\subfigure[\label{fig:sub1C}]{\figbox{Subfigure 1C}}% |
| 167 |
\hspace{10pt}% |
| 168 |
\subfigure[\label{fig:sub1D}]{\figbox{Subfigure 1D}}% |
| 169 |
\end{center}% |
| 170 |
\vspace{-10pt}% |
| 171 |
\caption{This is a simple figure.}% |
| 172 |
\label{fig:sub1}% |
| 173 |
\end{figure} |
| 174 |
|
| 175 |
\begin{figure}% |
| 176 |
\begin{center}% |
| 177 |
\subfigure[\label{fig:sub2A}]{\figbox{Subfigure 2A}}% |
| 178 |
\hspace{10pt}% |
| 179 |
\subfigure[\label{fig:sub2B}]{\figbox{Subfigure 2B}}\\ |
| 180 |
\subfigure[\label{fig:sub2C}]{\figbox{Subfigure 2C}}% |
| 181 |
\hspace{10pt}% |
| 182 |
\subfigure[\label{fig:sub2D}]{\figbox{Subfigure 2D}}% |
| 183 |
\end{center}% |
| 184 |
\vspace{-10pt}% |
| 185 |
\captcont{This is a continued figure.}% |
| 186 |
\label{fig:sub21}% |
| 187 |
\end{figure} |
| 188 |
|
| 189 |
\begin{figure}% |
| 190 |
\begin{center}% |
| 191 |
\subfigure[\label{fig:sub2E}]{\figbox{Subfigure 2E}}% |
| 192 |
\hspace{10pt}% |
| 193 |
\subfigure[\label{fig:sub2F}]{\figbox{Subfigure 2F}}\\ |
| 194 |
\subfigure[\label{fig:sub2G}]{\figbox{Subfigure 2G}}% |
| 195 |
\hspace{10pt}% |
| 196 |
\subfigure[\label{fig:sub2H}]{\figbox{Subfigure 2H}}% |
| 197 |
\end{center}% |
| 198 |
\vspace{-10pt}% |
| 199 |
\captcont*{This is a continued figure (cont.)}% |
| 200 |
\label{fig:sub22}% |
| 201 |
\end{figure} |
| 202 |
|
| 203 |
\begin{figure}% |
| 204 |
\begin{center}% |
| 205 |
\subfigure[\label{fig:sub2I}]{\figbox{Subfigure 2I}}% |
| 206 |
\hspace{10pt}% |
| 207 |
\subfigure[\label{fig:sub2J}]{\figbox{Subfigure 2J}}\\ |
| 208 |
\subfigure[\label{fig:sub2K}]{\figbox{Subfigure 2K}}% |
| 209 |
\hspace{10pt}% |
| 210 |
\subfigure[\label{fig:sub2L}]{\figbox{Subfigure 2L}}% |
| 211 |
\end{center}% |
| 212 |
\vspace{-10pt}% |
| 213 |
\caption*{This is a continued figure (cont.)}% |
| 214 |
\label{fig:sub23}% |
| 215 |
\end{figure} |
| 216 |
|
| 217 |
Next we look at the subtables in a simple table environment. They are |
| 218 |
Tables~\ref{tab:sub1A}, \ref{tab:sub1B}, \ref{tab:sub1C}, and |
| 219 |
\ref{tab:sub1D}, which are part of Table~\ref{tab:sub1} on |
| 220 |
page~\pageref{tab:sub1}. |
| 221 |
|
| 222 |
The continued subtables are contained in three parts. The first is |
| 223 |
Table~\ref{tab:sub21} on page~\pageref{tab:sub21} which contains the |
| 224 |
Subtables~\ref{tab:sub2A}, \ref{tab:sub2B}, \ref{tab:sub2C}, and |
| 225 |
\ref{tab:sub2D}. |
| 226 |
The second is |
| 227 |
Table~\ref{tab:sub22} on page~\pageref{tab:sub22} which contains the |
| 228 |
Subtables~\ref{tab:sub2E}, \ref{tab:sub2F}, \ref{tab:sub2G}, and |
| 229 |
\ref{tab:sub2H}. |
| 230 |
The third is |
| 231 |
Table~\ref{tab:sub23} on page~\pageref{tab:sub23} which contains the |
| 232 |
Subtables~\ref{tab:sub2I}, \ref{tab:sub2J}, \ref{tab:sub2K}, and |
| 233 |
\ref{tab:sub2L}. |
| 234 |
|
| 235 |
\begin{table}% |
| 236 |
\caption{This is a simple table.}% |
| 237 |
\label{tab:sub1}% |
| 238 |
\begin{center}% |
| 239 |
\subtable[\label{tab:sub1A}]{\figbox{Subtable 1A}}% |
| 240 |
\hspace{10pt}% |
| 241 |
\subtable[\label{tab:sub1B}]{\figbox{Subtable 1B}}\\ |
| 242 |
\subtable[\label{tab:sub1C}]{\figbox{Subtable 1C}}% |
| 243 |
\hspace{10pt}% |
| 244 |
\subtable[\label{tab:sub1D}]{\figbox{Subtable 1D}}% |
| 245 |
\end{center}% |
| 246 |
\end{table} |
| 247 |
|
| 248 |
\begin{table}% |
| 249 |
\caption{This is a continued table.}% |
| 250 |
\label{tab:sub21}% |
| 251 |
\begin{center}% |
| 252 |
\subtable[\label{tab:sub2A}]{\figbox{Subtable 2A}}% |
| 253 |
\hspace{10pt}% |
| 254 |
\subtable[\label{tab:sub2B}]{\figbox{Subtable 2B}}\\ |
| 255 |
\subtable[\label{tab:sub2C}]{\figbox{Subtable 2C}}% |
| 256 |
\hspace{10pt}% |
| 257 |
\subtable[\label{tab:sub2D}]{\figbox{Subtable 2D}}% |
| 258 |
\end{center} |
| 259 |
\end{table} |
| 260 |
|
| 261 |
\begin{table}% |
| 262 |
\captcont*{This is a continued table (cont.)}% |
| 263 |
\label{tab:sub22}% |
| 264 |
\begin{center}% |
| 265 |
\subtable[\label{tab:sub2E}]{\figbox{Subtable 2E}}% |
| 266 |
\hspace{10pt}% |
| 267 |
\subtable[\label{tab:sub2F}]{\figbox{Subtable 2F}}\\ |
| 268 |
\subtable[\label{tab:sub2G}]{\figbox{Subtable 2G}}% |
| 269 |
\hspace{10pt}% |
| 270 |
\subtable[\label{tab:sub2H}]{\figbox{Subtable 2H}}% |
| 271 |
\end{center}% |
| 272 |
\end{table} |
| 273 |
|
| 274 |
\begin{table}% |
| 275 |
\captcont*{This is a continued table (cont.)}% |
| 276 |
\label{tab:sub23}% |
| 277 |
\begin{center}% |
| 278 |
\subtable[\label{tab:sub2I}]{\figbox{Subtable 2I}}% |
| 279 |
\hspace{10pt}% |
| 280 |
\subtable[\label{tab:sub2J}]{\figbox{Subtable 2J}}\\ |
| 281 |
\subtable[\label{tab:sub2K}]{\figbox{Subtable 2K}}% |
| 282 |
\hspace{10pt}% |
| 283 |
\subtable[\label{tab:sub2L}]{\figbox{Subtable 2L}}% |
| 284 |
\listsubcaptions |
| 285 |
\end{center}% |
| 286 |
\end{table} |
| 287 |
|
| 288 |
\end{document} |