I am using XeLaTeX in conjunction with amsmath and unicode-math for my reports. After a while, I ran into a weird problem in which compilation would just hang indefinitely. I found out the culprit was me using \pm or \times symbols (there might of course be others) in a math environment.
Does anybody know why this occurs and how to fix it?
Edit: Okay, after stripping down my list of packages I observed that compilation breaks as soon as I use the inputenc package, for example:
\documentclass[11pt,titlepage]{report}
\usepackage[T1]{fontenc}
\usepackage{fontspec} % XeLaTeX required!
\usepackage[latin1]{inputenc} % <------ This package breaks compilation!!!
\usepackage{mathtools}
\usepackage{unicode-math}
\setmainfont[Ligatures=TeX]{Myriad Pro}
\setmathfont{Asana Math}
\setmonofont{Consolas}
\begin{document}
$\pm$
\end{document}
Not being able to use this package would be a real shame though, because we dutch people sure like our accents at times...
\documentclass{...}and ending with\end{document}– Joseph Wright Apr 28 '14 at 14:40inputencbreaks compilation. – NinjaTuna Apr 28 '14 at 16:28inputencpackage (and usually not thefontencpackage.) Your file should be saved at UTF-8. See Using XeLaTeX instead of pdfLaTeX. Also, if you are using IPA characters with XeLaTeX you may run into problems using TIPA; instead use a Unicode font that has IPA. See Using TeX for writing papers on linguistics. – Alan Munn Apr 28 '14 at 16:32