[XeTeX] Always bold math & strange unicode-math behaviour
Ulrike Fischer
news3 at nililand.de
Mon Oct 17 17:19:32 CEST 2011
Am Fri, 14 Oct 2011 12:55:39 +0200 schrieb Tobias Schoel:
> But \mathbf{} works. \boldmath and \mathversion{bold} shouldn't care,
> whether bold math is achieved with a bold type face or faked. It should
> only work like invoking \mathbf{} at the beginning of each \(\) and \[\].
>
> Is there a workaround or do I need to type \mathbf{} at the beginning of
> each \(\) myself?
You shouldn't use \mathbf to make large part of an equation bold.
\mathbf is meant for single symbols and only for things like numbers
and characters. In unicode math it works by mapping them to other
unicode position. E.g. a \mathbf{0} is the MATHEMATICAL BOLD DIGIT
ZERO character at position U+1D7CE.
http://www.fileformat.info/info/unicode/char/1d7ce/index.htm
If you want a bold math font you should at best use a font which has
a bold face. In other case you will have to fake it:
\documentclass{minimal}
\usepackage{fontspec}
\usepackage{unicode-math} % Interesting Line 1
\setmathfont{Asana Math}
\setmathfont[version=bold,FakeBold=3.5]{Asana Math}
\begin{document}
$\sqrt{\frac{\pi r^2}{4}}$
\mathversion{bold}
$\sqrt{\frac{\pi r^2}{4}}$
\end{document}
(It works fine with xelatex but for me not with lualatex.)
--
Ulrike Fischer
More information about the XeTeX
mailing list