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

* Re: btex..etex fails in reusableMPgraphic (2006.09.28 beta)
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2006-09-29  7:35 UTC (permalink / raw)


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
-----------------------------------------------------------------

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

* Re: btex..etex fails in reusableMPgraphic (2006.09.28 beta)
  2006-09-29  7:35 ` Hans Hagen
@ 2006-09-29 11:32   ` Sanjoy Mahajan
  2006-09-30 15:13     ` Sanjoy Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-09-29 11:32 UTC (permalink / raw)


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.

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

* Re: btex..etex fails in reusableMPgraphic (2006.09.28 beta)
  2006-09-29 11:32   ` Sanjoy Mahajan
@ 2006-09-30 15:13     ` Sanjoy Mahajan
  0 siblings, 0 replies; 4+ messages in thread
From: Sanjoy Mahajan @ 2006-09-30 15:13 UTC (permalink / raw)


> > > ================ 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.

^ 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).