| 1 |
\documentclass{article} |
| 2 |
\usepackage{graphicx} |
| 3 |
\usepackage{fitbox} |
| 4 |
\usepackage{subfig} |
| 5 |
\begin{document} |
| 6 |
|
| 7 |
The use of fitbox with a subfigure. Note that the optional argument |
| 8 |
for the command counts the lines for the subcaptions. |
| 9 |
|
| 10 |
\SetFitboxLayout[subcaplines=1]{3}{2} |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
\begin{figure} |
| 16 |
\centering |
| 17 |
\subfloat[First |
| 18 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 19 |
\subfloat[Second |
| 20 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\ |
| 21 |
\subfloat[Third |
| 22 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 23 |
\subfloat[Fourth |
| 24 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\ |
| 25 |
\subfloat[Fifth |
| 26 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 27 |
\subfloat[Sixth |
| 28 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}} |
| 29 |
\caption{Six Napoleons, \texttt{\textbackslash SetFitboxLayout[subcaplines=1]\{3\}\{2\}}} |
| 30 |
\label{fig:napoleons} |
| 31 |
\end{figure} |
| 32 |
|
| 33 |
\SetFitboxLayout{3}{2} |
| 34 |
|
| 35 |
\begin{figure} |
| 36 |
\centering |
| 37 |
\subfloat{\fitbox*{\includegraphics{napoleon}}}\quad |
| 38 |
\subfloat{\fitbox*{\includegraphics{napoleon}}}\\ |
| 39 |
\subfloat{\fitbox*{\includegraphics{napoleon}}}\quad |
| 40 |
\subfloat{\fitbox*{\includegraphics{napoleon}}}\\ |
| 41 |
\subfloat{\fitbox*{\includegraphics{napoleon}}}\quad |
| 42 |
\subfloat{\fitbox*{\includegraphics{napoleon}}} |
| 43 |
\caption{Six Napoleons, no subcaptions, \texttt{\textbackslash SetFitboxLayout\{3\}\{2\}}} |
| 44 |
\label{fig:napoleons1} |
| 45 |
\end{figure} |
| 46 |
|
| 47 |
\SetFitboxLayout[subcaplines=1, maincaplines=2]{2}{3} |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
\begin{figure} |
| 53 |
\centering |
| 54 |
\subfloat[First |
| 55 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 56 |
\subfloat[Second |
| 57 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 58 |
\subfloat[Third |
| 59 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\\ |
| 60 |
\subfloat[Fourth |
| 61 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 62 |
\subfloat[Fifth |
| 63 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}}\quad |
| 64 |
\subfloat[Sixth |
| 65 |
Napoleon]{\fitbox*{\includegraphics{napoleon}}} |
| 66 |
\caption{Six Napoleons, another arrangement\\ |
| 67 |
\texttt{\textbackslash SetFitboxLayout[subcaplines=1, |
| 68 |
maincaplines=2]\{2\}\{3\}}} |
| 69 |
\label{fig:napoleons3} |
| 70 |
\end{figure} |
| 71 |
|
| 72 |
|
| 73 |
\end{document} |