Closed jwuttke closed 8 years ago
With unicode-math
version 0.8 you should use \symbf
rather than \mathbf
:
\documentclass{article}
\usepackage[bold-style=ISO]{unicode-math}
\setmathfont{xits-math.otf}
\renewcommand{\vec}[1]{\symbf{#1}}
\begin{document}
\noindent
Is this $\vec{\nabla}$ a nabla?\\
Is this vector $\vec{r}$ slanted?\\
Does this vector $\vec{\hat{n}}$ carry a hat?
\end{document}
In addition to @eg9's response, please also note that you can load unicode-math with the package option mathbf=sym
(see Table 3 in the documentation) to achieve backwards compatibility.
Using xelatex [XeTeX 3.14159265-2.6-0.99992 (TeX Live 2015)] with unicode-math [2015/09/24 v0.8c] , there are several bugs, all in math mode:
Under texlive 2014, the rendering was correct.