[pstricks] multido controlled by postscript variables
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Jan 25 08:14:16 CET 2018
Am 22.01.2018 um 17:22 schrieb Poul Riis:
> The following (silly) project works
[...]
>
> but I would like to control everything with postscript variables, for
> instance as follows (which does not work):
that is not possible.
\documentclass{article}
\usepackage{multido}
\usepackage{pst-plot}
\begin{document}
\def\nxmax{5} \def\nymax{4}
\psset{linecolor=red}
\begin{psgraph}[arrows=->](0,0)(5,4){5cm}{5cm}
\multido{\ny=1+1}{\nymax}{%
\multido{\nx=1+1}{\nxmax}{%
\rput(\nx,\ny){\the\numexpr\nx*\ny\relax}%
}%
}%
\end{psgraph}
\end{document}
Herbert
More information about the PSTricks
mailing list