[XeTeX] fontspec doesn't like [cm-default]

Roland Kuhn rkuhn at e18.physik.tu-muenchen.de
Wed Jan 31 14:25:08 CET 2007


Hi!

Trying to get my Garamond math going I installed the latest XeTeX  
(from svn three days ago), I even got the current latex/base from  
CTAN (put it all into /sw/share/texmf-local, next to my fink teTeX),  
but still there's this annoying error in fontspec:

======================================================================== 
==========
xelatex -output-driver='xdvipdfmx -r 1200 -V 4' test
This is XeTeX, Version 3.141592-2.2-0.997-dev (Web2C 7.5.6)
entering extended mode
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,  
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,  
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,  
norsk, polis
h, portuges, romanian, russian, slovak, slovene, spanish, swedish,  
turkish, noh
yphenation, loaded.
(/sw/share/texmf-local/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/sw/share/texmf-local/tex/latex/base/size10.clo))
(/sw/share/texmf-local/tex/xelatex/xunicode.sty)
(/sw/share/texmf-local/tex/xelatex/xltxtra.sty
(/sw/share/texmf-local/tex/generic/ifxetex/ifxetex.sty)
(/sw/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/sw/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/sw/share/texmf-dist/tex/latex/graphics/graphics.sty
(/sw/share/texmf-dist/tex/latex/graphics/trig.sty)
(/sw/share/texmf-local/tex/xelatex/graphics/graphics.cfg)
(/sw/share/texmf-local/tex/xelatex/graphics/xetex.def)))
(/sw/share/texmf-local/tex/xelatex/fontspec/fontspec.sty
(/sw/share/texmf-dist/tex/latex/tools/calc.sty)
(/sw/share/texmf-local/tex/xelatex/xkeyval/xkeyval.sty
(/sw/share/texmf-local/tex/xelatex/xkeyval/xkeyval.tex))
(/sw/share/texmf-local/tex/latex/lm/lmodern.sty)
(/sw/share/texmf-local/tex/latex/base/fontenc.sty
(/sw/share/texmf-local/tex/xelatex/euenc/eu1enc.def)
(/sw/share/texmf-local/tex/xelatex/euenc/lm/eu1lmr.fd))
fontspec.cfg loaded.
(/sw/share/texmf-local/tex/xelatex/fontspec/fontspec.cfg))
(/sw/share/texmf-dist/tex/latex/etex/etex.sty)
(/sw/share/texmf-local/tex/latex/base/fixltx2e.sty))

! LaTeX Error: Option clash for package fontspec.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...

l.4

?
(./test.aux) (/sw/share/texmf-local/tex/latex/lm/omllmm.fd)
(/sw/share/texmf-local/tex/latex/lm/omslmsy.fd)
(/sw/share/texmf-local/tex/latex/lm/omxlmex.fd) [1] (./test.aux) )
stdin -> test.pdf
[1
** NOTICE: This document contains a `Preview & Print only' licensed  
font **
]
** WARNING ** Glyph "(null)" missing in font "LMMathSymbols10-Italic".

7814 bytes written
Output written on test.pdf (1 page).
Transcript written on test.log.
======================================================================== 
==========

The test.tex file is very basic:

======================================================================== 
==========
\documentclass{article}
\usepackage{xunicode,xltxtra}
\usepackage[cm-default]{fontspec}

\begin{document}

hallo $af\mathrm{af}\rightarrow\mathit{af}$

\end{document}
======================================================================== 
==========

If I copy the fontspec.sty locally into my current directory and  
modify its default to "cm-default" instead of "lm-default" (and leave  
out the option in test.tex) it works, I get a \rightarrow; otherwise  
that glyph is simply missing. So, there are at least two problems here:

- fontspec doesn't cope with options?!?
- lm-default has problems with math symbols (they're in fact all  
missing)

The second one is already kind of explained in the lm README on CTAN,  
which simply states that the OpenType fonts don't have math symbols.  
Can this be worked around by using e.g. Type1?

Thanks,
                     Roland

--
TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching
Telefon 089/289-12575; Telefax 089/289-12570
--
CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482
--
Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M 
+ !V Y+
PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++
------END GEEK CODE BLOCK------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4324 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20070131/bd74c512/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://tug.org/pipermail/xetex/attachments/20070131/bd74c512/attachment-0001.bin 


More information about the XeTeX mailing list