[pstricks] Extension of \psGetSlope to accept more general coordinate inputs...

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Dec 3 11:36:40 CET 2009


Am 03.12.2009 10:45, schrieb Werner Grundlingh:
> At the moment, \psGetSlope in the pstricks-add package requires the
> following specification:
>   \psGetSlope(#1,#2)(#3,#4)#5 % \psGetSlope(x1,y1)(x2,y2)\<macro>
> 
> Would it be possible to extend this format to that of the other
> pstricks macros such that the following examples would also work:
>   \psGetSlope(3;30)(4;65)\SlopeVal
>   \psGetSlope([offset=3pt]1,0|0,2)([nodesep=10pt,angle=30]5,2|othernode)\SlopeVal

no, that is not possible. \psGetSlope works on TeX level,
but the special coordinates are exported as PostScript
code. You have to rewrite the complete macro part in
pstricks.tex to allow special coordinates on TeX level.

Herbert


More information about the PSTricks mailing list