Friday, 23 August 2013

increment figure source names

increment figure source names

In our childhood, probably all of us made some drawings on layered sheets
of paper in order to make an animation.
To do such an page-by-page animation in a LaTeX document of 123 pages
(e.g.), I would like to include images named from "image001" to "image123"
in successive pages, so that:
page 1 includes "image001"
page 2 includes "image002"
...
page 123 includes "image123".
A way to do this is would be to use a command of the form:
\includegraphics[]{\BASENAME + \PAGENUMBER + \INCREMENT}
% \BASENAME: path of folder + beginning of name
% \PAGENUMBER: page number
% \INCREMENT: number of the first page to have an image (minus one)
but I do not know how to implement such a feature.

No comments:

Post a Comment