On 12/8/2012 12:42 PM, Troy Henderson wrote:
The following code produces the letter "J" on the first page, but does
not draw that same picture on the second page. I would appreciate some
advice on how to save and redraw this label in subsequence figures.
Thanks,
Troy Henderson
\starttext
\startMPinclusions[+]
picture J;
\stopMPinclusions
\startMPpage
J:=thelabel(btex J etex scaled 2,origin);
draw J;
\stopMPpage
\startMPpage
draw J;
\stopMPpage
\stoptext
\starttext
\startMPinclusions[+]
vardef J = thelabel(textext("J") scaled 2,origin) enddef ;
\stopMPinclusions
\startMPpage
draw J;
\stopMPpage
\startMPpage
draw J;
\stopMPpage
\stoptext
as text in handled at the tex end it is lost after graphic is done;
imlemeno it ting selective persistence is possible but messy; maybe some
day i'll do it
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________