ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* btex..etex fails in reusableMPgraphic (2006.09.28 beta)
@ 2006-09-29  0:40 Sanjoy Mahajan
  2006-09-29  7:35 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-09-29  0:40 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-30 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-29  0:40 btex..etex fails in reusableMPgraphic (2006.09.28 beta) Sanjoy Mahajan
2006-09-29  7:35 ` Hans Hagen
2006-09-29 11:32   ` Sanjoy Mahajan
2006-09-30 15:13     ` Sanjoy Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).