12

When trying to compile a LaTeX document in Ubuntu 10.04 with xelatex I get the following error message:

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, ngerman, german, german-x-2009-06-19, ngerman-x-2009-06-19, loaded.

(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty
(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-texlive/tex/latex/tools/calc.sty)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-texlive/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf-texlive/tex/generic/xkeyval/keyval.tex)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def)
(/usr/share/texmf-texlive/tex/xelatex/euenc/eu1lmr.fd)kpathsea: Invalid fontname
 `[lmroman10-regular]', contains '['

! Font EU1/lmr/m/n/10=[lmroman10-regular]:mapping=tex-text at 10.0pt not loadab
le: Metric (TFM) file or installed font not found.
<to be read again> 
                   relax 
l.100 \fontencoding\encodingdefault\selectfont

What is wrong?

  • Note: I just had this problem and thought I'd post it here. – Caramdir Jul 30 '10 at 15:07
  • Thanks for asking and answering the question; I'm sure it will be useful to others (esp. those who arrive through Google). – ShreevatsaR Jul 30 '10 at 15:18
19

This is a bug in Ubuntu 10.04's textlive-xetex package: It does not depend on the lmodern package (see the Lauchpad bug report). To fix the problem just install the lmodern package, e.g. via

sudo apt-get install lmodern

(This also effects Debian Lenny: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576599)

  • Moreover, I'd recommend to skip the Ubuntu packages install TeX Live directly from tug.org/texlive. – Caramdir Apr 20 '11 at 20:04
  • 1
    .... and this still isn't fixed (Ubuntu Server 14.04). Thanks! – Keelan Oct 20 '15 at 21:48
  • FYI, said bug still is not fixed as of Debian 7 (Wheezy). – Digger Mar 10 '17 at 0:41
1

I have installed TeXLive2010 on Ubuntu 10.04 using the ISO image file, I have no error and all things working properly. It seems that, the error is for your TeXLive installation! Try the ISO image.

  • Dude, the question is already answered and the answer was accepted! – Khaled Hosny Feb 13 '11 at 14:29
  • 3
    That's just an alternative! people who reach here by Googleing may select the alternative way! – hassan_noori Feb 13 '11 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.