[texhax] How print array of images/photos with captions?
Hartmut Henkel
hartmut_henkel at gmx.de
Tue Sep 5 22:19:48 CEST 2006
On Tue, 5 Sep 2006, Niall Mansfield wrote:
> I want to print about 100 images with captions in
> a 2x3 (for example) grid on a page, so the pages look like:
>
> III III
> III III
> c c
>
> III III
> III III
> c c
>
> III III
> III III
> c c
>
> where the III things are the images and the "c" are the captions. (In
> effect a photo album.)
>
> Is there any LaTeX package to do this?
these you could "typeset" like ordinary text, conceptually like
\documentclass[a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\newcommand{\foto}[2]{%
\noindent
\begin{tabular}{@{}c@{}}
\includegraphics[width=0.48\textwidth]{#1}\\#2
\end{tabular}\hskip0ptplus100pt
}
\begin{document}
\section{Pictures from 5 September 2006}
\foto{image10.jpg}{some photo}
\foto{image10.jpg}{some photo}
\foto{image10.jpg}{some photo}
\foto{image10.jpg}{some photo}
\unskip\break
\end{document}
the x/y picture grid you get via the width parameter, the \foto part
could be auto-generated by some scripting language, e. g. with picture
dates taken by the "jhead" tool. (The \hskip and \unskip\break stuff is
not a clean solution.)
Regards, Hartmut
More information about the texhax
mailing list