ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Again: MetaPost calling TeX
@ 2001-06-17 19:46 Johannes Huesing
  2001-06-19 15:58 ` Hans Hagen
  2001-06-20 21:43 ` Patrick Gundlach
  0 siblings, 2 replies; 13+ messages in thread
From: Johannes Huesing @ 2001-06-17 19:46 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

Hi all,

again I have problems with btex .. etex constructs within MetaPost
files. Skimming old list messages I saw that this is often due to
versions of ConTeXt and TeXExec out of sync. This was the case indeed
so I installed the version of TeXExec that came with my ConTeXt (which
I fetched ojn March 28th. After that, the messages "could not make mpx
file" disappeared. Instead, I get messages of the kind that are
attached along with a minimal example that led to the error message.

What am I doing wrong?

Groetjes

Johannes
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]

[-- Attachment #2: minimal.tex --]
[-- Type: text/x-tex, Size: 402 bytes --]

\setupoutput[pdftex]
\runMPgraphicstrue

\starttext
\startuseMPgraphic{kante}
u=12pt;

pair p[];

p1 = (2u,0u);
p2 = (1u,2u);

label.top(btex $e_1$ etex, p1);
label.top(btex $e_2$ etex, p2);
label.top(btex $(e_1, e_2)$ etex, subpath 0.5 of p1--p2);
drawarrow p1--p2;
\stopuseMPgraphic

\placefigure[here]{15 Mann auf des toten Mannes Kiste}{\useMPgraphic{kante}}

yo ho ho und ne buddel rum

\stoptext

[-- Attachment #3: minimal.log --]
[-- Type: text/plain, Size: 2962 bytes --]

This is pdfeTeX, Version 3.14159-13h-pretest-20010126-2.1 (Web2C 7.3.3.1) (format=cont-en 2001.3.31)  17 JUN 2001 21:38
**&cont-en minimal.tex
(./minimal.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2001.3.27  fmt: 2001.3.31  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/share/texmf/tex/context/base/cont-new.tex <unprotect 2>
systems        : beware: some patches loaded from cont-new.tex!
<protect 2>)
system         : cont-old loaded
(/usr/local/share/texmf/tex/context/base/cont-old.tex
loading        : Context Old Macros
<unprotect 2> <protect 2>)
system         : cont-fil loaded
(/usr/local/share/texmf/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2 loaded
specials       : tex,postscript,rokicki loaded
\openout2 = `minimal.tui'.

system         : minimal.top loaded
(./minimal.top <unprotect 2> <protect 2>) (./minimal.tuo) (./minimal.tuo)
(./minimal.tuo) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo) (./minimal.tuo)
(./minimal.tuo) (./minimal.tuo) (./minimal.tuo)
\openout1 = `mpgraph.mp'.

specials       : tex,postscript,rokicki is reset
specials       : loading definition file tpd
(/usr/local/share/texmf/tex/context/base/spec-tpd.tex <unprotect 2>
specials       : loading definition file fdf
(/usr/local/share/texmf/tex/context/base/spec-fdf.tex <unprotect 3>
<unprotect 4> <protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3> <protect 2>)
specials       : fdf,tpd loaded
(./minimal.tuo) (./minimal.tuo)
systems        : begin file minimal at line 4
\openout1 = `mpgraph.mp'.

Randomizer initialized to 1520416030.
system(mpost mpgraph)...executed.

 [MP to PDF mpgraph.1] (./mpgraph.1)
! Missing number, treated as zero.
<to be read again> 
                   \relax 
\dopreparestackcaptionaut ...ptionminwidth \relax 
                                                  \captionminwidth \else \wd...

\doifelse ...esstest \ifx \!!stringa \!!stringb #3
                                                  \else #4\fi 
<argument> ...des toten Mannes Kiste}{\v!figuur }}
                                                  \else \dopreparestackcapti...

\doifelse ...\ifx \!!stringa \!!stringb #3\else #4
                                                  \fi 
\doifinsetelse ...doifinsetelse {#1}{#2}#3\else #4
                                                  \fi 
...
l.19 ... toten Mannes Kiste}{\useMPgraphic{kante}}

? x

Here is how much of TeX's memory you used:
 859 strings out of 28193
 11381 string characters out of 342592
 348671 words of memory out of 1100001
 25683 multiletter control sequences out of 10000+25000
 9056 words of font info for 28 fonts, out of 400000 for 1000
 22 hyphenation exceptions out of 1000
 26i,5n,59p,181b,364s stack positions out of 1500i,500n,1500p,50000b,5000s
No pages of output.

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

* Re: Again: MetaPost calling TeX
  2001-06-17 19:46 Again: MetaPost calling TeX Johannes Huesing
@ 2001-06-19 15:58 ` Hans Hagen
  2001-06-20 15:40   ` Johannes Huesing
  2001-06-20 17:18   ` Johannes Huesing
  2001-06-20 21:43 ` Patrick Gundlach
  1 sibling, 2 replies; 13+ messages in thread
From: Hans Hagen @ 2001-06-19 15:58 UTC (permalink / raw)
  Cc: ntg-context

At 09:46 PM 6/17/01 +0200, Johannes Huesing wrote:
>Content-Type: text/plain; charset=iso-8859-1
>Content-Disposition: inline
>X-MIME-Autoconverted: from 8bit to quoted-printable by smail.let.uu.nl id
KAA04870
>
>Hi all,
>
>again I have problems with btex .. etex constructs within MetaPost
>files. Skimming old list messages I saw that this is often due to
>versions of ConTeXt and TeXExec out of sync. This was the case indeed
>so I installed the version of TeXExec that came with my ConTeXt (which
>I fetched ojn March 28th. After that, the messages "could not make mpx
>file" disappeared. Instead, I get messages of the kind that are
>attached along with a minimal example that led to the error message.

bug in beta, probably solved, if not ... do you use the betabeta? 

>What am I doing wrong?

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Again: MetaPost calling TeX
  2001-06-19 15:58 ` Hans Hagen
@ 2001-06-20 15:40   ` Johannes Huesing
  2001-06-20 17:18   ` Johannes Huesing
  1 sibling, 0 replies; 13+ messages in thread
From: Johannes Huesing @ 2001-06-20 15:40 UTC (permalink / raw)


On Tue, Jun 19, 2001 at 05:58:52PM +0200, Hans Hagen wrote:
[...]
> 
> bug in beta, probably solved, if not ... do you use the betabeta? 
> 

Upon this I loaded the cont-tmf.zip from the beta page. Texexec is still 
version 2.5, and the same error shows up.

Greetings

Johannes 
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-19 15:58 ` Hans Hagen
  2001-06-20 15:40   ` Johannes Huesing
@ 2001-06-20 17:18   ` Johannes Huesing
  2001-06-21  3:48     ` Johannes Huesing
  1 sibling, 1 reply; 13+ messages in thread
From: Johannes Huesing @ 2001-06-20 17:18 UTC (permalink / raw)


On Tue, Jun 19, 2001 at 05:58:52PM +0200, Hans Hagen wrote:
> 
> bug in beta, probably solved, if not ... do you use the betabeta? 
> 

Now I see ... you meant the verybeta :)

Installed that one, still TeXexec version 2.5, and still the same error.

Greetings

Johannes

-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-17 19:46 Again: MetaPost calling TeX Johannes Huesing
  2001-06-19 15:58 ` Hans Hagen
@ 2001-06-20 21:43 ` Patrick Gundlach
  2001-06-21  3:42   ` Johannes Huesing
  2001-06-21  7:55   ` Hans Hagen
  1 sibling, 2 replies; 13+ messages in thread
From: Patrick Gundlach @ 2001-06-20 21:43 UTC (permalink / raw)


Hallo Johannes,

it seems to works here...

but the logfile says:

texexec minimal.tex
[...]
This is MetaPost, Version 0.641 (Web2C 7.3.1)
 error in metapost run : minimal-mpgraph.mp:94
 error in metapost run : minimal-mpgraph.mp:94
 [MP to PDF minimal-mpgraph.1]
[...]
(rest ok)

minimal-mpgraph.log:

This is MetaPost, Version 0.641 (Web2C 7.3.1) (mem=metafun 2001.5.9)  9 MAY 
2001 20:17
**&metafun minimal-mpgraph
(minimal-mpgraph.mp
{randomseed:=816}
write0 = `minimal-mpgraph.mpo'.

>> 0.5
>> path
! Not implemented: subpath(known numeric)of(path).
<to be read again> 
                   {
--->{
     curl1}..{curl1}
l.94 , subpath 0.5 of p1--
                          p2);
I'm afraid I don't know how to apply that operation to that
combination of types. Continue, and I'll return the second
argument (see above) as the result of the operation.

>> path
>> (0,3)
! Not implemented: (path)+(pair).
<to be read again> 
                   -
thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)-

(labxf(SUFFIX2)*lrcorner.p...
l.94 , subpath 0.5 of p1--p2)
                             ;
I'm afraid I don't know how to apply that operation to that
combination of types. Continue, and I'll return the second
argument (see above) as the result of the operation.

[1] )
1 output file written: minimal-mpgraph.1

Version numbers:

TeXExec 2.5, 
This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
ConTeXt  ver: 2001.4.26  fmt: 2001.5.9  int: english  mes: english

-- 
Viele Grüße, 

    Patrick Gundlach


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

* Re: Again: MetaPost calling TeX
  2001-06-20 21:43 ` Patrick Gundlach
@ 2001-06-21  3:42   ` Johannes Huesing
  2001-06-21  7:55   ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Johannes Huesing @ 2001-06-21  3:42 UTC (permalink / raw)


On Wed, Jun 20, 2001 at 11:43:58PM +0200, Patrick Gundlach wrote:
> Hallo Johannes,
> 
> it seems to works here...
> 
> but the logfile says:
> 
[...]
> >> 0.5
> >> path
> ! Not implemented: subpath(known numeric)of(path).

Whoops, that should mean "point 0.5 of p1--p2".

Of course, this doesn't affect my problem.

Reassuring to hear that it runs at your site. 

Greetings

Johannes
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-20 17:18   ` Johannes Huesing
@ 2001-06-21  3:48     ` Johannes Huesing
  0 siblings, 0 replies; 13+ messages in thread
From: Johannes Huesing @ 2001-06-21  3:48 UTC (permalink / raw)


Here is the log of the MetaPost run again. 

-----8-<-------
Randomizer initialized to 398035626.This is MetaPost, Version 0.641 (Web2C 7.3.1)
(mpgraph.mp (/usr/local/share/texmf/metapost/context/mp-tool.mp)
(/usr/local/share/texmf/metapost/context/mp-spec.mp)
(/usr/local/share/texmf/metapost/context/mp-grph.mp)
(/usr/local/share/texmf/metapost/context/mp-page.mp)
(/usr/local/share/texmf/metapost/context/mp-core.mp)
! mpx file ended unexpectedly.
l.13 

?
-----8-<-------

Line 13 in the mpgraph.mp file contains:

graphictextdirective "\global \loadfontdefinitionfileoncetrue " ;

and graphoctextdirective is defined in the mp-grph.mp module as
follows:

def graphictextdirective text t = 
  graphictextstring := graphictextstring & t & CRLF ; 
enddef ; 

so all that happens is the extension of graphicstextstring by 
the argument of graphictextdirective and a CRLF. I don't 
understand why this interferes with the .mpx file at that
moment.

Greetings

Johannes
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-20 21:43 ` Patrick Gundlach
  2001-06-21  3:42   ` Johannes Huesing
@ 2001-06-21  7:55   ` Hans Hagen
  2001-06-21 13:16     ` Johannes Huesing
  1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2001-06-21  7:55 UTC (permalink / raw)
  Cc: ntg-context

At 11:43 PM 6/20/01 +0200, Patrick Gundlach wrote:
>Hallo Johannes,
>
>it seems to works here...
>
>but the logfile says:
>
>texexec minimal.tex
>[...]
>This is MetaPost, Version 0.641 (Web2C 7.3.1)
> error in metapost run : minimal-mpgraph.mp:94
> error in metapost run : minimal-mpgraph.mp:94
> [MP to PDF minimal-mpgraph.1]
>[...]
>(rest ok)

Sometimes a good way to test a file is: 

texexec --nomp yourfile 

and then 

texexec --mptex yourfile-mpgraph.mp 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Again: MetaPost calling TeX
  2001-06-21  7:55   ` Hans Hagen
@ 2001-06-21 13:16     ` Johannes Huesing
  2001-06-21 13:57       ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Huesing @ 2001-06-21 13:16 UTC (permalink / raw)


On Thu, Jun 21, 2001 at 09:55:10AM +0200, Hans Hagen wrote:
> 
> Sometimes a good way to test a file is: 
> 
> texexec --nomp yourfile 
> 

So it would skip the mpost run? This doesn't work here, MetaPost is started
anyway.

> and then 
> 
> texexec --mptex yourfile-mpgraph.mp 
> 

And nothing like myfile-mpgraph.mp is created here.

[TeXexec 2.5]

Groetjes

Johannes
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-21 13:16     ` Johannes Huesing
@ 2001-06-21 13:57       ` Hans Hagen
  2001-06-21 19:54         ` Johannes Huesing
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2001-06-21 13:57 UTC (permalink / raw)
  Cc: ntg-context

At 03:16 PM 6/21/01 +0200, Johannes Huesing wrote:
>On Thu, Jun 21, 2001 at 09:55:10AM +0200, Hans Hagen wrote:
>> 
>> Sometimes a good way to test a file is: 
>> 
>> texexec --nomp yourfile 
>> 
>
>So it would skip the mpost run? This doesn't work here, MetaPost is started
>anyway.

hm, can you try --nomprun 

>And nothing like myfile-mpgraph.mp is created here.

then mpgraph.mp

[you can enable buffer prefixes in cont-sys,tex, see cont-sys.rme]

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: Again: MetaPost calling TeX
  2001-06-21 13:57       ` Hans Hagen
@ 2001-06-21 19:54         ` Johannes Huesing
  2001-06-21 21:06           ` Johannes Huesing
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Huesing @ 2001-06-21 19:54 UTC (permalink / raw)


On Thu, Jun 21, 2001 at 03:57:19PM +0200, Hans Hagen wrote:

> [you can enable buffer prefixes in cont-sys,tex, see cont-sys.rme]
> 

Same advice from Patrick -- and it worked, thank you!

Groetjes

Johannes

-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-21 19:54         ` Johannes Huesing
@ 2001-06-21 21:06           ` Johannes Huesing
  2001-06-22  7:12             ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Johannes Huesing @ 2001-06-21 21:06 UTC (permalink / raw)


Sorry -- the problem I addressed a few minutes ago has magically 
disappeared!

Sorry for the lawaai

Johannes
-- 
Johannes Hüsing | Domain: Adresse im Internet. Besteht aus einem 
hannes@ruhrau.de| technischen Teil (http://www.), einem Namen 
                | (erwin_meier) und einer Endung  (zum Beispiel 
                | .de für Deutschland) [J. Albrecht, "Zeit" 12/2001]


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

* Re: Again: MetaPost calling TeX
  2001-06-21 21:06           ` Johannes Huesing
@ 2001-06-22  7:12             ` Hans Hagen
  0 siblings, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2001-06-22  7:12 UTC (permalink / raw)
  Cc: ntg-context

At 11:06 PM 6/21/01 +0200, Johannes Huesing wrote:
>Sorry -- the problem I addressed a few minutes ago has magically 
>disappeared!

can be due to the fact that some status info is registered in the tui/tuo
file, esp the number of mp graphics, 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

end of thread, other threads:[~2001-06-22  7:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-17 19:46 Again: MetaPost calling TeX Johannes Huesing
2001-06-19 15:58 ` Hans Hagen
2001-06-20 15:40   ` Johannes Huesing
2001-06-20 17:18   ` Johannes Huesing
2001-06-21  3:48     ` Johannes Huesing
2001-06-20 21:43 ` Patrick Gundlach
2001-06-21  3:42   ` Johannes Huesing
2001-06-21  7:55   ` Hans Hagen
2001-06-21 13:16     ` Johannes Huesing
2001-06-21 13:57       ` Hans Hagen
2001-06-21 19:54         ` Johannes Huesing
2001-06-21 21:06           ` Johannes Huesing
2001-06-22  7:12             ` Hans Hagen

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