latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
243 stars 28 forks source link

several problems with bold math symbols (ISO-style with xits-math.otf) #340

Closed jwuttke closed 8 years ago

jwuttke commented 8 years ago
\documentclass{minimal}
\usepackage[bold-style=ISO]{unicode-math}
\setmathfont{xits-math.otf}
\renewcommand{\v}[1]{\ensuremath{\mathbf{#1}}}
\begin{document}
\noindent
Is this $v{\nabla}$ a nabla?\\
Is this vector $\v{r}$ slanted?\\
Does this vector $\v{\hat n}$ carry a hat?
\end{document}

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.

eg9 commented 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}
screen shot 2016-02-28 at 00 42 30
wspr commented 8 years ago

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.