Hello,
How can one pass a MetaPost variable to ConTeXt in a btex-etex clause?
My MetaPost code calculates a number that I would like to use in as a
literal (evaluated if the variable was assigned an expression) within a
btex-etex construct.
Extremely simplified, but you'll get my drift:
numeric FONTSIZE;
FONTSIZE:=16pt;
draw btex \switchtobodyfont[ss,FONTSIZE] Fontsize = FONTSIZE etex;
I know that this simple example can be done in MetaPost itself, but my
application also uses ConTeXt font definitions, frames, etc.
Is \MPvar only used to pass ConTeXt variables to MetaPost code? And not
the other way around?
Joop