Re: Accessing mathmatics symbols within XeTeX
Ralf Stubner wrote:
On Sat, Jun 23, 2007 at 00:25 +0800, R (Chandra) Chandrasekhar wrote:
I have installed the Latin Modern OTF fonts in addition to the lmodern
package.
What have you done exactly?
I had previously installed the lmodern fonts manually on a local TeX tree. In
addition, I had also more recently installed the lmodern package. The newly
installed fonts awere made available to non-TeX applications via the KDE Control
Centre Font Manager.
To avoid interference from manually installed packages and fonts, I have now
moved the local TeX tree out of the way (by symbolically unlinking it), removed
the relevant files from /etc/texmf/updmap, and run:
sudo mktexlsr
sudo update-updmap
sudo updmap-sys
I have also deleted the LM and Latin Modern entries that I added in the KDE Font
Manager.
I am using (backported) lmodern (version
1.010x-3) and texlive-xetex (2007-11.np.etch.1) without any extra
installation of LM OTF and I cannot reproduce your problems.
I built my Feisty backport from the Ubuntu Gutsy repository using prevu and have
these packages installed:
ii lmodern 1.010x-3~7.04p scalable PostScript and OpenType fonts based
ii texlive-xetex 2007-12~7.04pr TeX Live: XeTeX macros
[...]
xelatex -output-driver="xdvipdfmx -q -E" <filename>
Specifying the output-driver in this way is not necessary, since
xdvipdfmx is the defualt on Linux systems. However, replacing the -q
with -v might give some hints as to what is going wrong.
I have now run the file with
xelatex -output-driver="xdvipdfmx -v -E" xetex-math.tex
The output from that is given below. [Note that running
xelatex xetex-math.tex
gives no warning and compiles successfully, but gives a PDF file with the maths
symbols missing as previously reported.]
The relevant
part of the output looks like this on my machine:
No dvi filename specified, reading standard input.DVI Comment: XeTeX output 2007.06.22:2035
stdin -> xetex-math.pdf
[1<lmsy10@9.96pt(TFM:lmsy10)(Encoding:lm-mathsy)
pdf_font>> Simple font "lmsy10" enc_id=<lm-mathsy,3> opened at font_id=<lmsy10,0>.
<cmr10@9.96pt(TFM:cmr10)
pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,1>.
<FreeSerif(FreeSerif:Medium)@9.96pt<NATIVE-FONTMAP:FreeSerif/H>
pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "/usr/share/fonts/truetype/freefont/FreeSerif.ttf".
(CID:FreeSerif)
pdf_font>> Type0 font "/usr/share/fonts/truetype/freefont/FreeSerif.ttf" cmap_id=<Identity-H,0> opened at font_id=<FreeSerif/H,2>.
<cmr7@6.97pt(TFM:cmr7)
pdf_font>> Simple font "cmr7" enc_id=<builtin,-1> opened at font_id=<cmr7,3>.
<lmex10@9.96pt(TFM:lmex10)(Encoding:lm-mathex)
pdf_font>> Simple font "lmex10" enc_id=<lm-mathex,4> opened at font_id=<lmex10,4>.
<lmmi7@6.97pt(TFM:lmmi7)(Encoding:lm-mathit)
pdf_font>> Simple font "lmmi7" enc_id=<lm-mathit,5> opened at font_id=<lmmi7,5>.
<lmmi10@9.96pt(TFM:lmmi10)
pdf_font>> Simple font "lmmi10" enc_id=<lm-mathit,5> opened at font_id=<lmmi10,6>.
](lmsy10[Type1])(cmr10[Type1])(cmr7[Type1])(lmex10[Type1])(lmmi7[Type1])(lmmi10[Type1])
otf_cmap>> Creating ToUnicode CMap for "/usr/share/fonts/truetype/freefont/FreeSerif.ttf"...
(CID:/usr/share/fonts/truetype/freefont/FreeSerif.ttf[CIDFontType2])
Compression eliminated approximately 2484 bytes
12619 bytes written
cheerio
ralf
The corresponding output for me is:
***********
No dvi filename specified, reading standard input.DVI Comment: XeTeX output
2007.06.23:1144
stdin -> xetex-math.pdf
[1<lmsy10@9.96pt(TFM:lmsy10)
pdf_font>> Simple font "lmsy10" enc_id=<builtin,-1> opened at font_id=<lmsy10,0>.
><cmr10@9.96pt(TFM:cmr10)
pdf_font>> Simple font "cmr10" enc_id=<builtin,-1> opened at font_id=<cmr10,1>.
><FreeSerif(FreeSerif:Medium)@9.96pt<NATIVE-FONTMAP:FreeSerif/H>
pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for
"/usr/share/fonts/truetype/freefont/FreeSerif.ttf".
(CID:FreeSerif)
pdf_font>> Type0 font "/usr/share/fonts/truetype/freefont/FreeSerif.ttf"
cmap_id=<Identity-H,0> opened at font_id=<FreeSerif/H,2>.
><cmr7@6.97pt(TFM:cmr7)
pdf_font>> Simple font "cmr7" enc_id=<builtin,-1> opened at font_id=<cmr7,3>.
><lmex10@9.96pt(TFM:lmex10)
pdf_font>> Simple font "lmex10" enc_id=<builtin,-1> opened at font_id=<lmex10,4>.
><lmmi7@6.97pt(TFM:lmmi7)
pdf_font>> Simple font "lmmi7" enc_id=<builtin,-1> opened at font_id=<lmmi7,5>.
><lmmi10@9.96pt(TFM:lmmi10)
pdf_font>> Simple font "lmmi10" enc_id=<builtin,-1> opened at font_id=<lmmi10,6>.
>](lmsy10[Type1]
** WARNING ** 0 (out of 0) glyphs in encoding "UBQZDS+LMMathSymbols10-Italic"
missing Unicode mapping...
** WARNING ** ToUnicode CMap "UBQZDS+LMMathSymbols10-Italic-UTF16" removed.
** WARNING ** Glyph "(null)" missing in font "LMMathSymbols10-Italic".
)(cmr10[Type1])(cmr7[Type1])(lmex10[Type1])(lmmi7[Type1])(lmmi10[Type1])
otf_cmap>> Creating ToUnicode CMap for
"/usr/share/fonts/truetype/freefont/FreeSerif.ttf"...
(CID:/usr/share/fonts/truetype/freefont/FreeSerif.ttf[CIDFontType2])
Compression eliminated approximately 2498 bytes
12405 bytes written
Output written on xetex-math.pdf (1 page).
Transcript written on xetex-math.log.
***********
As you can see, there are three warnings in my output that you do not have. The
output PDF file again has the maths symbols missing.
I would dearly love to get to the root of this problem and resolve it.
Thank you.
Chandra
23 Jun 07
Reply to: