I tried to change the engine from pdfLaTeX to XeLaTeX, but I can't compile a simple project:
\documentclass[10pt]{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage{unicode-math}
\usepackage{fontspec}
\setmainfont[
Ligatures=TeX,
Extension=.otf,
UprightFont= *-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]{texgyrepagella}
\setmathfont[Extension=.otf]{texgyrepagella-math}
\usepackage{empheq}
\author{}
\title{}
\date{}
\begin{document}
\maketitle
\end{document}
But it produces error:
Command \dddot already defined. \hbox{\normalfont ...}\vss}}}}
Command \ddddot already defined. \hbox{\normalfont....}\vss}}}}
Extended mathchar used as mathchar (4203026) \mathchardef\std@minus\mathcode`\-\relax
Command \overleftrightarrow already defined. ...palette{\overarrow@\leftrightarrowfill@}}
Command \underrightarrow already defined. ...athpalette{\underarrow@\rightarrowfill@}}
Command \underleftarrow already defined. \mathpalette{\underarrow@\leftarrowfill@}}
Command \underleftrightarrow already defined. ...alette{\underarrow@\leftrightarrowfill@}}
empheqfirst, just after\documentclassthen let the xetex packages do their stuff – David Carlisle Nov 27 '13 at 13:27usepackage's... – m0nhawk Nov 27 '13 at 15:32\newcommandso you get an error if they are already defined, unicode-math and friends are expecting to redefine things to work in xetex so makes a gentle warning but redefines commands quite happily. So if you use empheq first it is happy and then unicode-math changes stuff. – David Carlisle Nov 27 '13 at 17:05