Menu

#5 Support for XeLaTeX

open
None
3
2008-02-07
2007-11-06
nemolivier
No

All is in the title !
XeLaTeX come from Mac® word but run well on linux too and is include in Texlive. It’s realy clean for using utf8 and playing with fonts (way better than the usual tex commands).
See : http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=xetex
But the pdf doc in /usr/share/doc/texlive-xetex/ is way better.

Some simple (and beautyfull) explanations here : http://nitens.org/taraborelli/latex

I add this (cause small problem : syntax highlight is no more automatic) :
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
At the top of my file and this :
\usepackage{fontspec, xunicode, xltxtra}
In the head of my tex file. (no more need of usepackage[utf8x]{inputenc})

Then, instead of latex , I run xelatex (I’ll add a new build profile).
Et voilà !

Olivier.

Discussion

  • Michael Zeising

    Michael Zeising - 2007-11-07
    • assigned_to: nobody --> m_zeising
     
  • Michael Zeising

    Michael Zeising - 2007-11-07

    Logged In: YES
    user_id=1016811
    Originator: NO

    Okay, I didn't know XeLaTeX :)

    So the _feature_ that you request is having this source automatically inserted by the "New LaTeX" dialog when choosing something like "I am using XeLaTeX"?

     
  • nemolivier

    nemolivier - 2007-11-08

    Logged In: YES
    user_id=1903575
    Originator: YES

    Yes, maybe, and someting in the execute button (like the one I add).
    Ther’se also some new command in line for choosing the fonts (but I’m a little latex user, I don’t understand everything).
    For exemple I can use this in my document :

    \setromanfont[Ligatures={Discretionary}]{Minion Pro}

    And have the Minion Pro font !

    I also discover ConTeX (very, very intresting) and ConTeX can use XetTeX too.

     
  • Michael Zeising

    Michael Zeising - 2008-02-07
    • priority: 5 --> 3
     
  • Nobody/Anonymous

    Logged In: NO

    Well, rubber currently doesn’t handle xelatex as the processor. I modded rubber include a new xelatex module that specifies the processor:

    $ cat /usr/share/rubber/modules/xelatex.rub
    set program xelatex
    set engine XeLaTeX
    clean $target-blx.bib $target.out

    So I now can run rubber -m xelatex bla.tex.

    nemolivier, the first two lines you have in your source are not necessary unless you use the editor TexShop on OSX. This is only the "modeline" for Texshop to recognise XeTeX files. The side-effect is that many programs think that this is a PS file, because they start similarly...

     
  • Nobody/Anonymous

    Logged In: NO

    Well, rubber currently doesn’t handle xelatex as the processor. I modded rubber include a new xelatex module that specifies the processor:

    $ cat /usr/share/rubber/modules/xelatex.rub
    set program xelatex
    set engine XeLaTeX
    clean $target-blx.bib $target.out

    So I now can run rubber -m xelatex bla.tex.

    nemolivier, the first two lines you have in your source are not necessary unless you use the editor TexShop on OSX. This is only the "modeline" for Texshop to recognise XeTeX files. The side-effect is that many programs think that this is a PS file, because they start similarly...

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, the second comments was supposed to be this reference:

    http://email.esm.psu.edu/pipermail/macosx-tex/2008-February/034027.html

    I clicked the back button and pasted but suddenly the old text re-appeared and erased the link.

     
  • fipm

    fipm - 2008-07-09

    Logged In: YES
    user_id=1944614
    Originator: NO

    At least for my part, the most useful feature to add would be just a XeLaTeX build profile. Either directly calling the xelatex engine, or creating a rubber module as per the previous comment.
    The %! lines in the fist request are not actually needed once you call the xelatex related packages in the preable.

     

Log in to post a comment.