[XeTeX] Error with \newfontfamily
Alan Munn
amunn at gmx.com
Tue Jan 18 18:12:41 CET 2011
I've encountered a weird error with \newfontfamily. What am I doing wrong? -Alan
Minimal example:
% !TEX TS-program = XeLaTeX
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
%\newfontfamily\LM{\fontspec{Luxi Mono}} % fails if uncommented
\begin{document}
Some text.
{\fontspec{Luxi Mono}\selectfont Some Text} % even though this works
\end{document}
If I uncomment the \newfontfamily command, the document fails to compile, with the following error:
kpathsea: Running mktextfm
/usr/local/texlive/2010/texmf/web2c/mktexnam: Could not map source abbreviation 6 for 600.
/usr/local/texlive/2010/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2010/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
This is METAFONT, Version 2.718281 (TeX Live 2010)
kpathsea: Running mktexmf
! I can't find file `'.
<*> \mode:=ljfour; mag:=1; nonstopmode; input
Please type another input file name
! Emergency stop.
<*> \mode:=ljfour; mag:=1; nonstopmode; input
Transcript written on mfput.log.
grep: .log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ' failed to make .tfm.
kpathsea: Appending font creation commands to missfont.log.
./newfontfam-test.tex:7: Font \zf at basefont="" not loadable: Metric (TFM) file o
r installed font not found.
<to be read again>
\l_xparse_processor_int
l.7 \newfontfamily\LM{\fontspec{Luxi Mono}}
% fails if uncommented
?
Process aborted
Output of \listfiles is here: (I'm running a fully updated version of TL 2010)
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
fontspec.sty 2010/11/17 v2.1e Advanced font selection for XeLaTeX/LuaLaTeX
expl3.sty 2010/11/13 v2083 L3 Experimental code bundle wrapper
l3names.sty 2011/01/08 v2122 L3 Experimental Naming Scheme for TeX Primitiv
es
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty 2010/10/03 v2063 L3 Experimental basic definitions
l3expan.sty 2010/09/20 v2037 L3 Experimental Argument Expansion module
l3tl.sty 2010/12/18 v2103 L3 Experimental Token Lists
l3int.sty 2011/01/07 v2121 L3 Experimental Integer module
l3quark.sty 2010/09/20 v2036 L3 Experimental Quark Commands
l3seq.sty 2010/03/29 v1879 L3 Experimental sequences and stacks
l3toks.sty 2010/09/20 v2037 L3 Experimental Token Registers
l3prg.sty 2011/01/07 v2121 L3 Experimental control structures
l3clist.sty 2010/10/09 v2071 L3 Experimental comma separated lists
l3token.sty 2010/10/03 v2063 L3 Experimental token investigation and manipu
lation
l3prop.sty 2010/11/23 v2087 L3 Experimental Property Lists
l3msg.sty 2010/10/02 v2052 L3 Experimental LaTeX Messages module
l3io.sty 2010/10/03 v2063 L3 Experimental i/o module
l3skip.sty 2011/01/07 v2121 L3 Experimental skip registers
l3box.sty 2010/09/26 v2048 L3 Experimental Box module
l3keyval.sty 2010/04/11 v1890 L3 Experimental keyval processing
l3keys.sty 2010/11/11 v2082 L3 Experimental key-value support
l3precom.sty 2010/02/09 v1793 L3 Experimental precompilation module
l3xref.sty 2010/02/09 v1786 L3 Experimental cross referencing
l3file.sty 2010/03/21 v1853 L3 Experimental file loading
l3fp.sty 2011/01/10 v2128 L3 Experimental floating-point operations
l3luatex.sty 2010/07/18 v1985 L3 Experimental LuaTeX functions
calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
xparse.sty 2011/01/09 v2125 Generic document command parser
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
fontspec-patches.sty 2010/11/17 v2.1e Advanced font selection for XeLaTeX/Lu
aLaTeX
fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2010/11/06 v0.96 provides access to latin accents and many othe
r characters in Unicode lower plane
fontspec.cfg
--
Alan Munn
amunn at gmx.com
More information about the XeTeX
mailing list