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

setmathface mathbf not working properly #516

Closed ghost closed 5 years ago

ghost commented 5 years ago

Description

Define \mathbf with \setmathface fails to give anything, see the mwe and the output mwe.pdf. The example below used to work great one year ago.

Add info or delete as appropriate:

Minimal example demonstrating the issue

\documentclass{article}

\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}

\setmathfontface\mathbf{MinionMath-Bold}[ Extension = .otf, ]

\setmathfont[%
    Extension = .otf,%
    Scale = 1,%
    Script = Math,%
]{MinionMath-Regular}

\begin{document}

\( \mu \mathbf{\mu}\)

\end{document}

Further details

mwe.pdf mwe.log

ghost commented 5 years ago

Can someone please find out what goes wrong here? Perhaps I made a mistake, instead of finding a bug of unicode-math. Any input is appreciated.

stone-zeng commented 5 years ago

Simply because there's no such \setmathfontface command…

To use bold font, you should try the "math version" feature. I think it has been clearly described in the unicode-math documentation.

ghost commented 5 years ago

Simply because there's no such \setmathfontface command…

Please read section 4.4 in the unicode-math.pdf.

wspr commented 5 years ago

If you want bold math symbols use \symbf. \mathbf is for loading a bold text font in a mathematical context.