[pstricks] multido
Francisco A. S. Grossi
fgrossi at usp.br
Wed Apr 26 18:18:46 CEST 2006
Look (if you can) at this small sample; I guess the two constructions are
equivalente and yet they produce different results.
Francisco Grossi
\documentclass[a4paper,12pt,fleqn]{book}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{pst-all,multido}
\begin{document}
\begin{figure}[H]\centering
\begin{pspicture}(0,0)(10,10)
% this sequence produces what I want
\multido{\na=1.5+1.5,\ia=11+1}{6}{\cnode*[linecolor=blue](\na,1.5){3pt}{\ia}}
\multido{\na=1.5+1.5,\ia=21+1}{6}{\cnode*[linecolor=blue](\na,3.0){3pt}{\ia}}
\multido{\na=1.5+1.5,\ia=31+1}{6}{\cnode*[linecolor=blue](\na,4.5){3pt}{\ia}}
\multido{\na=1.5+1.5,\ia=41+1}{6}{\cnode*[linecolor=blue](\na,6.0){3pt}{\ia}}
\multido{\na=1.5+1.5,\ia=51+1}{6}{\cnode*[linecolor=blue](\na,7.5){3pt}{\ia}}
\multido{\na=1.5+1.5,\ia=61+1}{6}{\cnode*[linecolor=blue](\na,9.0){3pt}{\ia}}
% this equivalent sequence (I guess) does not produce what I want
\multido{\nb=1.5+1.5,\ib=11+10}{6}{
\multido{\na=1.5+1.5,\ia=\ib+1}{6}{\cnode*[linecolor=blue](\na,\nb){3pt}{\ia}}
}
\end{pspicture}
\end{figure}
\end{document}
More information about the PSTricks
mailing list