pstricks and inputs

Michael J. Sharpe msharpe at euclid.UCSD.EDU
Fri Sep 24 19:27:45 CEST 1999


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Denis doesn't seem to be jumping on this, so I'll take a stab. If you 
want to use a macro for the (entire) list of parameters, you must do 
it making use of \expandafter, as in

\def\mypoints{(0,0)(1,1)}
\expandafter\psline\mypoints

otherwise\mypoints is not expanded before the parameter-reading 
apparatus gets to work. This seems to work even with  parameters 
included within braces, as for example in

\def\mypoints{*[linewidth=3pt]{->}(0,0)(1,1)}
\expandafter\psline\mypoints

Michael Sharpe

>-----------------------------------------------------------------------------
>This is the PSTricks mailing list, devoted to discussions about computational
>graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
>For help using this mailing list, see instructions at the end of message.
>-----------------------------------------------------------------------------
>
>Can some one tell why the following generates an error?
>
>\def\mypoints{(0,0)(1,1)}
>\psline\mypoints
>
>while this one works
>
>\psline(0,0)(1,1)
>
>??
>
>thanks
>ricky
>
>-----------------------------------------------------------------------------
>The list interface (subscription, information, access to the archives) is on:
>http://www.tug.org/cgi-bin/lwgate/pstricks
>Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
>with a blank subject and in body the line unsubscribe <email-address>
>-----------------------------------------------------------------------------


-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list