Until now, I have been compiling my LaTeX documents with pdfLaTeX. My standard document preamble includes the "usual suspects" for non-English speakers (inputenc
, fontenc
, babel
) and a bunch of other packages. Assuming I were to convert to XeLaTeX, what modifications of my preamble are advisable? I'm aware that the expansion=true
option of the microtype
package is not (yet) available for XeLaTeX, and that fontspec
is sort of a default package for OpenType fonts. What other packages (and package options) should be removed and, vice versa, incorporated when switching from pdfLaTeX to XeLaTeX?
[Tex/LaTex] Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX
packagespdftexxetex
Best Answer
inputenc
orfontenc
manually; use UTF-8 input and thefontspec
package insteadtextcomp
package; if you want macros to enter varios symbols, load thexunicode
package (EDIT BY LOCKSTEP: According to Ulrike Fischer, "[i]n a current system you don't need to loadxunicode
at all,fontspec
will do it at the correct place")polyglossia
instead ofbabel
unicode-math
instead ofamsfonts
/amssymb
etc. (butamsmath
can/should still be used).xltxtra
package isn't necessary any moreEverything in this list is probably valid for LuaLaTeX, too, with the exception of
xunicode
, which requires XeTeX.