What are the things to know when moving from XeTeX to LuaTeX, particularly when it comes to TTF/OTF support and OpenType features?
5 Answers
The only difference is for Linux: OpenType or TrueType fonts from the TeX directory structure, e.g. the texgyre fonts, have to be assigned by its filename for XeTeX, e.g. \fontspec{texgyre-pagella.otf}. LuaTeX itself also searches the TeX font directories, the reason why LuaTeX finds such font defined by its family name, e.g. \fontspec{TexGyre-Pagella}. For MiKTeX it should make no difference, fonts should be found.
The package mathspec works only for XeTeX. And polyglossia doesn't work with LuaLaTeX yet.
- 15,156
If you want to move from XeLaTeX to LuaLaTeX, you should read lualatex-doc. If you want to use from ConTeX MkII to MkIV, many things will change.
- 15,156
-
I'm interested in moving to a modern cutting-edge system, and mostly benefiting from font expansion while still keep an easy way to manage TTF/OTF fonts with OpenType features. I do not plan on using ConTeXt though, but rather keep with LaTeX for now (I'm using specific LaTeX packages such as
bibleref). – raphink Jul 20 '11 at 21:12
There are some caveats with multilingual typesetting with OpenType shaping features; I'm not really the one to ask about it, though. XeTeX uses the ICU to do its OpenType magic, which as I understand things is a lot more comprehensive than what's currently done by LuaTeX and its supporting machinery. For example, unless things have changed recently, I don't believe that LuaTeX will be able to typeset Indic languages correctly.
XeTeX isn't a silver bullet here either, but I think its coverage is more comprehensive.
- 73,872
-
Most of my needs as far as OpenType features are concerned are ligatures, letter/word spacing, oldstyle/uppercase numbers, small caps, alternate forms. Nothing really fancy. – raphink Jul 21 '11 at 08:24
-
As I actually ended up switching from XeTeX to LuaTeX, I've met a few other problems.
Most notably:
- LetterSpace and WordSpace options in
fontspecare not supported in LuaTeX, so you have to usetextlsfrom microtype like in PDFTeX in order to achieve tracking; textlssometimes break with small caps (see textls breaks smallcaps with luatex).
My main motivation for moving from XeTeX to LuaTeX was movies. As it is said in my posts (Can XeLaTeX | LuaTeX import movies ?, Why \movieref does not work under XeLaTeX) XeTeX has troubles with importing movies. The latter one is still unresolved.
- 13,332
-
movie15has been deprecated in favor of packagemedia9, which does work under XeTeX. – 0 _ Aug 19 '14 at 07:57
\fontspec{Linux Libertine O}and it works. Doesfontspecwork with LuaLaTeX? I get an error when I runlualatexon a tex file usingfontspec(using TL2009)... – raphink Jul 20 '11 at 14:47\setmainfont{TeXGyrePagella}. – Ulrike Fischer Jul 20 '11 at 15:03XeTeXneeds the file name! – Jul 20 '11 at 15:34