What packages do I need to compile .tex documents using XeLaTeX?

Posted by maria on Ask Ubuntu See other posts from Ask Ubuntu or by maria
Published on 2011-03-03T17:32:15Z Indexed on 2011/03/04 23:33 UTC
Read the original article Hit count: 436

Filed under:
|
|

Hi

I'm aware of the existence of similar threads on this forum. But any of replies mach to my problem.

I'm using Ubuntu 10.4 and I hadn't problems with fonts till I've decided to use XeLaTeX instead of LaTeX (cf http://tex.stackexchange.com/questions/12347/typesetting-a-document-using-arabic-script/12358#12358). The problem is that I'm not able to compile any .tex document using XeLaTeX, as well as properly display XeLaTeX documentation. As I've learn thanks to mentioned thread, XeLaTeX uses the fonts availables in general in the system.

I was trying yo read fontspec documentation, but it opens in pdf with a lot of white gaps and terminal output (quite long) consist mostly of errors. This are just few lines of it:

Error: Missing language pack for 'Adobe-Japan1' mapping 
Error: Unknown font tag 'F5.1' 
Error (24124): No font in show 
Error: Unknown font tag 'F5.1'

I was trying to compile simple XeLaTeX file:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}

Hello World!
\end{document}

without succes. This is terminal output of compilation:

This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
(./ex.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, polish, 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))
fontspec.cfg loaded.
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))kpathsea: Invalid fontname `Linux Libertine O', contains ' '

! Font \zf@basefont="Linux Libertine O" at 10.0pt not loadable: Metric (TFM) fi
le or installed font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt 
                                                  \unless \ifzf@icu \zf@set@...
l.3 \setmainfont{Linux Libertine O}

? 

I can't find Linux Libertine O. Searching for otf- by aptitude gives as result:

maria@maria-laptop:/etc/fonts$ aptitude search otf
p   emdebian-rootfs                                                             - emdebian root filesystem support                                                      
p   libotf-bin                                                                  - A Library for handling OpenType Font - utilities                                      
p   libotf-dev                                                                  - A Library for handling OpenType Font - development                                    
i   libotf0                                                                     - A Library for handling OpenType Font - runtime                                        
p   libotf0-dbg                                                                 - The libotf libraries and debugging symbols                                            
p   libpam-dotfile                                                              - A PAM module which allows users to have more than one password                        
p   livecd-rootfs                                                               - construction script for the livecd rootfs                                             
p   makebootfat                                                                 - Utility to create a bootable FAT filesystem                                           
p   otf-ipaexfont                                                               - Japanese OpenType font, IPAexFont (IPAexGothic/Mincho)                                
p   otf-ipaexfont-gothic                                                        - Japanese OpenType font, IPAexFont (IPAexGothic)                                       
p   otf-ipaexfont-mincho                                                        - Japanese OpenType font, IPAexFont (IPAexMincho)                                       
p   otf-ipafont                                                                 - Japanese OpenType font set, IPAfont                                                   
p   otf-ipafont-gothic                                                          - Japanese OpenType font set, IPA Gothic font                                           
p   otf-ipafont-mincho                                                          - Japanese OpenType font set, IPA Mincho font                                           
p   otf-stix                                                                    - the Scientific and Technical Information eXchange fonts                               
p   otf-thai-tlwg                                                               - Thai fonts in OpenType format                                                         
p   otf-yozvox-yozfont                                                          - Japanese proportional Handwriting OpenType font                                       
p   otf2bdf                                                                     - generate BDF bitmap fonts from OpenType outline fonts                                 
p   robotfindskitten                                                            - Zen Simulation of robot finding kitten    

So font in question is not just uninstalled, but not available, if I'm not wrong. Does it mean that I lack some repositoires?

I was trying also to apply solution from the thread How do I reinstall default fonts?, but the result is:

maria@maria-laptop:~$ sudo apt-get install msttcorefonts
[sudo] password for maria: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting ttf-mscorefonts-installer instead of msttcorefonts
ttf-mscorefonts-installer is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
maria@maria-laptop:~$ 

It seems that is not a usual problem for use of XeLaTeX; nobody in the mentioned thread suggested instalation of anything else than TeX Live.

Thanks in advance

© Ask Ubuntu or respective owner

Related posts about 10.04

  • An increase to 3 Gig of RAM slows down Ubuntu 10.04 LTS

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have Ubuntu 10.04 running from an external hard drive (installed on an enclosure) connected via USB port. Like a month or so ago, I increased RAM on my pc from 2 Gigs to 3 Gigs. This resulted on extremely long boot times and slow application loads. While I was understanding the nature of my problem… >>> More

  • Default /etc/apt/sources.list?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I need default source list for ubuntu 10.04. Can anybody help me? Here is Mine:--- Ubuntu supported packages deb http://archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse deb http://archive… >>> More

  • SSH main process ended

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have a running ubuntu server 10.04.1. When I tried to login to the server via ssh, I could not. Instead, I got connection refused error. I tried to ping the machine and I got reply! So, the clear reason is that SSH daemon is stopped. After reboot, I was able to login to my server via ssh. After… >>> More

  • Postgresql fails to start on Ubuntu 10.04.4 LTS

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I installed postgresql 9.2 from add-apt-repository ppa:pitti/postgresql using apt-get install postgresql-9.2 At the end of the install and every time I try to launch postgresql by using the following command /etc/init.d/postgresql start or service postgresql start I get this error: Error:… >>> More

  • PPA causing 404 error?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I need default source list for ubuntu 10.04. Can anybody help me? Here is Mine:--- Ubuntu supported packages deb http://archive.ubuntu.com/ubuntu/ lucid main restricted multiverse universe deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse deb http://archive… >>> More

Related posts about fonts