| 1 |
\documentclass{article} |
| 2 |
\usepackage{fullpage} |
| 3 |
%\usepackage[tight]{subfigure} |
| 4 |
%\usepackage[loose,hang]{subfigure} |
| 5 |
\usepackage[tight,hang]{subfigure} |
| 6 |
|
| 7 |
\makeatletter |
| 8 |
\def\mpt{\@minipagetrue} |
| 9 |
\def\mpf{\@minipagefalse} |
| 10 |
%\renewcommand{\@thesubfigure}{\subcaplabelfont\thesubfigure\space\itshape} |
| 11 |
\makeatother |
| 12 |
|
| 13 |
\fboxsep=-\fboxrule |
| 14 |
%\renewcommand{\subcapfont}{\itshape} |
| 15 |
|
| 16 |
\newcommand{\figbox}[1]{% |
| 17 |
\fbox{% |
| 18 |
\vbox to 1in{% |
| 19 |
\vfil |
| 20 |
\hbox to 2in{% |
| 21 |
\hfil |
| 22 |
#1% |
| 23 |
\hfil}% |
| 24 |
\vfil}}} |
| 25 |
|
| 26 |
\begin{document} |
| 27 |
|
| 28 |
Figures wrapped to show any extra spaces introduced in processing the |
| 29 |
subfigures. |
| 30 |
|
| 31 |
\begin{figure}% |
| 32 |
\centering |
| 33 |
\fbox{% |
| 34 |
\fbox{\subfigure[Subfigure One.\label{fig:A1}]{% |
| 35 |
\figbox{SUBFIG ONE}}}% |
| 36 |
\hspace{10pt}% |
| 37 |
\fbox{\subfigure[Subfigure Two.\label{fig:A2}]{% |
| 38 |
\figbox{SUBFIG TWO}}}} |
| 39 |
\caption{Two side-by-side figures.}% |
| 40 |
\label{fig:A}% |
| 41 |
\end{figure} |
| 42 |
|
| 43 |
\begin{figure}% |
| 44 |
\begin{center}% |
| 45 |
\fbox{\hbox to 4.13837in{\hss\vbox{% |
| 46 |
\fbox{\mpt\subfigure[Subfigure Three.\label{fig:B1}]{% |
| 47 |
\figbox{SUBFIG THREE}}}% |
| 48 |
\hspace{10pt}% |
| 49 |
\fbox{\mpt\subfigure[Subfigure Four.\label{fig:B2}]{% |
| 50 |
\figbox{SUBFIG FOUR}}}\\[-1.5pt] |
| 51 |
\fbox{\subfigure[Subfigure Five.\label{fig:B3}]{% |
| 52 |
\figbox{SUBFIG FIVE}}}% |
| 53 |
\hspace{10pt}% |
| 54 |
\fbox{\subfigure[Subfigure Six.\label{fig:B4}]{% |
| 55 |
\figbox{SUBFIG SIX}}}}\hss}}% |
| 56 |
\end{center} |
| 57 |
\caption{Four figures with specified suppression of extra padding.}% |
| 58 |
\label{fig:B}% |
| 59 |
\end{figure} |
| 60 |
|
| 61 |
\begin{figure} |
| 62 |
\centering |
| 63 |
\fbox{% |
| 64 |
\begin{minipage}{4.13837in}% |
| 65 |
%\mpf |
| 66 |
\subfigure[Subfigure Seven.\label{fig:C1}]{% |
| 67 |
\figbox{SUBFIG SEVEN}}% |
| 68 |
\hspace{10pt}% |
| 69 |
\subfigure[Subfigure Eight.\label{fig:C2}]{% |
| 70 |
\figbox{SUBFIG EIGHT}} |
| 71 |
|
| 72 |
\subfigure[Subfigure Nine.\label{fig:C3}]{% |
| 73 |
\figbox{SUBFIG NINE}}% |
| 74 |
\hspace{10pt}% |
| 75 |
\subfigure[Subfigure Ten.\label{fig:C4}]{% |
| 76 |
\figbox{SUBFIG TEN}}% |
| 77 |
\end{minipage}} |
| 78 |
\caption{Four figures with auto fitting in a minipage.}% |
| 79 |
\label{fig:C}% |
| 80 |
\end{figure} |
| 81 |
|
| 82 |
\begin{figure} |
| 83 |
\centering |
| 84 |
% |
| 85 |
\subfigure[First caption.]{\fbox{Under figure/text}}\quad |
| 86 |
\subfigure[Longer second caption.]{\fbox{Under figure/text}}\\ |
| 87 |
% |
| 88 |
\subfigure[Third caption.]{\figbox{Under figure/text}}\quad |
| 89 |
\subfigure[Longer fourth caption. longer fourth caption. |
| 90 |
longer fourth caption.]{\figbox{Under figure/text}} |
| 91 |
\caption{Four figures testing caption fitting.}% |
| 92 |
\end{figure} |
| 93 |
|
| 94 |
\end{document} |
| 95 |
|