[pstricks] pstVerb

Poul Riis Poul.Riis at skolekom.dk
Tue Apr 24 08:42:27 CEST 2007


Thank you, Herbert!

A few more questions:

1) I would like to understand your improvement of the code below with
tx at Dict. Where can I read about it?

2) In the \rnode-command below I have put \beta=#4. This is not a general
solution - what I wanted was \#3=#4 if #3 was the spelled name of a greek
letter, otherwise just #3=#4, but the former doesn't work. How can I do
better?

3) I would prefer to have nodesep=0 at the framebox but nodesep<>0 at the
head of the arrow. Is that possible?

>\newcommand{\plotgraphwithoneparameter}[8]{%
>  \pstVerb{
>    tx at Dict begin
>    /#3 #4 def
>    /f { dup dup mul neg 1 add exch #4 add dup mul mul } def
>    end
>  }%
>  \psset{linecolor=#8}%
>  \psplot[plotpoints=100]{#1}{#2}{x f}%
>  \pnode(!#5 #5 f){Q}%
>  \rput[tr](!#5 #6 add #5 f #7 add){%
>    \rnode{P}{\color{#8}\psframebox[linecolor=#8]{$\beta=#4$}}}
>  \ncarc[nodesep=1pt,linecolor=#8]{->}{P}{Q}%
>}

-------------- next part --------------


###########################################
Denne meddelelse med evt. vedlagte filer er scannet af SkoleKoms F-Secure virusscanner.

For yderligere information,
http://forside.skolekom.dk/indhold/punkt1/viruspolitik


More information about the PSTricks mailing list