TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using LaTeX for five years now and have been using PDFLaTeX ever since. I find it hard to monitor the progress of LaTeX development. Recently there is a lot of talk about XeTeX. What is that exactly? Does it make sense to switch to it?

share|improve this question
Related questions: Differences between LuaTeX, ConTeXt and XeTeX really covers this, and Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX has useful pointers on moving from Pdflatex to Xelatex. – Charles Stewart Sep 23 '10 at 7:16
One feature that I don't like is: Neither xetex nor xelatex support clipping! See this warning message. – xport Aug 3 '11 at 15:56
xetex cannot determine the correct dimension of imported JPG images. We must convert the JPG to PDF first then xetex can produce the correct output. See here for the details. – xport Aug 3 '11 at 21:26
This piece does a great job of explaining the differences between LaTeX, pdfTeX, XeLaTeX, LuaTeX, and ConTeXt: sharelatex.com/blog/2012/12/01/… – Joe Mornin Jul 15 '13 at 1:29
up vote 80 down vote accepted

If you have trouble with fonts and character sets, it may be for you: lots of people have the experience that things just work with Xetex which require fiddling with Pdftex. Two capabilities:

  1. Xetex assumes its input is Unicode. To use Unicode with Pdftex, you need Tex code that manipulates encoding tables, like the {inputenc} Latex package;
  2. Xetex treats many system fonts, like TTF and OTF, on a par with Tex fonts. Using them is generally no harder than giving the path to the fonts. Pdftex needs to have the font metrics described to it for system fonts. Luatex can figure out this from system fonts, but it's not a perfectly troublefree matter yet.

If these aren't issues for you, then there's not much reason to consider moving to Xetex. Pdftex has more sophisticated microtypography.

Look at Joseph Wright's answer to the Differences between LuaTeX, ConTeXt and XeTeX question: Luatex is intended to be the successor project to Pdftex, and he is informative about what is ahead.

share|improve this answer
Thanks, that really makes it clear for me. – Ingo Sep 23 '10 at 7:23
On point 1, if you use any non-European script, using XeTeX makes life simple, and should be your first choice. The inputenc package only covers a limited part of Unicode. – Alan Munn Aug 3 '11 at 15:55
@AlanMunn But is pdfLaTeX still preferred for less popular languages which are supported by babel but not polyglossia? People talk as though XeLaTeX/LuaLaTeX is a linguist's dream and I'm sure that's true for some languages (especially those written in non-Latin alphabets) but I can't figure out any solution for hyphenation in polyglossia for some languages. Or can you continue to use babel with XeLaTeX/LuaLaTeX? (I had the impression not but its only an impression.) EDIT: Isee the next ans. says babel works but is not recommended. Why not? – cfr Jan 15 '14 at 23:38
@cfr The relationship between babel and XeLaTeX/LuaLaTeX is complicated, but improving, as Javier Bezos has taken over development of babel with one of the main goals to improve support for the Unicode engines. See tex-tipografia.com/babel_news.html Additionally, Arthur Reutenauer has taken over development of polyglossia with LuaTeX support being one of the first priorities. Since both packages are under active development, there is no simple answer to your question. – Alan Munn Jan 16 '14 at 0:07
@AlanMunn Thanks. Do you happen to know: Is the plan for polyglossia to eventually replace babel? If so, will languages currently supported by babel get support in polyglossia or will support for them disappear (or is this just unknown)? – cfr Jan 16 '14 at 0:12

I've switched to XeLaTeX a couple of months ago in order to use Open Type Fonts. Although I find the system stable and easy to use with the excellent fontspec package, there a few issues that should be mentioned:

  • If you are using ligatures such as old style figures you cannot copy & paste text from a PDF (see Small-caps, old-style numbers, and some ligatures produce odd symbols in PDF copy text?). Instead that text will be represented by missing symbols. That is an absolute killer if you want your documents do be indexed or want that others can copy and paste easily.

  • Someone (not me) mentioned on tex.sx that development of XeTeX has been progressing very slowly as the developer is busy with other things (no rant or criticism intended!). That means that it might take very long for a particular feature to be implemented or bugs to be fixed.

  • As mentioned before, microtypography is currently an issue with XeTeX.

  • It is recommended not to use babel with XeTeX (although it works if you are just using "Latin" languages).

These four issues (particularly the first one!) have convinced me to use LuaTeX instead of XeTeX as all of them are resolved in LuaTeX. I have yet to find any issues with it (apart from that it is a little slow with my fairly complicated templates). So if you want to change from pdfLaTeX you could also consider LuaTeX.

share|improve this answer
Are any of these issues resolved with Lua(La)TeX? – Ingo Mar 28 '12 at 10:21
Yes, that's what I wanted to say (obviously not clearly enough). 1) Copy and paste of ligatures is possible, just as it is in PdfLaTex. 2) AFAIK the development team is very active. 3) LuaTeX supports protrusion and font expansion directly. 4) Babel is supported, although polyglossia is not (yet). – Jörg Mar 28 '12 at 10:55
"ligatures such as old style figures"… text figures and ligatures are different things, no? – Mk12 May 26 '13 at 20:20

Here is a point that is implicit in the thorough comments and linked answers referenced above, but possibly not obvious.

Installing and managing fonts in traditional TeX systems can be daunting. For me, given that I want to focus on writing rather than software management, messing around with fonts was often not worth the trouble. XeTeX allows me to use lots of fonts easily while remaining ignorant (i.e. while allowing me to keep my time free for learning those things that are most important for me). On a Mac, at least, it's trivially easy to install fonts using a program like OS X's Font Book, and then XeTeX lets me pull those fonts into my LaTeX documents. Sounds like something similar is true for other popular operating systems.

share|improve this answer

Your Answer


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.