A larger set of photos, plots, or diagrams could be loaded by using the \includegraphics
command with some space in between, possibly arranged using the minipage
environments. A for
loop may help if the file names can be generated.
In this recipe, we will produce a grid of aligned images with arbitrary names easy to arrange.
We will use a tabular
environment for positioning. That's no surprise yet. However, we will read in the tabular
cell content, which we will then use as file names for inclusion. The collcell
package provides the required feature. Let's take a look at the following steps:
Load the
graphicx
package and thecollcell
package:\usepackage{graphicx} \usepackage{collcell}
Define a command for including an image with chosen width and height:
\newcommand{\includepic}[1]{\includegraphics[width=3cm, height=2cm,keepaspectratio]{#1}}
Define a new column type that uses that new command in its column specification. We use the letter
i
for image...