Before an emerging of a Unicode-based XeLaTeX
and LuaLaTeX
there was pdfLaTeX
which directly could output to a pdf
-format. For the convenience of a typeset of mathematics, the amsmath
package was mainly used.
But after emerging of the Unicode-based engines, there also appear such package like unicode-math
(also, lualatex-math
for fixing some troubles). And now there are questions and problems of how or in what order to use these packages, because sometimes we encounter conflicts between them (mainly with mathtools
), as evidenced by numerous questions here in tex.se.
Aslo, for example, if one use lualatex
, it is possible to use either amsmath
or the unicode-math
package, or both (it's not uncommon).
Compare Lualatex
+ amsmath
:
% !TeX program = lualatex
% !TeX encoding = utf8
\documentclass[]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
I = \alpha\oint\limits_L f(x) dx, \quad \text{an Integral}
\end{equation}
\end{document}
OR Lualatex
+ unicode-math
:
% !TeX program = lualatex
% !TeX encoding = utf8
\documentclass[]{article}
\usepackage{unicode-math}
\begin{document}
\begin{equation}
I = \alpha\oint\limits_L f(x) dx, \quad \text{an Integral}
\end{equation}
\end{document}
Summarizing, is is needed an brief instructions on how and what order you need to call mathematical packages for use with Unicode-based XeLaTeX
and LuaLaTeX
engines.