ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* btex etex trouble
@ 2001-07-12 14:48 Eckhart Guthöhrlein
  2001-07-13 20:42 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Eckhart Guthöhrlein @ 2001-07-12 14:48 UTC (permalink / raw)


I have some questions/remarks on inclusion of mp graphics with btex/etex. 
Sorry if I overlooked something in the docs, I'm rather exhausted now...

Is there a way to tell context to write mpgraph.mp files suitable for plain 
tex, not for context? I got the following error message

This is TeX, Version 3.14159 (MiKTeX 2.1)
(D:/localtexmf/mpx52.tmp/mpx314.tex
! Undefined control sequence.
l.2 ...bal \loadfontdefinitionfileoncetrue
                                           %
! You can't use a prefix with `\shipout'.
<to be read again>
                    \shipout
l.3 \shipout
             \hbox{\smash{\hbox{\hbox{% line 84 C:\DOKUME~1\Eckhart\De...
[1] )
(see the transcript file for additional information)
Output written on mpx314.dvi (1 page, 200 bytes).
Transcript written on mpx314.log.

 >> mpgraph.mp
 >> mpgraph.mpx
! Unable to make mpx file.
l.84 draw btex
                Argh etex
Transcript written on mpgraph.log.

by tex when called by mp. I managed to instruct mp to call context instead 
of plain tex, so it works now, but plain tex would be enough for me (simple 
text, cm fonts) and considerably faster. Inspection of mpgraph.mp showed

graphictextformat := "context" ;
graphictextdirective "\global \loadfontdefinitionfileoncetrue " ;

Can this be changed? Or something else? Or is it impossible / undesirable 
to use plain tex for some reasons I don't see?
Furthermore, the result of running mptotex manually looks somewhat strange 
to me:

% line 82 mpgraph.mp
\global \loadfontdefinitionfileoncetrue%
\shipout\hbox{\smash{\hbox{\hbox{% line 85 mpgraph.mp
Interpretation}\vrule width1sp}}}
\shipout\hbox{\smash{\hbox{\hbox{% line 87 mpgraph.mp
Verfeinerung}\vrule width1sp}}}
\end{document}

It can be compiled using context and further processed by dvitomp, no 
problem, but where does \end{document} come from? Looks like latex.

The trouble is already solved, but I would be grateful for some clarifying 
remarks.

Eckhart


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

* Re: btex etex trouble
  2001-07-12 14:48 btex etex trouble Eckhart Guthöhrlein
@ 2001-07-13 20:42 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-07-13 20:42 UTC (permalink / raw)
  Cc: ConTeXt mailing list

At 02:48 PM 7/12/2001 +0000, Eckhart Guthöhrlein wrote:
>I have some questions/remarks on inclusion of mp graphics with btex/etex.
>Sorry if I overlooked something in the docs, I'm rather exhausted now...
>
>Is there a way to tell context to write mpgraph.mp files suitable for plain
>tex, not for context? I got the following error message

% output=pdftex

\starttext

\startMPpage
   metapost code
\stopMPpage

\stoptext

This is nearly plain, and context understands most plain tex commands,

>by tex when called by mp. I managed to instruct mp to call context instead
>of plain tex, so it works now, but plain tex would be enough for me (simple
>text, cm fonts) and considerably faster. Inspection of mpgraph.mp showe

The latest version of context is (up to twice) as fast (depending on the 
task).

>graphictextformat := "context" ;
>graphictextdirective "\global \loadfontdefinitionfileoncetrue " ;
>
>Can this be changed? Or something else? Or is it impossible / undesirable
>to use plain tex for some reasons I don't see?

Not so much impossible, more a lack of need and time.

It can be compiled using context and further processed by dvitomp, no
>problem, but where does \end{document} come from? Looks like latex.

This is generated by the metapost related tools: \end is also valid plain

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] 2+ messages in thread

end of thread, other threads:[~2001-07-13 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-12 14:48 btex etex trouble Eckhart Guthöhrlein
2001-07-13 20:42 ` 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).