Re: Accessing mathmatics symbols within XeTeX
Ralf Stubner wrote:
On Sat, Jun 23, 2007 at 18:27 +0800, R (Chandra) Chandrasekhar wrote:
[...]
This is identical to what you have on your system.
Hmmm, looks tricky. I have meanwhile played around a bit and I can
reproduce your problems when I use a map file containing
lmsy10 none lmsy10
lmex10 none lmex10
with 'none' instead of the proper encoding files in the second
column.
I tried
grep none /var/lib/texmf/fonts/map/dvipdfm/updmap/dvipdfm.map
and
grep none /usr/share/texmf-texlive/fonts/map/dvipdfm/updmap/dvipdfm.map
Both did not give any output.
So maybe your xdvipdfmx uses some other file instead of the
correct dvipdfm.map. You could test this by using
xelatex -output-driver="xdvipdfmx -f dvipdfm.map -vvv -E"
I tried this out and it works!
xelatex -output-driver="xdvipdfmx -f dvipdfm.map -vvv -E" xetex-math.tex
gives me a xetex-math.pdf that shows the mathematics symbols correctly.
So, this invocation fixes the problem. The questions are:
1. What non-explicitly specified map file is the default invocation using? ; and
2. Which configuration files controls this?
3. Where does it appear in the TeX search path sequence?
Also, neither
xelatex xetex-math.tex
nor
xelatex -output-driver="xdvipdfmx -v -E" xetex-math.tex
works, though. So the assumed defaults are somehow not being used.
It is worth noting that I did have an xdvipdfmx Debian package from the XeTeX
site previously installed, but it is currently not installed:
dpkg -l xdvipdfmx
gives
un xdvipdfmx <none> (no description available)
AFAIK the fontmap used by xdvipdfmx is configured via the 'f' options
in /etc/texmf/dvipdfm/dvipdfmx.xfg.
In my setup, there is no file /etc/texmf/dvipdfm/dvipdfmx.cfg. The only file in
this path is called:
/etc/texmf/dvipdfm/config/config
and its first line is:
% config file for dvipdfm, prepared for teTeX by Thomas Esser.
Whether this should have been over-written in a texlive-2007 distribution, I do
not know.
Interestingly
locate dvipdfmx.cfg
gives
/largefiles/chandra/KubuntuDownloads/Feisty/Builds/texlive-bin-2007/build/source/texk/dvipdfmx/data/config/dvipdfmx.cfg
/largefiles/chandra/KubuntuDownloads/Feisty/Builds/texlive-bin-2007/build/source/texk/xdvipdfmx/data/config/dvipdfmx.cfg
/largefiles/chandra/KubuntuDownloads/Gutsy/Builds/texlive-bin-2007/build/source/texk/dvipdfmx/data/config/dvipdfmx.cfg
/largefiles/chandra/KubuntuDownloads/Gutsy/Builds/texlive-bin-2007/build/source/texk/xdvipdfmx/data/config/dvipdfmx.cfg
but mark that all ofthese are in the build/source directories and none of these
are in the TeX-related search path for my system, and that is puzzling.
As already stated, I have two locations for dvipdfm.map:
/usr/share/texmf-texlive/fonts/map/dvipdfm/updmap/dvipdfm.map
/var/lib/texmf/fonts/map/dvipdfm/updmap/dvipdfm.map
and neither has "none" in it.
Also see if the additional -vvv instead of -v gives any interesting
additional information. In my case the 'interesting part' looks like
this:
%%%%%%%%%%%%%%%%%%%%%%
[1<lmsy10@9.96pt(TFM:lmsy10[/usr/share/texmf/fonts/tfm/public/lm/lmsy10.tfm])
fontmap: lmsy10 -> lmsy10(lm-mathsy)
(Encoding:lm-mathsy[enclmmathsy])
pdf_font>> Simple font "lmsy10" enc_id=<lm-mathsy,3> opened at font_id=<lmsy10,0>.
%%%%%%%%%%%%%%%%%%%%%%
The output I get is:
-------------
No dvi filename specified, reading standard input.DVI File Info
Unit: 25400000 / 473628672
Magnification: 1000
DVI Comment: XeTeX output 2007.06.24:0119
stdin -> xetex-math.pdf
[1<lmsy10@9.96pt(TFM:lmsy10[/usr/share/texmf/fonts/tfm/public/lm/lmsy10.tfm])
fontmap: lmsy10 -> lmsy10(lm-mathsy)
(Encoding:lm-mathsy[enclmmathsy])
pdf_font>> Simple font "lmsy10" enc_id=<lm-mathsy,3> opened at font_id=<lmsy10,0>.
><cmr10@9.96pt(TFM:cmr10[/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr10.tfm])
fontmap: cmr10 -> cmr10[remap]
pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,1>.
><FreeSerif(FreeSerif:Medium)@9.96pt<NATIVE-FONTMAP:FreeSerif/H>
fontmap: FreeSerif/H -> /usr/local/share/fonts/FreeSerif.ttf(Identity-H)
pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"/usr/local/share/fonts/FreeSerif.ttf".
(CID:FreeSerif)
pdf_font>> Type0 font "/usr/local/share/fonts/FreeSerif.ttf"
cmap_id=<Identity-H,0> opened at font_id=<FreeSerif/H,2>.
><cmr7@6.97pt(TFM:cmr7[/usr/share/texmf-texlive/fonts/tfm/public/cm/cmr7.tfm])
fontmap: cmr7 -> cmr7[remap]
pdf_font>> Simple font "cmr7" enc_id=<builtin,-1> opened at font_id=<cmr7,3>.
><lmex10@9.96pt(TFM:lmex10[/usr/share/texmf/fonts/tfm/public/lm/lmex10.tfm])
fontmap: lmex10 -> lmex10(lm-mathex)
(Encoding:lm-mathex[enclmmathex])
pdf_font>> Simple font "lmex10" enc_id=<lm-mathex,4> opened at font_id=<lmex10,4>.
><lmmi7@6.97pt(TFM:lmmi7[/usr/share/texmf/fonts/tfm/public/lm/lmmi7.tfm])
fontmap: lmmi7 -> lmmi7(lm-mathit)
(Encoding:lm-mathit[enclmmathit])
pdf_font>> Simple font "lmmi7" enc_id=<lm-mathit,5> opened at font_id=<lmmi7,5>.
><lmmi10@9.96pt(TFM:lmmi10[/usr/share/texmf/fonts/tfm/public/lm/lmmi10.tfm])
fontmap: lmmi10 -> lmmi10(lm-mathit)
pdf_font>> Simple font "lmmi10" enc_id=<lm-mathit,5> opened at font_id=<lmmi10,6>.
>](lmsy10[BMIEWD+LMMathSymbols10-Italic][enclmmathsy][Type1][glyphs:/.notdef/radical][2
glyphs][419
bytes])(cmr10[FWZLNX+CMR10][built-in][Type1][glyphs:/.notdef/two/five/equal][4
glyphs][630
bytes])(cmr7[XEXJOF+CMR7][built-in][Type1][glyphs:/.notdef/zero/one/equal][4
glyphs][520 bytes])(lmex10[IDPCKE+LMMathExtension10-Regular][enclmmathex][Type1]
** WARNING ** agl: fix summationdisplay --> summation.display
[glyphs:/.notdef/summationdisplay][2 glyphs][462
bytes])(lmmi7[XLGBSF+LMMathItalic7-Italic][enclmmathit][Type1][glyphs:/.notdef/i][2
glyphs][454
bytes])(lmmi10[PVRXAP+LMMathItalic10-Italic][enclmmathit][Type1][glyphs:/.notdef/i][2
glyphs][455 bytes])
otf_cmap>> Creating ToUnicode CMap for "/usr/local/share/fonts/FreeSerif.ttf"...
(CID:/usr/local/share/fonts/FreeSerif.ttf[YABFYO+FreeSerif][CIDFontType2][15
glyphs (Max CID: 88)][3972 bytes])
** WARNING ** agl: fix summationdisplay --> summation.display
Compression eliminated approximately 2474 bytes
12617 bytes written
Output written on xetex-math.pdf (1 page).
Transcript written on xetex-math.log.
-------------
It is interesting that there is still one warning, but the output appears as
expected.
If all this does not help, then it might be best to post the different
outputs from xdvipdfmx to the XeTeX mailing list.
Would you recommend an apt-get remove --purge of texlive-full and a clean
re-install?
Thanks.
Chandra
24 Jun 07
Reply to: