Bug#446617: texlive-metapost: Omits font encoding from output
Package: texlive-metapost
Version: 2007-14
Severity: normal
Hi,
When I run metapost with the command
mpost test2.mp
where test2.mp is the minimal input file.
It produces two output files: test2.1 and test2.2.
I can view the first one in gv but not the second one.
The second one reports the error:
Error: /undefined in enclmmathsy
Operand stack:
Encoding
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop --nostringval-- 1 3 %oparray_pop 1 3 %oparray_pop
..runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval--
Dictionary stack:
--dict:1124/1686(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
--dict:15/16(L)--
Current allocation mode is local
Current file position is 3098
GPL Ghostscript 8.54: Unrecoverable error, exit code 1
The sole difference between the two output files is that the encoding vector
enclmmathsy is missing from the second one, i.e. the lines
%%BeginResource: encoding enclmmathsy
....
%%EndResource
(here ... denotes omitted lines).
This contradicts the documentation mpman.pdf pages 23-24,
which says that when prologues:=2 then the font encoding vectors should be
embedded.
Braun Gábor
##################################
minimal input file named test2.mp
prologues := 2;
input TEX;
TEXPRE("%&latex" & char(10) & "\documentclass{article}" & char(10)
& "\usepackage[T1]{fontenc}" & char(10)
& "\usepackage{lmodern}\begin{document}");
TEXPOST("\end{document}");
beginfig(1);
label(TEX("$-1$"),origin);
endfig;
beginfig(2);
label(TEX("$-1$"),origin);
endfig;
end;
##################################
other files
Output of metapost
test2.1
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: -7 -4 7 4
%%HiResBoundingBox: -6.36505 -3.55196 6.36505 3.55194
%%Creator: MetaPost 0.993
%%CreationDate: 2007.10.14:1457
%%Pages: 1
%%DocumentResources: procset mpost-minimal
%%+ font LMMathSymbols10-Italic LMRoman10-Regular
%%DocumentSuppliedResources: procset mpost-minimal
%%+ encoding enclmmathsy enclmrm
%%DocumentNeededResources: font LMMathSymbols10-Italic LMRoman10-Regular
%%IncludeResource: font LMMathSymbols10-Italic
%%IncludeResource: font LMRoman10-Regular
%%EndComments
%%BeginProlog
%%BeginResource: procset mpost-minimal
/bd{bind def}bind def/fshow {exch findfont exch scalefont setfont show}bd
/fcp{findfont dup length dict begin{1 index/FID ne{def}{pop pop}ifelse}forall}bd
/fmc{FontMatrix dup length array copy dup dup}bd/fmd{/FontMatrix exch def}bd
/Amul{4 -1 roll exch mul 1000 div}bd/ExtendFont{fmc 0 get Amul 0 exch put fmd}bd
/SlantFont{fmc 2 get dup 0 eq{pop 1}if Amul FontMatrix 0 get mul 2 exch put fmd}bd
%%EndResource
%%BeginResource: encoding enclmmathsy
/enclmmathsy [ /minus /periodcentered /multiply /asteriskmath /divide
/diamondmath /plusminus /minusplus /circleplus /circleminus /circlemultiply
/circledivide /circledot /circlecopyrt /openbullet /bullet /equivasymptotic
/equivalence /reflexsubset /reflexsuperset /lessequal /greaterequal
/precedesequal /followsequal /similar /approxequal /propersubset
/propersuperset /lessmuch /greatermuch /precedes /follows /arrowleft
/arrowright /arrowup /arrowdown /arrowboth /arrownortheast /arrowsoutheast
/similarequal /arrowdblleft /arrowdblright /arrowdblup /arrowdbldown
/arrowdblboth /arrownorthwest /arrowsouthwest /proportional /prime /infinity
/element /owner /triangle /triangleinv /negationslash /mapsto /universal
/existential /logicalnot /emptyset /Rfractur /Ifractur /latticetop
/perpendicular /aleph /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O /P /Q /R /S
/T /U /V /W /X /Y /Z /union /intersection /unionmulti /logicaland /logicalor
/turnstileleft /turnstileright /floorleft /floorright /ceilingleft
/ceilingright /braceleft /braceright /angbracketleft /angbracketright /bar
/bardbl /arrowbothv /arrowdblbothv /backslash /wreathproduct /radical
/coproduct /nabla /integral /unionsq /intersectionsq /subsetsqequal
/supersetsqequal /section /dagger /daggerdbl /paragraph /club /diamond /heart
/spade /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /lessorequalslant /greaterorequalslant
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef ] def
%%EndResource
%%BeginResource: encoding enclmrm
/enclmrm [ /Gamma /Delta /Theta /Lambda /Xi /Pi /Sigma /Upsilon /Phi /Psi
/Omega /ff /fi /fl /ffi /ffl /dotlessi /dotlessj /grave /acute /caron /breve
/macron /ring /cedilla /germandbls /ae /oe /oslash /AE /OE /Oslash /space
/exclam /quotedblright /numbersign /dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
/two /three /four /five /six /seven /eight /nine /colon /semicolon /exclamdown
/equal /questiondown /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O
/P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /quotedblleft /bracketright
/circumflex /dotaccent /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o
/p /q /r /s /t /u /v /w /x /y /z /endash /emdash /hungarumlaut /tilde /dieresis
/Abreve /Aogonek /Cacute /Ccaron /Dcaron /Ecaron /Eogonek /Gbreve /Lacute
/Lcaron /Lslash /Nacute /Ncaron /Eng /Ohungarumlaut /Racute /Rcaron /Sacute
/Scaron /Scedilla /Tcaron /Tcedilla /Uhungarumlaut /Uring /Ydieresis /Zacute
/Zcaron /Zdotaccent /IJ /Idotaccent /dcroat /section /abreve /aogonek /cacute
/ccaron /dcaron /ecaron /eogonek /gbreve /lacute /lcaron /lslash /nacute
/ncaron /eng /ohungarumlaut /racute /rcaron /sacute /scaron /scedilla /tcaron
/tcedilla /uhungarumlaut /uring /ydieresis /zacute /zcaron /zdotaccent /ij
/periodcentered /quotedbl /sterling /Agrave /Aacute /Acircumflex /Atilde
/Adieresis /Aring /backslash /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis
/Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute
/Ocircumflex /Otilde /Odieresis /currency /perthousand /Ugrave /Uacute
/Ucircumflex /Udieresis /Yacute /Thorn /Germandbls /agrave /aacute /acircumflex
/atilde /adieresis /aring /underscore /ccedilla /egrave /eacute /ecircumflex
/edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute
/ocircumflex /otilde /odieresis /anglearc /diameter /ugrave /uacute
/ucircumflex /udieresis /yacute /thorn /quotedblbase ] def
%%EndResource
%%EndProlog
%%BeginSetup
/LMMathSymbols10-Italic fcp
/Encoding enclmmathsy def currentdict end
/LMMathSymbols10-Italic-enclmmathsy exch definefont pop
/lmsy10 /LMMathSymbols10-Italic-enclmmathsy def
/LMRoman10-Regular fcp
/Encoding enclmrm def currentdict end
/LMRoman10-Regular-enclmrm exch definefont pop
/rm-lmr10 /LMRoman10-Regular-enclmrm def
%%EndSetup
%%Page: 1 1
0 0 0 setrgbcolor
-6.36505 -2.72176 moveto
(\000) lmsy10 9.96265 fshow
1.38365 -2.72176 moveto
(1) rm-lmr10 9.96265 fshow
showpage
%%EOF
#############
test2.2
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: -7 -4 7 4
%%HiResBoundingBox: -6.36505 -3.55196 6.36505 3.55194
%%Creator: MetaPost 0.993
%%CreationDate: 2007.10.14:1457
%%Pages: 1
%%DocumentResources: procset mpost-minimal
%%+ font LMMathSymbols10-Italic LMRoman10-Regular
%%DocumentSuppliedResources: procset mpost-minimal
%%+ encoding enclmmathsy enclmrm
%%DocumentNeededResources: font LMMathSymbols10-Italic LMRoman10-Regular
%%IncludeResource: font LMMathSymbols10-Italic
%%IncludeResource: font LMRoman10-Regular
%%EndComments
%%BeginProlog
%%BeginResource: procset mpost-minimal
/bd{bind def}bind def/fshow {exch findfont exch scalefont setfont show}bd
/fcp{findfont dup length dict begin{1 index/FID ne{def}{pop pop}ifelse}forall}bd
/fmc{FontMatrix dup length array copy dup dup}bd/fmd{/FontMatrix exch def}bd
/Amul{4 -1 roll exch mul 1000 div}bd/ExtendFont{fmc 0 get Amul 0 exch put fmd}bd
/SlantFont{fmc 2 get dup 0 eq{pop 1}if Amul FontMatrix 0 get mul 2 exch put fmd}bd
%%EndResource
%%BeginResource: encoding enclmrm
/enclmrm [ /Gamma /Delta /Theta /Lambda /Xi /Pi /Sigma /Upsilon /Phi /Psi
/Omega /ff /fi /fl /ffi /ffl /dotlessi /dotlessj /grave /acute /caron /breve
/macron /ring /cedilla /germandbls /ae /oe /oslash /AE /OE /Oslash /space
/exclam /quotedblright /numbersign /dollar /percent /ampersand /quoteright
/parenleft /parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
/two /three /four /five /six /seven /eight /nine /colon /semicolon /exclamdown
/equal /questiondown /question /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O
/P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /quotedblleft /bracketright
/circumflex /dotaccent /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o
/p /q /r /s /t /u /v /w /x /y /z /endash /emdash /hungarumlaut /tilde /dieresis
/Abreve /Aogonek /Cacute /Ccaron /Dcaron /Ecaron /Eogonek /Gbreve /Lacute
/Lcaron /Lslash /Nacute /Ncaron /Eng /Ohungarumlaut /Racute /Rcaron /Sacute
/Scaron /Scedilla /Tcaron /Tcedilla /Uhungarumlaut /Uring /Ydieresis /Zacute
/Zcaron /Zdotaccent /IJ /Idotaccent /dcroat /section /abreve /aogonek /cacute
/ccaron /dcaron /ecaron /eogonek /gbreve /lacute /lcaron /lslash /nacute
/ncaron /eng /ohungarumlaut /racute /rcaron /sacute /scaron /scedilla /tcaron
/tcedilla /uhungarumlaut /uring /ydieresis /zacute /zcaron /zdotaccent /ij
/periodcentered /quotedbl /sterling /Agrave /Aacute /Acircumflex /Atilde
/Adieresis /Aring /backslash /Ccedilla /Egrave /Eacute /Ecircumflex /Edieresis
/Igrave /Iacute /Icircumflex /Idieresis /Eth /Ntilde /Ograve /Oacute
/Ocircumflex /Otilde /Odieresis /currency /perthousand /Ugrave /Uacute
/Ucircumflex /Udieresis /Yacute /Thorn /Germandbls /agrave /aacute /acircumflex
/atilde /adieresis /aring /underscore /ccedilla /egrave /eacute /ecircumflex
/edieresis /igrave /iacute /icircumflex /idieresis /eth /ntilde /ograve /oacute
/ocircumflex /otilde /odieresis /anglearc /diameter /ugrave /uacute
/ucircumflex /udieresis /yacute /thorn /quotedblbase ] def
%%EndResource
%%EndProlog
%%BeginSetup
/LMMathSymbols10-Italic fcp
/Encoding enclmmathsy def currentdict end
/LMMathSymbols10-Italic-enclmmathsy exch definefont pop
/lmsy10 /LMMathSymbols10-Italic-enclmmathsy def
/LMRoman10-Regular fcp
/Encoding enclmrm def currentdict end
/LMRoman10-Regular-enclmrm exch definefont pop
/rm-lmr10 /LMRoman10-Regular-enclmrm def
%%EndSetup
%%Page: 1 1
0 0 0 setrgbcolor
-6.36505 -2.72176 moveto
(\000) lmsy10 9.96265 fshow
1.38365 -2.72176 moveto
(1) rm-lmr10 9.96265 fshow
showpage
%%EOF
######################################
List of ls-R files
-rw-r--r-- 1 gabor gabor 5717 2007-09-05 13:50 /home/gabor/texmf/ls-R
-rw-r--r-- 1 root root 1102 2007-10-07 17:23 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root staff 25 2005-11-20 18:05 /usr/local/share/texmf/ls-R -> /var/lib/texmf/ls-R-LOCAL
lrwxrwxrwx 1 root root 29 2007-07-02 14:39 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 2007-09-30 18:59 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 2007-09-30 18:59 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
Config files
lrwxrwxrwx 1 root root 20 2007-07-02 14:39 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 5382 2007-10-07 17:23 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 gabor gabor 9310 2007-06-24 18:33 /home/gabor/.texmf-var/web2c/updmap.cfg
-rw-r--r-- 1 root root 5698 2007-10-07 17:23 /var/lib/texmf/tex/generic/config/language.dat
######################################
Files in /etc/texmf/web2c/
összesen 0
######################################
md5sums of texmf.d
25bf3a257a0bedb5c67349c3eaff74af /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1 /etc/texmf/texmf.d/15Plain.cnf
8a26468004b5ebc7ae9884740356c1d0 /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c /etc/texmf/texmf.d/55Fonts.cnf
afccf1d3f87057411166a77c58e00bd1 /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068 /etc/texmf/texmf.d/75DviPS.cnf
92e13107fe95c3f681df94e0235d0e45 /etc/texmf/texmf.d/80tex4ht.cnf
5e03f3fdbf230e9056cc08ac1ad30299 /etc/texmf/texmf.d/85Misc.cnf
7e8f87acdeba48edac16d851c77b9e75 /etc/texmf/texmf.d/90TeXDoc.cnf
fec4324ba52f5c13b2ea88a57244a0d0 /etc/texmf/texmf.d/95NonPath~
30f4f13357c2761ed01a6a15f28725a5 /etc/texmf/texmf.d/95NonPath.cnf
29ab7b1538eddcff0cbf3084ed16c07a /etc/texmf/texmf.d/95NonPath.cnf.dpkg-old
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Versions of packages texlive-metapost depends on:
ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries
ii libkpathsea4 2007-14 TeX Live: path search library for
ii texlive-base 2007-12 TeX Live: Essential programs and f
ii texlive-common 2007-12 TeX Live: Base component
Versions of packages texlive-metapost recommends:
pn feynmf <none> (no description available)
Versions of packages tex-common depends on:
ii debconf 1.5.11 Debian configuration management sy
ii ucf 2.0020 Update Configuration File: preserv
Versions of packages texlive-metapost is related to:
pn tetex-base <none> (no description available)
pn tetex-bin <none> (no description available)
pn tetex-extra <none> (no description available)
ii tex-common 1.9 Common infrastructure for using an
-- debconf information:
tex-common/check_texmf_wrong:
tex-common/check_texmf_missing:
tex-common/singleuser: false
Reply to: