Search found 1 match

by dyama
Wed Jul 07, 2010 6:50 pm
Forum: Graphics, Figures & Tables
Topic: loading images in a for loop
Replies: 2
Views: 2282

Re: loading images in a for loop

Try something like the following... I've shown pdf as the file extension. The 0 in front of argument #1 is to differentiate '01.pdf' from '1.pdf'.
Dirk

\documentclass{article}
\usepackage{ifthen}
\usepackage{graphicx}

\newcommand\addfigure[1]{\includegraphics[scale=0.5]{0#1.pdf}\\}
\begin{document ...