[pstricks] General question about loops
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sat Nov 19 12:26:30 CET 2011
Am 18.11.2011 00:09, schrieb Toche, Patrick:
> still no luck, only the first picture gets included (without the quotes), no more.
> the package grffile didn't seem to help, thanks for the suggestions, any other way?
that is not a helpful description of your problem.
This works for me:
\documentclass{article}
\usepackage{graphicx,pstricks,filecontents}
\begin{filecontents*}{foo1.ps}
%!ps
%%BoundingBox: 0 0 100 100
0 0 moveto 100 100 lineto
1 setlinewidth 1 0 0 setrgbcolor stroke
\end{filecontents*}
\begin{filecontents*}{foo2.ps}
%!ps
%%BoundingBox: 0 0 100 200
0 0 moveto 100 200 lineto
1 setlinewidth 0 0 1 setrgbcolor stroke
\end{filecontents*}
\begin{document}
\psforeach{\A}{1,2}{\includegraphics{foo\A}}
\end{document}
Herbert
More information about the PSTricks
mailing list