ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* btex and etex
@ 2000-09-24 21:21 Peter.Andree
  2000-09-25  7:13 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter.Andree @ 2000-09-24 21:21 UTC (permalink / raw)


Hi to all,
I have an unsolved problem using the ways Hans
indicated in his book METAFUN. I would like to use the command
        texexec --mptex myfile.mp
because of the commands btex $ .... $ etex in the label-part.
Unfortunately I get all the time the message:

This is MetaPost, Version 0.641 (MiKTeX 1.20e (Snapshot build
187)) (preloaded mem=plain 2000.9.18)  24 SEP 2000 22:55
**D:\ModernArt\test-file.mp (D:\ModernArt\test-file.mp
>> D:\ModernArt\test-file.mp
>> D:\ModernArt\test-file.mpx
! Unable to make mpx file. l.3   dotlabel (btex
                     $\frac{x}{y}$ etex,(50,50));
The two files given above are one of your source files and an
auxiliary file I need to read to find out what your btex..etex
blocks mean. If you don't know why I had trouble, try running it
manually through MPtoTeX, TeX, and DVItoMP

I can't find the reason. The attempt to try it with TeX failed.
I'm running WIN 2000, 128 MB RAM, MiKTeX (LaTeX 1999) and
ConTeXt (Ver. 29.05.2000).

Thanks for help, regards Peter.

Peter Andree, Unterriessstr. 4, D-78465 Konstanz
------------------------------------------------------------
<http://home.t-online.de/home/peter.andree>
<http://www.ksk.ch/mathematik/mathonline>
------------------------------------------------------------


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

* Re: btex and etex
  2000-09-24 21:21 btex and etex Peter.Andree
@ 2000-09-25  7:13 ` Hans Hagen
  2002-04-14  6:48   ` Johannes Hüsing
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2000-09-25  7:13 UTC (permalink / raw)
  Cc: ntg-context

At 11:21 PM 9/24/00 +0200, Peter.Andree@t-online.de wrote:
>Hi to all,
>I have an unsolved problem using the ways Hans
>indicated in his book METAFUN. I would like to use the command
>        texexec --mptex myfile.mp
>because of the commands btex $ .... $ etex in the label-part.
>Unfortunately I get all the time the message:
>
>This is MetaPost, Version 0.641 (MiKTeX 1.20e (Snapshot build
>187)) (preloaded mem=plain 2000.9.18)  24 SEP 2000 22:55
>**D:\ModernArt\test-file.mp (D:\ModernArt\test-file.mp
>>> D:\ModernArt\test-file.mp
>>> D:\ModernArt\test-file.mpx
>! Unable to make mpx file. l.3   dotlabel (btex
>                     $\frac{x}{y}$ etex,(50,50));
>The two files given above are one of your source files and an
>auxiliary file I need to read to find out what your btex..etex
>blocks mean. If you don't know why I had trouble, try running it
>manually through MPtoTeX, TeX, and DVItoMP
>
>I can't find the reason. The attempt to try it with TeX failed.
>I'm running WIN 2000, 128 MB RAM, MiKTeX (LaTeX 1999) and
>ConTeXt (Ver. 29.05.2000).

[metafun assumes the latest context, which has a bunch of metapost files]

The btex/etex method is a tricky one. In your case, mpost still tries to
locate an mpx file. 

Try the latest context (esp texexec) since it implements a slightly
different cycle, also taking care of problematic files and name clashes and
so. For miktex, take a look at texexec.rme which has a few new entries
concerning mp, although it should work ok. 

How does 'mpost myfile.mp' perform? That should use the (buggy) method
coded in texmf.cnf. 

Hans 
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      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] 3+ messages in thread

* Re: btex and etex
  2000-09-25  7:13 ` Hans Hagen
@ 2002-04-14  6:48   ` Johannes Hüsing
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Hüsing @ 2002-04-14  6:48 UTC (permalink / raw)


On Mon, Sep 25, 2000 at 09:13:46AM +0200, Hans Hagen wrote:
[...]
> The btex/etex method is a tricky one. In your case, mpost still tries to
> locate an mpx file. 
> 

Indeed, I have tried to run the following file:

----
%\setupoutput[pdftex]
\runMPgraphicstrue
\starttext

\startuseMPgraphic{location}
u := 10pt;
v := 14pt;

draw (0u, 0v);
label.top(btex Amsterdam etex, (0u, 0v));

draw (2.4u, 2v);
label.top(btex Groningen etex, (2.4u, 2v));

draw (1.2u, 0.8v);
label.top(btex Hasselt etex, (2.4u, 0.8v));
\stopuseMPgraphic

\useMPgraphic{location}
\stoptext
----

The error message on the mpost run reads:

----
This is MetaPost, Version 0.641 (Web2C 7.3.3.1)
(minimalMP-mpgraph.mp
! mpx file ended unexpectedly.
l.22 
----

> Try the latest context (esp texexec) since it implements a slightly
> different cycle, 

Let's see: My texexec version is 2.5. The ConTeXt version stems from 
2002.03.27.

[...]
> 
> How does 'mpost myfile.mp' perform? That should use the (buggy) method
> coded in texmf.cnf. 

If I run mpost on the generated Metapost inclusion, I get:

----
This is MetaPost, Version 0.641 (Web2C 7.3.3.1)
(minimalMP-mpgraph.mp (/usr/local/TeX/texmf-local/metapost/context/mp-tool.mp)
(/usr/local/TeX/texmf-local/metapost/context/mp-spec.mp)
(/usr/local/TeX/texmf-local/metapost/context/mp-grph.mp)
(/usr/local/TeX/texmf-local/metapost/context/mp-page.mp)
(/usr/local/TeX/texmf-local/metapost/context/mp-core.mp)/usr/local/bin/makempx: Command failed: tex mpxerr.tex; see mpxerr.log

>> minimalMP-mpgraph.mp
>> minimalMP-mpgraph.mpx
! Unable to make mpx file.
l.91 label.top(btex
                    Amsterdam etex
Transcript written on minimalMP-mpgraph.log.
----

The mpxerr.tex file reads:

----
\global \loadfontfileoncetrue%
\shipout\hbox{\smash{\hbox{\hbox{% line 91 minimalMP-mpgraph.mp
Amsterdam}\vrule width1sp}}}
\shipout\hbox{\smash{\hbox{\hbox{% line 94 minimalMP-mpgraph.mp
Groningen}\vrule width1sp}}}
\shipout\hbox{\smash{\hbox{\hbox{% line 97 minimalMP-mpgraph.mp
Hasselt}\vrule width1sp}}}
\end{document}
----

and the associated log file:

----This is TeX, Version 3.14159 (Web2C 7.3.3.1) (format=tex 2002.2.24)  14 APR 2002 08:46
**mpx1091.tex
(./mpx1091.tex
! Undefined control sequence.
l.1 \global \loadfontfileoncetrue
                                 %
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! You can't use a prefix with `\shipout'.
<to be read again> 
                   \shipout 
l.2 \shipout
            \hbox{\smash{\hbox{\hbox{% line 91 minimalMP-mpgraph.mp
I'll pretend you didn't say \long or \outer or \global.

[1] [1] [1] )
Output written on mpx1091.dvi (3 pages, 352 bytes).
---

What is hppening here?

Greetings

Johannes
-- 
Johannes Hüsing   There is something fascinating about science. One gets
hannes@ruhrau.de  such wholesale returns of conjecture from such a 
                  trifling investment of fact.                Mark Twain


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

end of thread, other threads:[~2002-04-14  6:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-24 21:21 btex and etex Peter.Andree
2000-09-25  7:13 ` Hans Hagen
2002-04-14  6:48   ` Johannes Hüsing

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