btex..etex fails in reusableMPgraphic (2006.09.28 beta)
Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta: ================ btex.tex =================== \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic outside btex..etex\quad \reuseMPgraphic{fig} \stoptext ============================================ The output says systems : begin file btex-mpgraph-temp at line 42 ! Missing $ inserted. <inserted text> $ <to be read again> _ l.48 _ special_div_ := 10000; ? Here's a snippet from btex-mpgraph-temp.tex: \starttext \startMPXpage " mpgraph:=1; randomseed:=33; _special_div_ := 10000; The underscores in the variable name are upsetting to tex. I haven't tracked down the chain of influence that put them there. Meanwhile the same btex..etex test on a static MP figure works fine: ==================== btex-static.tex ================ \starttext \startstaticMPfigure{fig} label(btex in b/e tex etex, origin); \stopstaticMPfigure outside btex..etex\quad \usestaticMPfigure[fig] \stoptext ==================================================== -Sanjoy `A society of sheep must in time beget a government of wolves.' -- Bertrand de Jouvenal
Sanjoy Mahajan wrote:
Unless I'm doing something very silly, the following should and I am almost certain did work, but it fails with the 2006.09.28 beta:
================ btex.tex =================== \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic
outside btex..etex\quad \reuseMPgraphic{fig} \stoptext ============================================
works here ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
================ btex.tex =================== \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic
outside btex..etex\quad \reuseMPgraphic{fig} \stoptext ============================================
works here
Hmm, it works on the garden as well. With more testing I found that it fails when I use \runMPTEXgraphicstrue (set in my cont-sys.tex), but works when that parameter is false. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
================ btex.tex =================== \starttext \startreusableMPgraphic{fig} label(btex in b/e tex etex, origin); \stopreusableMPgraphic
outside btex..etex\quad \reuseMPgraphic{fig} \stoptext ============================================
works here
Hmm, it works on the garden as well. With more testing I found that it fails when I use \runMPTEXgraphicstrue (set in my cont-sys.tex), but works when that parameter is false.
Just tested it again, and I think I had it backwards. This fails (2006.09.28 22:43 beta): =========================== \runMPgraphicstrue \runMPTEXgraphicsfalse \starttext \startreusableMPgraphic{fig} label(btex sun etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext =========================== This works: =========================== \runMPgraphicstrue \runMPTEXgraphicstrue \starttext \startreusableMPgraphic{fig} label(btex sun etex, origin); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext =========================== Should one always turn on runMPTEXgraphics along with runMPgraphics? Or just give up on btex..etex and use \sometxt, which works fine with either setting of runMPTEXgraphics? -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
participants (2)
-
Hans Hagen
-
Sanjoy Mahajan