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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
|
%% test1.tex
%%
%% This is file `test1.tex', one of a set of several test/example files
%% in the `subfig' package.
%%
%% Copyright © 2003, 2004, 2005 Steven Douglas Cochran.
%%
%% This work (the subfig package) may be distributed and/or modified
%% under the conditions of the LaTeX Project Public License, either
%% version 1.3 of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "author-maintained".
%%
%% This Current Maintainer of this work is Steven Douglas Cochran.
%%
%% This work consists of all files listed under "MANIFEST" in the
%% README file distributed with the subfig package.
\documentclass[twocolumn]{article}
\usepackage{caption}
\usepackage[labelfont=bf,textfont={sl,bf},lofdepth,lotdepth]{subfig}
\DeclareCaptionListOfFormat{colon}{#2:}
\usepackage{fixltx2e}
\captionsetup[subtable]{listofformat=colon,listofnumwidth=1.5em,
listofindent=3.8em}
\newcommand{\figbox}[1]{%
\fbox{%
\vbox to 1in{%
\vfil
\hbox to 2in{%
\hfil
#1%
\hfil}%
\vfil}}}
\makeatletter
\newcommand{\setcaptype}[1]{%
\listsubcaptions
\renewcommand{\@captype}{#1}}
\renewcommand\abstract[1]{%
\def\@abstract{%
\centerline{{\large\bf Abstract}}
\noindent
#1}}
\renewcommand\@maketitle{%
\newpage
\null\vfil
\vskip 60\p@
\begin{center}%
{\LARGE \@title \par}%
\vskip 3em%
{\large
\lineskip .75em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1.5em%
{\large \@date \par}%
\end{center}%
\vskip 2.5em%
\@abstract
\vfil\null}%
\makeatother
\begin{document}
\title{Subfig Package Test Program One}
\author{Steven Douglas Cochran\\
Digital Mapping Laboratory\\
School of Computer Science\\
Carnegie-Mellon University\\
5000 Forbes Avenue\\
Pittsburgh, PA 15213-3890\\
USA}
\date{21 December 2003}
\abstract{%
This test checks five things:
\begin{enumerate}
\item if the {\bf subfig} and the {\bf fixltx2e} packages work together;
\item that the subcaption label format for the List-of-Float pages
is working;
\item that the subcaption numbering in the List-of-Float pages is
working;
\item it tests the {\bf figure*} and {\bf table*} environemnts in
two column mode; and,
\item that various position combinations of top and bottom captions and
subcaptions work together.
\end{enumerate}}
\maketitle
\clearpage
\listoffigures
\clearpage
\listoftables
\clearpage
\section{Overview}
This test runs through the various layout options for both figures and
subfigures; and tables and subtables. It also shows a mixture of
figures and tables within a single float environment.
\subsection{Multiple figures}
\captionsetup[figure]{position=bottom}
\captionsetup[table]{position=bottom}
Figure~\ref{fig:Afirst}[\pageref{fig:Afirst}] has two subfigures
\ref{fig:AfirstA}[\pageref{fig:AfirstA}] and
\ref{fig:AfirstB}[\pageref{fig:AfirstB}].
%
Figure~\ref{fig:Asecond}[\pageref{fig:Asecond}] has two subfigures
\ref{fig:AsecondA}[\pageref{fig:AsecondA}] and
\ref{fig:AsecondB}[\pageref{fig:AsecondB}].
%
Figure~\ref{fig:Athird}[\pageref{fig:Athird}] has two subfigures
\ref{fig:AthirdA}[\pageref{fig:AthirdA}] and
\ref{fig:AthirdB}[\pageref{fig:AthirdB}].
%
Figure~\ref{fig:Afourth}[\pageref{fig:Afourth}] has two subfigures
\ref{fig:AfourthA}[\pageref{fig:AfourthA}] and
\ref{fig:AfourthB}[\pageref{fig:AfourthB}].
%
Figure~\ref{fig:Afifth}[\pageref{fig:Afifth}] has two subfigures
\ref{fig:AfifthA}[\pageref{fig:AfifthA}] and
\ref{fig:AfifthB}[\pageref{fig:AfifthB}].
%
Figure~\ref{fig:Asixth}[\pageref{fig:Asixth}] has two subfigures
\ref{fig:AsixthA}[\pageref{fig:AsixthA}] and
\ref{fig:AsixthB}[\pageref{fig:AsixthB}].
\begin{figure*}%
\captionsetup[figure]{margin=10pt}%
\subfloat[One subone.\label{fig:AfirstA}]{\figbox{One subone}}
\hfill
\subfloat[One subtwo.\label{fig:AfirstB} --- but this one has a
very very long caption. So long that it continues over into
other lines so that we can test the list-of line settings.]%
{\figbox{One subtwo}}\\[-10pt]
\caption{First figure --- but this one has a very very long caption.
So long that it continues over into a second line so that we can
test the margin setting and centering of the caption command in the
full page mode.}%
\label{fig:Afirst}%
%
\subfloat[Two subone.\label{fig:AsecondA}]{\figbox{Two subone}}
\hfill
\subfloat[Two subtwo.\label{fig:AsecondB}]{\figbox{Two subtwo}}\\[-10pt]
\caption{Second figure.}%
\label{fig:Asecond}%
%
\subfloat[Three subone.\label{fig:AthirdA}]{\figbox{Three subone}}
\hfill
\subfloat[Three subtwo.\label{fig:AthirdB}]{\figbox{Three subtwo}}\\[-10pt]
\caption{Third figure.}%
\label{fig:Athird}%
\end{figure*}
\begin{figure*}%
\begin{center}%
\subfloat[Four subone.\label{fig:AfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{fig:AfourthB}]{\figbox{Four subtwo}}\\[-10pt]
\caption{Fourth figure.}%
\label{fig:Afourth}%
%
\subfloat[Five subone.\label{fig:AfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{fig:AfifthB}]{\figbox{Five subtwo}}\\[-10pt]
\caption{Fifth figure.}%
\label{fig:Afifth}%
%
\subfloat[Six subone.\label{fig:AsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{fig:AsixthB}]{\figbox{Six subtwo}}\\[-10pt]
\caption{Sixth figure.}%
\label{fig:Asixth}%
\end{center}
\end{figure*}
\subsection{Multiple tables}
Table~\ref{tab:Afirst}[\pageref{tab:Afirst}] has two subtables
\ref{tab:AfirstA}[\pageref{tab:AfirstA}] and
\ref{tab:AfirstB}[\pageref{tab:AfirstB}].
%
Table~\ref{tab:Asecond}[\pageref{tab:Asecond}] has two subtables
\ref{tab:AsecondA}[\pageref{tab:AsecondA}] and
\ref{tab:AsecondB}[\pageref{tab:AsecondB}].
%
Table~\ref{tab:Athird}[\pageref{tab:Athird}] has two subtables
\ref{tab:AthirdA}[\pageref{tab:AthirdA}] and
\ref{tab:AthirdB}[\pageref{tab:AthirdB}].
%
Table~\ref{tab:Afourth}[\pageref{tab:Afourth}] has two subtables
\ref{tab:AfourthA}[\pageref{tab:AfourthA}] and
\ref{tab:AfourthB}[\pageref{tab:AfourthB}].
%
Table~\ref{tab:Afifth}[\pageref{tab:Afifth}] has two subtables
\ref{tab:AfifthA}[\pageref{tab:AfifthA}] and
\ref{tab:AfifthB}[\pageref{tab:AfifthB}].
%
Table~\ref{tab:Asixth}[\pageref{tab:Asixth}] has two subtables
\ref{tab:AsixthA}[\pageref{tab:AsixthA}] and
\ref{tab:AsixthB}[\pageref{tab:AsixthB}].
\begin{table*}%
\begin{center}%
\subfloat[One subone.\label{tab:AfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{tab:AfirstB}]{\figbox{One subtwo}}\\[-10pt]
\caption{First table.}%
\label{tab:Afirst}%
%
\subfloat[Two subone.\label{tab:AsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{tab:AsecondB}]{\figbox{Two subtwo}}\\[-10pt]
\caption{Second table.}%
\label{tab:Asecond}%
%
\subfloat[Three subone.\label{tab:AthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{tab:AthirdB}]{\figbox{Three subtwo}}\\[-10pt]
\caption{Third table.}%
\label{tab:Athird}%
\end{center}%
\end{table*}
\begin{table*}%
\begin{center}%
\subfloat[Four subone.\label{tab:AfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{tab:AfourthB}]{\figbox{Four subtwo}}\\[-10pt]
\caption{Fourth table.}%
\label{tab:Afourth}%
%
\subfloat[Five subone.\label{tab:AfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{tab:AfifthB}]{\figbox{Five subtwo}}\\[-10pt]
\caption{Fifth table.}%
\label{tab:Afifth}%
%
\subfloat[Six subone.\label{tab:AsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{tab:AsixthB}]{\figbox{Six subtwo}}\\[-10pt]
\caption{Sixth table.}%
\label{tab:Asixth}%
\end{center}%
\end{table*}
\subsection{Multiple figures with the {\bf figure} caption at top}
\captionsetup[figure]{position=top}
Figure~\ref{fig:Bfirst}[\pageref{fig:Bfirst}] has two subfigures
\ref{fig:BfirstA}[\pageref{fig:BfirstA}] and
\ref{fig:BfirstB}[\pageref{fig:BfirstB}].
%
Figure~\ref{fig:Bsecond}[\pageref{fig:Bsecond}] has two subfigures
\ref{fig:BsecondA}[\pageref{fig:BsecondA}] and
\ref{fig:BsecondB}[\pageref{fig:BsecondB}].
%
Figure~\ref{fig:Bthird}[\pageref{fig:Bthird}] has two subfigures
\ref{fig:BthirdA}[\pageref{fig:BthirdA}] and
\ref{fig:BthirdB}[\pageref{fig:BthirdB}].
%
Figure~\ref{fig:Bfourth}[\pageref{fig:Bfourth}] has two subfigures
\ref{fig:BfourthA}[\pageref{fig:BfourthA}] and
\ref{fig:BfourthB}[\pageref{fig:BfourthB}].
%
Figure~\ref{fig:Bfifth}[\pageref{fig:Bfifth}] has two subfigures
\ref{fig:BfifthA}[\pageref{fig:BfifthA}] and
\ref{fig:BfifthB}[\pageref{fig:BfifthB}].
%
Figure~\ref{fig:Bsixth}[\pageref{fig:Bsixth}] has two subfigures
\ref{fig:BsixthA}[\pageref{fig:BsixthA}] and
\ref{fig:BsixthB}[\pageref{fig:BsixthB}].
\begin{figure*}%
\begin{center}%
\caption{First figure.}%
\label{fig:Bfirst}%
\subfloat[One subone.\label{fig:BfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{fig:BfirstB}]{\figbox{One subtwo}}\\
%
\caption{Second figure.}%
\label{fig:Bsecond}%
\subfloat[Two subone.\label{fig:BsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{fig:BsecondB}]{\figbox{Two subtwo}}\\
%
\caption{Third figure.}%
\label{fig:Bthird}%
\subfloat[Three subone.\label{fig:BthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{fig:BthirdB}]{\figbox{Three subtwo}}%
\end{center}%
\end{figure*}
\begin{figure*}%
\begin{center}%
\caption{Fourth figure.}%
\label{fig:Bfourth}%
\subfloat[Four subone.\label{fig:BfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{fig:BfourthB}]{\figbox{Four subtwo}}\\
%
\caption{Fifth figure.}%
\label{fig:Bfifth}%
\subfloat[Five subone.\label{fig:BfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{fig:BfifthB}]{\figbox{Five subtwo}}\\
%
\caption{Sixth figure.}%
\label{fig:Bsixth}%
\subfloat[Six subone.\label{fig:BsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{fig:BsixthB}]{\figbox{Six subtwo}}
\end{center}%
\end{figure*}
\subsection{Multiple tables with the {\bf table} caption at top}
\captionsetup[table]{position=top}
Table~\ref{tab:Bfirst}[\pageref{tab:Bfirst}] has two subtables
\ref{tab:BfirstA}[\pageref{tab:BfirstA}] and
\ref{tab:BfirstB}[\pageref{tab:BfirstB}].
%
Table~\ref{tab:Bsecond}[\pageref{tab:Bsecond}] has two subtables
\ref{tab:BsecondA}[\pageref{tab:BsecondA}] and
\ref{tab:BsecondB}[\pageref{tab:BsecondB}].
%
Table~\ref{tab:Bthird}[\pageref{tab:Bthird}] has two subtables
\ref{tab:BthirdA}[\pageref{tab:BthirdA}] and
\ref{tab:BthirdB}[\pageref{tab:BthirdB}].
%
Table~\ref{tab:Bfourth}[\pageref{tab:Bfourth}] has two subtables
\ref{tab:BfourthA}[\pageref{tab:BfourthA}] and
\ref{tab:BfourthB}[\pageref{tab:BfourthB}].
%
Table~\ref{tab:Bfifth}[\pageref{tab:Bfifth}] has two subtables
\ref{tab:BfifthA}[\pageref{tab:BfifthA}] and
\ref{tab:BfifthB}[\pageref{tab:BfifthB}].
%
Table~\ref{tab:Bsixth}[\pageref{tab:Bsixth}] has two subtables
\ref{tab:BsixthA}[\pageref{tab:BsixthA}] and
\ref{tab:BsixthB}[\pageref{tab:BsixthB}].
\begin{table*}%
\begin{center}%
\caption{First table.}%
\label{tab:Bfirst}%
\subfloat[One subone.\label{tab:BfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{tab:BfirstB}]{\figbox{One subtwo}}\\
%
\caption{Second table.}%
\label{tab:Bsecond}%
\subfloat[Two subone.\label{tab:BsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{tab:BsecondB}]{\figbox{Two subtwo}}\\
%
\caption{Third table.}%
\label{tab:Bthird}%
\subfloat[Three subone.\label{tab:BthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{tab:BthirdB}]{\figbox{Three subtwo}}\\
\end{center}%
\end{table*}
\begin{table*}%
\begin{center}%
\caption{Fourth table.}%
\label{tab:Bfourth}%
\subfloat[Four subone.\label{tab:BfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{tab:BfourthB}]{\figbox{Four subtwo}}
%
\caption{Fifth table.}%
\label{tab:Bfifth}%
\subfloat[Five subone.\label{tab:BfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{tab:BfifthB}]{\figbox{Five subtwo}}
%
\caption{Sixth table.}%
\label{tab:Bsixth}%
\subfloat[Six subone.\label{tab:BsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{tab:BsixthB}]{\figbox{Six subtwo}}
\end{center}%
\end{table*}
\subsection{Multiple figures with the {\bf figure} and {\bf subfigure}
captions at top}
\captionsetup[subfigure]{position=top}
Figure~\ref{fig:Cfirst}[\pageref{fig:Cfirst}] has two subfigures
\ref{fig:CfirstA}[\pageref{fig:CfirstA}] and
\ref{fig:CfirstB}[\pageref{fig:CfirstB}].
%
Figure~\ref{fig:Csecond}[\pageref{fig:Csecond}] has two subfigures
\ref{fig:CsecondA}[\pageref{fig:CsecondA}] and
\ref{fig:CsecondB}[\pageref{fig:CsecondB}].
%
Figure~\ref{fig:Cthird}[\pageref{fig:Cthird}] has two subfigures
\ref{fig:CthirdA}[\pageref{fig:CthirdA}] and
\ref{fig:CthirdB}[\pageref{fig:CthirdB}].
%
Figure~\ref{fig:Cfourth}[\pageref{fig:Cfourth}] has two subfigures
\ref{fig:CfourthA}[\pageref{fig:CfourthA}] and
\ref{fig:CfourthB}[\pageref{fig:CfourthB}].
%
Figure~\ref{fig:Cfifth}[\pageref{fig:Cfifth}] has two subfigures
\ref{fig:CfifthA}[\pageref{fig:CfifthA}] and
\ref{fig:CfifthB}[\pageref{fig:CfifthB}].
%
Figure~\ref{fig:Csixth}[\pageref{fig:Csixth}] has two subfigures
\ref{fig:CsixthA}[\pageref{fig:CsixthA}] and
\ref{fig:CsixthB}[\pageref{fig:CsixthB}].
\begin{figure*}%
\begin{center}%
\caption{First figure.}%
\label{fig:Cfirst}%
\subfloat[One subone.\label{fig:CfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{fig:CfirstB}]{\figbox{One subtwo}}\\
%
\caption{Second figure.}%
\label{fig:Csecond}%
\subfloat[Two subone.\label{fig:CsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{fig:CsecondB}]{\figbox{Two subtwo}}\\
%
\caption{Third figure.}%
\label{fig:Cthird}%
\subfloat[Three subone.\label{fig:CthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{fig:CthirdB}]{\figbox{Three subtwo}}\\
\end{center}%
\end{figure*}
\begin{figure*}%
\begin{center}%
\caption{Fourth figure.}%
\label{fig:Cfourth}%
\subfloat[Four subone.\label{fig:CfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{fig:CfourthB}]{\figbox{Four subtwo}}\\
%
\caption{Fifth figure.}%
\label{fig:Cfifth}%
\subfloat[Five subone.\label{fig:CfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{fig:CfifthB}]{\figbox{Five subtwo}}\\
%
\caption{Sixth figure.}%
\label{fig:Csixth}%
\subfloat[Six subone.\label{fig:CsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{fig:CsixthB}]{\figbox{Six subtwo}}\\
\end{center}%
\end{figure*}
\subsection{Multiple tables with the {\bf table} and {\bf subtable}
captions at top}
\captionsetup[subtable]{position=top}
Table~\ref{tab:Cfirst}[\pageref{tab:Cfirst}] has two subtables
\ref{tab:CfirstA}[\pageref{tab:CfirstA}] and
\ref{tab:CfirstB}[\pageref{tab:CfirstB}].
%
Table~\ref{tab:Csecond}[\pageref{tab:Csecond}] has two subtables
\ref{tab:CsecondA}[\pageref{tab:CsecondA}] and
\ref{tab:CsecondB}[\pageref{tab:CsecondB}].
%
Table~\ref{tab:Cthird}[\pageref{tab:Cthird}] has two subtables
\ref{tab:CthirdA}[\pageref{tab:CthirdA}] and
\ref{tab:CthirdB}[\pageref{tab:CthirdB}].
%
Table~\ref{tab:Cfourth}[\pageref{tab:Cfourth}] has two subtables
\ref{tab:CfourthA}[\pageref{tab:CfourthA}] and
\ref{tab:CfourthB}[\pageref{tab:CfourthB}].
%
Table~\ref{tab:Cfifth}[\pageref{tab:Cfifth}] has two subtables
\ref{tab:CfifthA}[\pageref{tab:CfifthA}] and
\ref{tab:CfifthB}[\pageref{tab:CfifthB}].
%
Table~\ref{tab:Csixth}[\pageref{tab:Csixth}] has two subtables
\ref{tab:CsixthA}[\pageref{tab:CsixthA}] and
\ref{tab:CsixthB}[\pageref{tab:CsixthB}].
\begin{table*}%
\begin{center}%
\caption{First table.}%
\label{tab:Cfirst}%
\subfloat[One subone.\label{tab:CfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{tab:CfirstB}]{\figbox{One subtwo}}\\
%
\caption{Second table.}%
\label{tab:Csecond}%
\subfloat[Two subone.\label{tab:CsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{tab:CsecondB}]{\figbox{Two subtwo}}\\
%
\caption{Third table.}%
\label{tab:Cthird}%
\subfloat[Three subone.\label{tab:CthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{tab:CthirdB}]{\figbox{Three subtwo}}\\
\end{center}%
\end{table*}
\begin{table*}%
\begin{center}%
\caption{Fourth table.}%
\label{tab:Cfourth}%
\subfloat[Four subone.\label{tab:CfourthA}]{\figbox{Four subone}}
\qquad
\subfloat[Four subtwo.\label{tab:CfourthB}]{\figbox{Four subtwo}}\\
%
\caption{Fifth table.}%
\label{tab:Cfifth}%
\subfloat[Five subone.\label{tab:CfifthA}]{\figbox{Five subone}}
\qquad
\subfloat[Five subtwo.\label{tab:CfifthB}]{\figbox{Five subtwo}}\\
%
\caption{Sixth table.}%
\label{tab:Csixth}%
\subfloat[Six subone.\label{tab:CsixthA}]{\figbox{Six subone}}
\qquad
\subfloat[Six subtwo.\label{tab:CsixthB}]{\figbox{Six subtwo}}\\
\end{center}%
\end{table*}
\subsection{Mixed figures and tables with only the {\bf table} caption
at top}
\captionsetup[figure]{position=bottom}
%\setcounter{subfigure}{0}
\captionsetup[subfigure]{position=bottom}
\captionsetup[table]{position=top}
%\setcounter{subtable}{0}
\captionsetup[subtable]{position=bottom}
Figure~\ref{fig:Dfirst}[\pageref{fig:Dfirst}] has two subfigures
\ref{fig:DfirstA}[\pageref{fig:DfirstA}] and
\ref{fig:DfirstB}[\pageref{fig:DfirstB}].
%
Table~\ref{tab:Dfirst}[\pageref{tab:Dfirst}] has two subtables
\ref{tab:DfirstA}[\pageref{tab:DfirstA}] and
\ref{tab:DfirstB}[\pageref{tab:DfirstB}].
%
Figure~\ref{fig:Dsecond}[\pageref{fig:Dsecond}] has two subfigures
\ref{fig:DsecondA}[\pageref{fig:DsecondA}] and
\ref{fig:DsecondB}[\pageref{fig:DsecondB}].
%
Figure~\ref{fig:Dthird}[\pageref{fig:Dthird}] has two subfigures
\ref{fig:DthirdA}[\pageref{fig:DthirdA}] and
\ref{fig:DthirdB}[\pageref{fig:DthirdB}].
%
Table~\ref{tab:Dsecond}[\pageref{tab:Dsecond}] has two subtables
\ref{tab:DsecondA}[\pageref{tab:DsecondA}] and
\ref{tab:DsecondB}[\pageref{tab:DsecondB}].
%
Table~\ref{tab:Dthird}[\pageref{tab:Dthird}] has two subtables
\ref{tab:DthirdA}[\pageref{tab:DthirdA}] and
\ref{tab:DthirdB}[\pageref{tab:DthirdB}].
\begin{figure*}%
\begin{center}%
\subfloat[One subone.\label{fig:DfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{fig:DfirstB}]{\figbox{One subtwo}}\\[-10pt]
\caption{First figure.}%
\label{fig:Dfirst}%
%
\setcaptype{table}%
\caption{First table.}%
\label{tab:Dfirst}%
\subfloat[One subone.\label{tab:DfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{tab:DfirstB}]{\figbox{One subtwo}}\\
\listsubcaptions
%
\setcaptype{figure}%
\subfloat[Two subone.\label{fig:DsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{fig:DsecondB}]{\figbox{Two subtwo}}\\[-10pt]
\caption{Second figure.}%
\label{fig:Dsecond}%
\end{center}%
\end{figure*}
\begin{table*}%
\begin{center}%
\caption{Second table.}%
\label{tab:Dsecond}%
\subfloat[Two subone.\label{tab:DsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{tab:DsecondB}]{\figbox{Two subtwo}}\\
\listsubcaptions
%
\setcaptype{figure}%
\subfloat[Three subone.\label{fig:DthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{fig:DthirdB}]{\figbox{Three subtwo}}\\[-10pt]
\caption{Third figure.}%
\label{fig:Dthird}%
%
\setcaptype{table}%
\caption{Third table.}%
\label{tab:Dthird}%
\subfloat[Three subone.\label{tab:DthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{tab:DthirdB}]{\figbox{Three subtwo}}\\
\end{center}%
\end{table*}
\subsection{Mixed figures and tables with {\bf table} and {\bf subtable}
captions at top}
\captionsetup[figure]{position=bottom}
%\setcounter{subfigure}{0}
\captionsetup[subfigure]{position=bottom}
\captionsetup[table]{position=top}
%\setcounter{subtable}{0}
\captionsetup[subtable]{position=top}
Figure~\ref{fig:Efirst}[\pageref{fig:Efirst}] has two subfigures
\ref{fig:EfirstA}[\pageref{fig:EfirstA}] and
\ref{fig:EfirstB}[\pageref{fig:EfirstB}].
%
Table~\ref{tab:Efirst}[\pageref{tab:Efirst}] has two subtables
\ref{tab:EfirstA}[\pageref{tab:EfirstA}] and
\ref{tab:EfirstB}[\pageref{tab:EfirstB}].
%
Figure~\ref{fig:Esecond}[\pageref{fig:Esecond}] has two subfigures
\ref{fig:EsecondA}[\pageref{fig:EsecondA}] and
\ref{fig:EsecondB}[\pageref{fig:EsecondB}].
%
Figure~\ref{fig:Ethird}[\pageref{fig:Ethird}] has two subfigures
\ref{fig:EthirdA}[\pageref{fig:EthirdA}] and
\ref{fig:EthirdB}[\pageref{fig:EthirdB}].
%
Table~\ref{tab:Esecond}[\pageref{tab:Esecond}] has two subtables
\ref{tab:EsecondA}[\pageref{tab:EsecondA}] and
\ref{tab:EsecondB}[\pageref{tab:EsecondB}].
%
Table~\ref{tab:Ethird}[\pageref{tab:Ethird}] has two subtables
\ref{tab:EthirdA}[\pageref{tab:EthirdA}] and
\ref{tab:EthirdB}[\pageref{tab:EthirdB}].
%
\begin{figure*}%
\begin{center}%
\subfloat[One subone.\label{fig:EfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{fig:EfirstB}]{\figbox{One subtwo}}\\[-10pt]
\caption{First figure.}%
\label{fig:Efirst}%
%
\setcaptype{table}%
\caption{First table.}%
\label{tab:Efirst}%
\subfloat[One subone.\label{tab:EfirstA}]{\figbox{One subone}}
\qquad
\subfloat[One subtwo.\label{tab:EfirstB}]{\figbox{One subtwo}}\\
\listsubcaptions
%
\setcaptype{figure}%
\subfloat[Two subone.\label{fig:EsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{fig:EsecondB}]{\figbox{Two subtwo}}\\[-10pt]
\caption{Second figure.}%
\label{fig:Esecond}%
\end{center}%
\end{figure*}
\begin{table*}%
\begin{center}%
\caption{Second table.}%
\label{tab:Esecond}%
\subfloat[Two subone.\label{tab:EsecondA}]{\figbox{Two subone}}
\qquad
\subfloat[Two subtwo.\label{tab:EsecondB}]{\figbox{Two subtwo}}\\
\listsubcaptions
%
\setcaptype{figure}%
\subfloat[Three subone.\label{fig:EthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{fig:EthirdB}]{\figbox{Three subtwo}}\\[-10pt]
\caption{Third figure.}%
\label{fig:Ethird}%
%
\setcaptype{table}%
\caption{Third table.}%
\label{tab:Ethird}%
\subfloat[Three subone.\label{tab:EthirdA}]{\figbox{Three subone}}
\qquad
\subfloat[Three subtwo.\label{tab:EthirdB}]{\figbox{Three subtwo}}\\
\end{center}%
\end{table*}
\end{document}
|