[pstricks] Nested \multido{}

Rich Shepard rshepard at appl-ecosys.com
Wed Jul 6 15:55:54 CEST 2005


On Wed, 6 Jul 2005, Herbert Voss wrote:

> then I do not understand, what you really want ...
>
> however, there is no real need to use PSTricks here, scaling the letter o
> does the same, see second attached png file. The source follows

Herbert,

   Something must be broken here. Trying the expanded 'o' approach, I took the
page and margin dimensions from the former file and copied them into the file
you sent. Ran 'latex test-form.tex,' 'dvips test-form.dvi,' and 'ps2pdf
test-form.ps' to produce the attached. The .tex file is below.

   I want to understand why the code works for you while producing something
quite different for me.

Many thanks,

Rich

-- 
Dr. Richard B. Shepard, President      | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)  | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com>   Voice: 503-667-4517   Fax: 503-667-8863

==============================================================================
\documentclass{article}
\usepackage{palatino}
\usepackage{multido,graphicx,xcolor}
\setlength{\textwidth}{7in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{-5mm}
\setlength{\evensidemargin}{-5mm}
\setlength{\topmargin}{-5mm}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\footskip}{0pt}
\parindent=0pt
\newlength{\omrx}
\setlength{\omrx}{7mm}
%% identifying information
\newcommand{\infoline}{some text for project ID here}
%% number of questions (rows)
\newcommand{\nR}{20}
%% number of choices (columns)
\newcommand{\nC}{9}

\def\OLeft{\scalebox{1.2}[0.6]{\color{blue}\huge O}}

\begin{document}
\sffamily

%% Header
\makebox[\textwidth][s]{% Place box across whole page.
\raisebox{6mm}[0pt][0pt]{\infoline}
\includegraphics[scale=0.5]{aesi-logo}}
\vspace{2mm}

\begin{minipage}[t]{2ex}
   \makebox[\nC\omrx]{PREFER FIRST}
   %% Put headings on columns
   \hspace*{1.2\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]{\OLeft}}\\[2mm]}
\end{minipage}

\end{document}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-form.pdf
Type: application/pdf
Size: 9233 bytes
Desc: 
Url : http://tug.org/pipermail/pstricks/attachments/20050706/11095563/attachment.pdf 


More information about the PSTricks mailing list