[pstricks] Is it possible to pass an expression to \multido's repetitions argument?
Sky Hester (No Email)
hesters at students.wwu.edu
Fri Nov 23 20:14:28 CET 2012
Alexander's reworking together with Herbert suggestion is an elegant solution. Thank you both.
-Sky
________________________________________
From: PSTricks [pstricks-bounces at tug.org] on behalf of Herbert Voss [Herbert.Voss at FU-Berlin.DE]
Sent: Friday, November 23, 2012 1:57 AM
To: Graphics with PSTricks
Subject: Re: [pstricks] Is it possible to pass an expression to \multido's repetitions argument?
Alexander Grahn schrieb:
>>Which I assume means I can't put postscript expressions where I'm trying
>> to use them.
> Right, the second argument of \multido needs to be known at LaTeX
> run-time, but Postscript expressions are evaluated only at the PS to PDF
> conversion step, which is too late.
>
> In the example below, the floating point unit of LaTeX3 is used to do
> the calculation.
I think, we do not need latex3 here
> %All edges up to k,
> \multido{\ii=0+1}{#2}{%
> \multido{\ij=0+1}{\calculate{#1}{\ii}}{%
\multido{\ij=0+1}{\numexpr#1/2+\ii}{%
should do the same.
Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
More information about the PSTricks
mailing list