I try to make multiple slides in beamer with 3 figures on each slide and the title. I would like to loop through the list/array of figures and set the frame title. The name of the figure files and the name of the frame should be different.
Here is the attempt:
\def\fnames{red, green, blue}
\foreach \name in \fnames {%
\begin{frame}{\name}
\begin{columns}
\column{0.33\textwidth}
\includegraphics[width=4.cm]{./plots/tot\name _log.eps}
\column{0.33\textwidth}
\includegraphics[width=4.cm]{./plots/tot\name _log.eps}
\column{0.33\textwidth}
\includegraphics[width=4.cm]{./plots/tot\name _log.eps}
\end{columns}
\end{frame}%
}
The question: is it possible to set the title of the frame from a separate list or array. So instead of fnames, I would like to get it from:
\def\tnames{white, gray, black}

pgffor? If so you may use the/for multiple lists (and variables). Otherwise you may consider to provide a MWE http://meta.tex.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-example-what-is-that – bloodworks Jan 03 '13 at 20:50