I want to change the math font by mathspec. My code is
\documentclass{article}
\usepackage{mathspec}
\setmathsfont(Latin,Greek){Eu-bx.ttf}
\setmathsfont(Digits){EU-bz.ttf}
\usepackage{fontspec}
\setmainfont{EU-bz.ttf}
\begin{document}
Hello world!
$a+b=2^t$
$\mathbf{abcd}$
\end{document}
However the math font hasn't got bold. So I'd like another font called EU-hx.ttf to be used for bold math(that is to say, make LaTeX call this font when it meets \mathbf{}). How can I do this?
mathspecinstead ofunicode-math? Put differently, are you willing to switch tounicode-math? Separately, are the font filesEu-bx.ttfandEU-bz.ttfavailable online? – Mico Feb 25 '23 at 16:04unicode-mathpackage. I'll try switching to it. Is it better? – youthdoo Feb 25 '23 at 16:48unicode-mathuses OpenType math fonts, whilemathspecuses OpenType text fonts and tries to combine them withother fonts to make them usable in math. If you have a proper math font thenunicode-mathwill give much better results, if you try to use text fonts for math then things will get complicated anyway but mathspec might be a reasonable option. – Marcel Krüger Feb 25 '23 at 16:57\sum,\int, or\fracterms? Any other math-y symbols, such as\in,\subset,\leq,\cap, or\cup? If you answer some (or all) of these questions with "yes", you should probably start looking around for an opentype math font that's visually compatible with the text font of your choice. – Mico Feb 25 '23 at 17:20