[pstricks] fp and pstricks

E. Krishnan ekmath at asianetindia.com
Thu Feb 18 17:31:20 CET 2010



With the LaTeX package "fp", I can do

   \newcommand{\funcvalcalc}[1]{%
     \FPeval{\fv}{2*#1}}

   \begin{pspicture}(0,0)(2,4)
     \funcvalcalc{2}
     \psdots(2,\fv)
   \end{pspicture}

But if I wrap "\funcvalcalc" and "\fv" into a single macro like

   \newcommand{\funcval}[1]{%
     \FPeval{\fv}{2*#1}
     \FPprint\fv}

and try

   \begin{pspicture}(0,0)(2,4)
     \psdots(2,\funcval{2})
   \end{pspicture}

I get the error

   ! Argument of \doaction has an extra }.
   <inserted text>
                   \par
   l.21 \psdots(2,\funcval{2})

though outside of "pstricks", the code

   \funcval{2}

works fine.

Can anybody please help?

-- 
Krishnan


More information about the PSTricks mailing list