Re: [NTG-context] MetaPost bug? in MKIV

2010-03-08 Thread Hans Hagen

On 3-3-2010 21:26, Wolfgang Schuster wrote:

Am 03.03.10 21:21, schrieb Troy Henderson:

I hate to beat a dead horse, but I want to understand this for
certain. Is the consensus that graph.mp is incompatible with MKIV?
If so, are there any plans to make it compatible? After all, graph.mp
is part of the base MP distribution.

\usemodule[graph]? (this loads graph.mp)


indeed.

graph is somewhat special in the sense that it uses some poor man number 
typesetter and therefore it needs to be loaded in a special way with 
some code being overloaded


Hans


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


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-03 Thread Troy Henderson
I hate to beat a dead horse, but I want to understand this for
certain.  Is the consensus that graph.mp is incompatible with MKIV?
If so, are there any plans to make it compatible?  After all, graph.mp
is part of the base MP distribution.

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


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-03 Thread Wolfgang Schuster

Am 03.03.10 21:21, schrieb Troy Henderson:

I hate to beat a dead horse, but I want to understand this for
certain.  Is the consensus that graph.mp is incompatible with MKIV?
If so, are there any plans to make it compatible?  After all, graph.mp
is part of the base MP distribution.
   

\usemodule[graph]? (this loads graph.mp)

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


[NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Troy Henderson
The following example produces expected output with MKII (texexec) but
fails the compilation process with MKIV (context).

\startuseMPgraphic{foo}
   input graph;
   path p;
   gdata(data.d, $, augment.p($1,$2););
   draw begingraph(4in,2.5in);
  gdraw p;
   endgraph;
\stopuseMPgraphic
\starttext
   \useMPgraphic{foo}
\stoptext


The data stored in data.d is as follows:
0  0
1  1
2  4

When compiling with MKIV, the following error occurs:

!mplib  : mp terminal:
(/opt/context-minimals/tex/texmf/metapost/base/graph.mp
! Redundant equation.
to be read again
   ;
l.143 Gmargin.low=-.07;
  % bbox fraction for default ra...

! Redundant equation.
to be read again
   ;
l.144 Gmargin.high=1.07;
  % bbox fraction for default ra...

)

!mplib  : mp error: unknown, no error, terminal or log messages
!mplib  : mp terminal: [1]

!mplib  : mp error: unknown, no error, terminal or log messages

-- 
Troy Henderson
___
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
___


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Peter Rolf
Hi Troy,

I don't have the graph.mp file, but I have seen similar errors here. I
guess if you change the lines into

Gmargin.low:=-.07;
Gmargin.high:=1.07;

things work again. Sorry, I can't remember the reason why equations
cause trouble in mplib. But I'm quite sure that this is only an
incompatibility and not a bug.

Best wishes,  Peter

Am 02.03.2010 17:34, schrieb Troy Henderson:
 The following example produces expected output with MKII (texexec) but
 fails the compilation process with MKIV (context).
 
 \startuseMPgraphic{foo}
input graph;
path p;
gdata(data.d, $, augment.p($1,$2););
draw begingraph(4in,2.5in);
   gdraw p;
endgraph;
 \stopuseMPgraphic
 \starttext
\useMPgraphic{foo}
 \stoptext
 
 
 The data stored in data.d is as follows:
 0  0
 1  1
 2  4
 
 When compiling with MKIV, the following error occurs:
 
 !mplib  : mp terminal:
 (/opt/context-minimals/tex/texmf/metapost/base/graph.mp
 ! Redundant equation.
 to be read again
;
 l.143 Gmargin.low=-.07;
   % bbox fraction for default 
 ra...
 
 ! Redundant equation.
 to be read again
;
 l.144 Gmargin.high=1.07;
   % bbox fraction for default 
 ra...
 
 )
 
 !mplib  : mp error: unknown, no error, terminal or log messages
 !mplib  : mp terminal: [1]
 
 !mplib  : mp error: unknown, no error, terminal or log messages
 

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


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Taco Hoekwater


Peter Rolf wrote:
 Hi Troy,
 
 I don't have the graph.mp file, but I have seen similar errors here. I
 guess if you change the lines into
 
 Gmargin.low:=-.07;
 Gmargin.high:=1.07;
 
 things work again. Sorry, I can't remember the reason why equations
 cause trouble in mplib. But I'm quite sure that this is only an
 incompatibility and not a bug.

http://wiki.contextgarden.net/MkIV_Differences#Metapost

Best wishes,
Taco
... but it would be cool if there was a way to start a new mplib
instance for each MPfigure...
___
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
___


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Peter Rolf
Am 02.03.2010 19:42, schrieb Peter Rolf:
 Hi Troy,
 
 I don't have the graph.mp file, but I have seen similar errors here. I
 guess if you change the lines into
 
 Gmargin.low:=-.07;
 Gmargin.high:=1.07;
 
 things work again. Sorry, I can't remember the reason why equations
 cause trouble in mplib. But I'm quite sure that this is only an
 incompatibility and not a bug.

see

http://archive.contextgarden.net/message/20091107.123912.3010813e.en.html

for details. I will do the same :)

 Best wishes,  Peter
 
 Am 02.03.2010 17:34, schrieb Troy Henderson:
 The following example produces expected output with MKII (texexec) but
 fails the compilation process with MKIV (context).

 \startuseMPgraphic{foo}
input graph;
path p;
gdata(data.d, $, augment.p($1,$2););
draw begingraph(4in,2.5in);
   gdraw p;
endgraph;
 \stopuseMPgraphic
 \starttext
\useMPgraphic{foo}
 \stoptext


 The data stored in data.d is as follows:
 0  0
 1  1
 2  4

 When compiling with MKIV, the following error occurs:

 !mplib  : mp terminal:
 (/opt/context-minimals/tex/texmf/metapost/base/graph.mp
 ! Redundant equation.
 to be read again
;
 l.143 Gmargin.low=-.07;
   % bbox fraction for default 
 ra...

 ! Redundant equation.
 to be read again
;
 l.144 Gmargin.high=1.07;
   % bbox fraction for default 
 ra...

 )

 !mplib  : mp error: unknown, no error, terminal or log messages
 !mplib  : mp terminal: [1]

 !mplib  : mp error: unknown, no error, terminal or log messages

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

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


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Troy Henderson
When using

\startMPinclusions
   input graph;
\stopMPinclusions

or not even including the MPinclusions at all (and thus not doing
`input graph;') seems to give the same result.  The log of what
happens during the compile process is attached.

Troy


log
Description: Binary data
___
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
___


Re: [NTG-context] MetaPost bug? in MKIV

2010-03-02 Thread Peter Rolf
Am 02.03.2010 21:02, schrieb Troy Henderson:
 When using
 
 \startMPinclusions
input graph;
 \stopMPinclusions
 
 or not even including the MPinclusions at all (and thus not doing
 `input graph;') seems to give the same result.  The log of what
 happens during the compile process is attached.

i tried your example (found graph.mp) and i got a bunch of errors
regarding wrong picture color model, redundant equations and unknown
transform components.

#color problem is probably here

def Gwithpc_(expr q) =
  withpen penpart q withcolor (redpart q, greenpart q, bluepart q)
enddef;

 Another difference is the way text is handled in mkiv. In particular,
color (withcolor) is not applied to metapost text. 

#redundant equations

use ':=' for constants, etc.

# unknown transform components
 (0,0,_tt_w_1,0,0,1)
! Transform components aren't all known.

is this a problem with textext()? looks very cryptic to me.

anyhow, in the current form graph.mp does not work with mplib.


Peter

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

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