latex3 / unicode-math

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

Compatibility: Add a definition of \boldsymbol #500

Open SFr682k opened 5 years ago

SFr682k commented 5 years ago

Description

Although the \boldsymbol command is deprecated, it is still used by some math packages.
Therefore, it would be nice to have a \boldsymbol command in unicode-math, which produces bold italic symbols independent from the current value of bold-style.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{latinmodern-math.otf}
\begin{document}
    $\boldsymbol{x y z}$
\end{document}

Further details