Below is my code where I'm trying to put figures into longtable
. I'm wondering how can I decrease the spaces between figures (columns) and how can I stretch the figures to both margins?
\documentclass[letter]{article}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{ltcaption}
\usepackage{duckuments}% for variety
\usepackage[showframe]{geometry}
\begin{document}
\noindent\rule{\textwidth}{20\baselineskip}
\renewcommand{\LTcaptype}{figure}%
\begin{longtable}{@{}ccc@{}}
\caption{Empirical Regularities During Currency Crises \label{fig: cc}}
\endhead
\includegraphics[width=.31\textwidth]{example-image-duck} &
\includegraphics[width=.31\textwidth]{example-image-duck} &
\includegraphics[width=.31\textwidth]{example-image-duck}\\
%
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} \\
%
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} \\
%
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} \\
%
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} &
\includegraphics[width=.3\textwidth]{example-image-duck} \\
\end{longtable}
\end{document}
Best Answer
I suggest defining your own environment so as not to litter the document with instructions that should be local.
The magic factor
0.01
for the\tabcolsep
comes from the fact that we have three columns, each 32% of the\textwidth
, so we need to divide the remaining space in four parts.A modification for using
subfigure
:Since barbara beeton commented about the awkward spacing, here's a workaround.