[NTG-context] Metapost produces "unknown"

Aditya Mahajan aditya.mahajan at alumni.iitk.ac.in
Tue Nov 23 23:21:50 CET 2004


Hi,
  I tried an example for generating linear text placement.

% File text.mp
input mp-tool ; % some initializations and auxiliary macros
input mp-spec ; % macros that support special features

prologues := 2;

beginfig(1)
draw hlintext.lft(0, 20, 5, 20cm, "@3e") ;
draw vlogtext.bot(0, 10, 9, 10cm, "@3e") ;
endfig;
end;
%-----------------------------

and compile it using

$texexec -mptex text.mp
(Output given at bottom) 
I get the error
unknown file type: texmfscripts

and the eps file text.1 has "unknown" written all over the place. 
There is something misconfigured in my system (Windows XP Miktex, 
updated tonight). Can someone help me to debug the problem.

Thanks
Aditya

=======================================================
Generated eps
========================================================
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: -58 -7 309 571
%%Creator: MetaPost
%%CreationDate: 2004.11.24:0218
%%Pages: 1
%%DocumentFonts: CMR10
  /cmr10 /CMR10 def
/fshow {exch findfont exch scalefont setfont show}bind def
%%EndProlog
%%Page: 1 1
%%HiResBoundingBox: -57.2854 -6.9185 308.23283 570.38826
-49.53665 -3.45926 moveto
(0) cmr10 9.96265 fshow
-44.55531 -3.45926 moveto
(unknown) cmr10 9.96265 fshow
-4.98134 -3.45926 moveto
(0) cmr10 9.96265 fshow
-49.53665 138.273 moveto
(5) cmr10 9.96265 fshow
-44.55531 138.273 moveto
(unknown) cmr10 9.96265 fshow
-4.98134 138.273 moveto
(0) cmr10 9.96265 fshow
-49.53665 280.00525 moveto
(1) cmr10 9.96265 fshow
-44.55531 280.00525 moveto
(unknown) cmr10 9.96265 fshow
-4.98134 280.00525 moveto
(1) cmr10 9.96265 fshow
-57.2854 421.7375 moveto
(1.5) cmr10 9.96265 fshow
-44.55531 421.7375 moveto
(unknown) cmr10 9.96265 fshow
-4.98134 421.7375 moveto
(1) cmr10 9.96265 fshow
-49.53665 563.46976 moveto
(2) cmr10 9.96265 fshow
-44.55531 563.46976 moveto
(unknown) cmr10 9.96265 fshow
-4.98134 563.46976 moveto
(1) cmr10 9.96265 fshow
-24.76833 -6.9185 moveto
(1) cmr10 9.96265 fshow
-19.78699 -6.9185 moveto
(unknown) cmr10 9.96265 fshow
19.78699 -6.9185 moveto
(0) cmr10 9.96265 fshow
258.69618 -6.9185 moveto
(1) cmr10 9.96265 fshow
263.67752 -6.9185 moveto
(unknown) cmr10 9.96265 fshow
303.2515 -6.9185 moveto
(1) cmr10 9.96265 fshow
showpage
%%EOF


===========================================
texexec output
============================================

  TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004
unknown file type: texmfscripts
               metapost : text
                 format : metafun
(text.mp (C:\texmf\metapost\context\base\mp-tool.mp)
(C:\texmf\metapost\context\base\mp-spec.mp) [1]
metafun 2004-5-21 18:40
  )
1 output file written: text.1
Transcript written on text.log.
   second MP run needed : 40 tex labels found
        metapost to tex : text
             executable : pdfetex
                 format : cont-en
              inputfile : tmpgraph
                 output : dvips
              interface : en
                options : once
           current mode : none

This is pdfeTeX, Version 3.141592-1.20a-2.2 (MiKTeX 2.4)
output format initialized to DVI
entering extended mode
(tmpgraph.tex

ConTeXt  ver: 2004.10.28  fmt: 2004.11.24  int: english  mes: english

language       : language en is active
<protectionstate 0>
system         : cont-new loaded
(C:\texmf\tex\context\base\cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
color          : palette rollover is available
system (E-TEX) : [line 1021]
system (E-TEX) : [line 1076]
)
system         : cont-old loaded
(C:\texmf\tex\context\base\cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(C:\texmf\tex\context\base\cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys.rme loaded
(C:\texmf\tex\context\user\cont-sys.rme
fonts          : [berry] [ec] []
(C:\texmf\tex\context\base\./type-syn.tex)
(C:\texmf\tex\context\base\./type-enc.tex)
(C:\texmf\tex\context\base\./type-siz.tex)
(C:\texmf\tex\context\base\./type-map.tex)
(C:\texmf\tex\context\base\./type-spe.tex)
(C:\texmf\tex\context\base\./type-exa.tex)
(C:\texmf\tex\context\base\./type-akb.tex))
bodyfont       : 12pt rm is loaded
language       : patterns en->default:default->1->2:2 
uk->default:default->2->2
:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 
fr->texnansi:texnansi->5->2:
2 fr->ec:ec->6->2:2 es->default:default->7->2:2 
it->texnansi:texnansi->8->2:2 i
t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 
loaded
specials       : tex,postscript,rokicki loaded
system         : tmpgraph.top loaded
(./tmpgraph.top
specials       : loading definition file dvi
(C:\texmf\tex\context\base\spec-dvi.tex <unprotect 3> <protect 3>)
specials       : tex loaded
specials       : loading definition file ps
(C:\texmf\tex\context\base\spec-ps.tex)
specials       : tex,postscript loaded
specials       : loading definition file tr
(C:\texmf\tex\context\base\spec-tr.tex)
specials       : tex,postscript,rokicki loaded
)
systems        : end file tmpgraph at line 1
  )
No pages of output.
Transcript written on tmpgraph.log.

            return code : 0
               run time : 0 seconds
               metapost : text
                 format : metafun
(text.mp (C:\texmf\metapost\context\base\mp-tool.mp)
(C:\texmf\metapost\context\base\mp-spec.mp) [1]
metafun 2004-5-21 18:40
  )
1 output file written: text.1
Transcript written on text.log.

         total run time : 1 seconds




More information about the ntg-context mailing list