[pstricks] Nested \multido{}

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Jul 5 22:50:15 CEST 2005


Rich Shepard wrote:
>   I'm not getting the results I want from the attached file. Without the
> outer \multido{} loop, I see nine ovals in a single row. With the outer 
> loop,
> I get 180 ovals printed in multiple rows that extend the full width of the
> page.
> 
>   What have I missed in the \multido{} syntax or the code setup?
> 
>   Also, when that works, I want to print a row number to the left of 
> each row
> of ovals. I'm not sure just where to put that variable in the code.

\sffamily
\makebox[\textwidth][s]{% Place box across whole page.
\raisebox{6mm}[0pt][0pt]{\infoline}
\includegraphics[scale=0.5]{aesi-logo.eps}}
\vspace{25mm}
%% Title
\makebox[\nC\omrx]{PREFER FIRST}\\
%% Put headings on columns
\hspace*{\omrx}\multido{\nColumn=1+1}{\nC}{\makebox[\omrx]{\nColumn}}

%% Make nR rows of 9 ovals for answers
\multido{\nRow=1+1}{\nR}{%
   \makebox[\omrx]{\nRow}
 
\multido{}{9}{\makebox[7mm]{\psovalbox[linecolor=blue]{\rule{0.35em}{0pt}}}}\\[2mm]
  }


Herbert




More information about the PSTricks mailing list