summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fitbox/sample-subfigure.tex
blob: cd8fd196b7ec902e52fa037689542b93d308af74 (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
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
\documentclass{article}
\usepackage{graphicx}
\usepackage{fitbox}
\usepackage{subfig}
\begin{document}

The use of fitbox with a subfigure.  Note that the optional argument
for the command counts the lines for the subcaptions.  

\SetFitboxLayout[subcaplines=1]{3}{2}




\begin{figure}
  \centering
  \subfloat[First
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Second
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\
  \subfloat[Third
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Fourth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\
  \subfloat[Fifth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Sixth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}
  \caption{Six Napoleons, \texttt{\textbackslash SetFitboxLayout[subcaplines=1]\{3\}\{2\}}}
  \label{fig:napoleons}
\end{figure}

\SetFitboxLayout{3}{2}

\begin{figure}
  \centering
  \subfloat{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat{\fitbox*{\includegraphics{napoleon}}}\\
  \subfloat{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat{\fitbox*{\includegraphics{napoleon}}}\\
  \subfloat{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat{\fitbox*{\includegraphics{napoleon}}}
  \caption{Six Napoleons, no subcaptions, \texttt{\textbackslash SetFitboxLayout\{3\}\{2\}}}
  \label{fig:napoleons1}
\end{figure}

\SetFitboxLayout[subcaplines=1, maincaplines=2]{2}{3}




\begin{figure}
  \centering
  \subfloat[First
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Second
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Third
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\
  \subfloat[Fourth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Fifth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad
  \subfloat[Sixth
  Napoleon]{\fitbox*{\includegraphics{napoleon}}}
  \caption{Six Napoleons, another arrangement\\
    \texttt{\textbackslash SetFitboxLayout[subcaplines=1,
      maincaplines=2]\{2\}\{3\}}} 
  \label{fig:napoleons3}
\end{figure}


\end{document}