TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't seem to make my math come out in bold using the mathspec package. Consider this example:


\setallmainfonts{Times New Roman}


\textbf{This line should all be bold: {\boldmath $17^2 = 289$}.}


When compiled, it gives:


If mathspec is not used, then the math is bold, like it should be. How can I make my custom-font math bold as well?

share|improve this question
Possibly related to tex.stackexchange.com/questions/603/math-in-trebuchet-ms. – Ben Alpert Jul 31 '10 at 20:54
Maybe some clever usage of \setboldmathrm command (from fontspec package) can solve this problem (but I failed). – Grigory M Aug 1 '10 at 19:23
At least it's possible to get bold math: \setmathsfont(Digits,Latin,Greek){Times New Roman Bold} Though all math would be bold then. – Stefan Kottwitz Aug 15 '10 at 19:02
up vote 6 down vote accepted

Separating out the font setting for math and text seems to work

\setmainfont{Times New Roman}
\setmathfont{Times New Roman}


\textbf{This line should all be bold: {\boldmath $17^2 = 289$}.}

\textbf{This line should all be bold except the
math: {$17^2 = 289$}.}

share|improve this answer
Indeed it does. Thanks! – Ben Alpert Aug 16 '10 at 6:18
Very good idea! – Stefan Kottwitz Aug 16 '10 at 20:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.