ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Johannes Hüsing" <hannes@ruhrau.de>
Subject: Re: "Unable to make mpx file"
Date: Mon, 8 Jul 2002 21:54:48 +0200	[thread overview]
Message-ID: <20020708195448.GC886@ruhrau.de> (raw)
In-Reply-To: <5.1.0.14.1.20020708094353.03c4d818@server-1>

On Mon, Jul 08, 2002 at 09:46:58AM +0200, Hans Hagen wrote:
> At 12:04 PM 7/7/2002 +0200, you wrote:

Hi Hans and list,

[...]
> so you have enabled write 18 in texmf.cnf
> 

yes.

[...]
> >\startMPinclusions
> >verbatimtex
> >\newif\ifloadfontfileonce
> >etex
> >\stopMPinclusions
> 
> hm, is that one still needed?
> 

Let me put it this way: When MetaPost is run from within texexec, no 
mpxerr.log is generated. When I run MetaPost myself on the test-mpgraph.mp
without the above inclusion, mpxerr.log is generated and reads:

This is TeX, Version 3.14159 (Web2C 7.3.3.1) (format=tex 2002.2.24)  8 JUL 2002 21:41
**mpx1150.tex
(./mpx1150.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 88 test-mpgraph.mp
I'll pretend you didn't say \long or \outer or \global.

[1] )
Output written on mpx1150.dvi (1 page, 208 bytes).

> texexec --automp yourfile
> 
> this does a 'run in between job' instead of realtime.
> 

What I am doing now is using texexec --automp myfile after editing
myfile.tex by including a second example:

\setupoutput[pdftex]
\mainlanguage[de]
\useencoding[win]

\runMPgraphicstrue
%\protectbufferstrue

%  Hack, um " nicht als active character zu definieren,
%  während Metapost bearbeitet wird
\appendtoks \let\handlecompoundcharacter\string \to \everyMPgraphic

\setupbodyfont
  [sansserif, 18pt]

\startMPinclusions
verbatimtex
\newif\ifloadfontfileonce
etex
\stopMPinclusions

\starttext

\startuseMPgraphic{beispiel}
label(btex Hallo Welt etex, origin);
\stopuseMPgraphic

\useMPgraphic{beispiel}

\startuseMPgraphic{voorbeeld}
label(btex Hallo wereld etex, origin);
\stopuseMPgraphic

\useMPgraphic{voorbeeld}

\stoptext

This produces the "Unable to ..." messages, only twice now. Now I run
MetaPost on the myfile-mpgraph.mp file. It contains only the second 
example, but it compiles ok, and the resulting file myfile-mpgraph.2 
looks like proper Postscript to me.

Now I repeat texexec --automp on the tex file, which compiles without an 
error. This is the transcript:

This is pdfeTeX, Version 3.14159-pre-1.0-unofficial-20010704-2.1 (Web2C 7.3.3.1) (format=cont-en 2002.4.7)  8 JUL 2002 21:47
entering extended mode
**&cont-en test.tex
(./test.tex{/usr/local/TeX/texmf-var/pdftex/config/pdftex.cfg}

ConTeXt  ver: 2002.3.27  fmt: 2002.4.7  int: english  mes: english

language       : language en is active
system         : cont-new loaded
(/usr/local/TeX/texmf-local/tex/context/base/cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
system (E-TEX) : [line 458] \dimexpr 
)
system         : cont-old loaded
(/usr/local/TeX/texmf-local/tex/context/base/cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(/usr/local/TeX/texmf-local/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/usr/local/TeX/texmf-local/tex/context/base/cont-sys.tex
symbols        : loading symbolset nav
(/usr/local/TeX/texmf-local/tex/context/base/symb-nav.tex
pdftex         : needs map file: original-context-symbol.map
)
symbols        : loading symbolset mvs
(/usr/local/TeX/texmf-local/tex/context/base/symb-mvs.tex
pdftex         : needs map file: original-vogel-symbol.map
))
bodyfont       : 12pt rm is loaded
language       : patterns 2:2-en-2 4:2-de-2 loaded
specials       : tex,postscript,rokicki loaded
\openout2 = `test.tui'.

system         : test.top loaded
(./test.top)
\openout0 = `test-mpgraph.mp'.

\openout0 = `test-mprun.mp'.

\openout0 = `mpgraph.mp'.

\openout0 = `mprun.mp'.

specials       : loading definition file tpd
(/usr/local/TeX/texmf-local/tex/context/base/spec-tpd.tex
specials       : loading definition file fdf
(/usr/local/TeX/texmf-local/tex/context/base/spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1615] \ifcsname 
<protect 3>)
specials       : fdf loaded
)
specials       : fdf,tpd loaded
encoding       : coding win is loaded
(/usr/local/TeX/texmf-local/tex/context/base/enco-win.tex)
bodyfont       : bodyfont 12.5pt is defined (can better be done global)
bodyfont       : bodyfont 12.5pt is defined (can better be done global)
bodyfont       : bodyfont 10.8pt is defined (can better be done global)
bodyfont       : bodyfont 10.8pt is defined (can better be done global)
bodyfont       : bodyfont 21.5pt is defined (can better be done global)
bodyfont       : bodyfont 21.5pt is defined (can better be done global)
bodyfont       : bodyfont 18pt is defined (can better be done global)
bodyfont       : bodyfont 18pt is defined (can better be done global)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo) (./test.tuo)
(./test.tuo)
systems        : begin file test at line 23
\openout5 = `test-mpgraph.mp'.

Randomizer initialized to 1530918609.
system(mpost -progname=mpost -mem=metafun test-mpgraph)...executed.

 [MP to PDF] (./test-mpgraph.1)
\openout5 = `test-mpgraph.mp'.

system(mpost -progname=mpost -mem=metafun test-mpgraph)...executed.

[MP to PDF] (./test-mpgraph.2) [1.1{/usr/local/TeX/texmf/pdftex/config/psfonts.
map}{/usr/local/TeX/texmf-local/pdftex/config/psfonts-local.map}
Warning: pdfetex (file rawfonts.map): cannot open font map file

Warning: pdfetex (file csfontd.mapfile): cannot open font map file
]
systems        : end file test at line 37
 ) 
Here is how much of TeX's memory you used:
 1348 strings out of 36741
 20557 string characters out of 803867
 4377871 words of memory out of 5530425
 28111 multiletter control sequences out of 10000+50000
 16111 words of font info for 51 fonts, out of 500000 for 1000
 14 hyphenation exceptions out of 1000
 49i,16n,67p,168b,243s stack positions out of 5000i,500n,5000p,200000b,40000s
</usr/local/TeX/texmf/fonts/type1/bluesky/cm/cmr10.pfb></usr/local/TeX/texmf/
fonts/type1/bluesky/cm/cmss10.pfb>
Output written on test.pdf (1 page, 7669 bytes).

Sadly, now test-mpgraph.1 and test-mpgraph.2 are identical, a "diff" between 
both renders no output.

The problems appeared after reinstalling TeXLive 6 underneath a newer ConTeXt.

Any help is appreciated.

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


  reply	other threads:[~2002-07-08 19:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-07 10:04 Johannes Hüsing
2002-07-08  7:46 ` Hans Hagen
2002-07-08 19:54   ` Johannes Hüsing [this message]
2002-07-09  8:50     ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2002-05-29  4:54 Johannes Hüsing
2002-05-29  7:57 ` Hans Hagen
2002-05-29 21:43   ` Johannes Hüsing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020708195448.GC886@ruhrau.de \
    --to=hannes@ruhrau.de \
    --cc=johannes.huesing@ruhrau.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).