Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
add comment

2 Answers

up vote 10 down vote accepted

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)

share|improve this answer
    
Moreover, I'd recommend to skip the Ubuntu packages install TeX Live directly from tug.org/texlive. –  Caramdir Apr 20 '11 at 20:04
add comment

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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