[texhax] visibility of variables through \rput

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Aug 10 08:31:55 CEST 2009

Brandon Kuczenski schrieb:

> I have encountered a difficulty with using custom commands from inside
> \rput.  When the commands define new macros, those macros aren't visible
> from outside the \rput.  In the example below, the command defines
> \theresult-- the first reference to \theresult works; the second reports
> an "Undefined control sequence".  Is there any way to make the results
> of the computation visible outside of the \rput scope?

The argument of \rput is internally inside a local group.
Try this:

  \FPmul\pst at tempa{#1}{#2}
  \global\let\theresult\pst at tempa}


More information about the texhax mailing list