[pstricks] Naive question
Herbert Voss
hvoss at tug.org
Fri Apr 29 19:37:39 CEST 2005
Pedro Jorge Caridade wrote:
>>\ArrowPolygon[linecolor=red,xunit=0.5,yunit=0.25,arrowscale=3](1,-1)(20,5)(10,15)
>>
>>
>
>How does my macro understand these options? It is because I defined as
>an pstricks object? I think I'm starting to understand this....
>
>
yes, all is done by the object macro. This is useful when having the default
parameter structure
\macroname[options]{arrows}XXXX
\begin at ClosedObj
starts with
\leavevmode
\pst at killglue
\begingroup
\use at par
....
If you need a special structure of parameters, you could also use
\makeatletter
\def\ArrowPolygon{\@ifnextchar[{\ArrowPolygon at i}{\ArrowPolygon at i[]}}
\def\ArrowPolygon at i[#1](#2,#3)(#4,#5)(#6,#7){{
\pst at killglue
\psset{#1}
.....
}}
\makeatother
more basic infos are available at http://perce.de/LaTeX/pst-code/
> was ok! Another small question: when does your book be available in
> English?
hopefully at end of this year.
Herbert
More information about the PSTricks
mailing list