I'm in the process of switching my LaTeX document from pdflatex
to lualatex
. Similar to Frequently loaded packages: Differences between pdfLaTeX and XeLaTeX I would like to know, what are typical packages loaded with LuaLaTeX and which typical pdfLaTeX packages should be removed or replaced?
The following are the main difference I found so far:
- Don't use
inputenc
, but instead save your plain files in utf-8 and add the following as the first line:% !Mode:: "TeX:UTF-8"
. - Don't use font-packages but instead load
fontspec
with\setmainfont{FONT_NAME}
,\setsansfont{FONT_NAME}
,\setmonofont{FONT_NAME}
. - In order to make
microtype
work withfontspec
, use the beta version ofmicrotype
(At least with TeX Live 2011). See more details. hyperref
should be loaded with the optionunicode
.
What other packages do you use? What about babel
and textcomp
? And are there some "killer-packages" that are only working with lualatex
besides fontspec
?