8

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

\documentclass{article}

\usepackage{mathspec}
\setallmainfonts{Times New Roman}

\begin{document}

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

\end{document}

When compiled, it gives:

bm

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?

lockstep
  • 250,273
Sophie Alpert
  • 15,550
  • 9
  • 37
  • 37

1 Answers1

7

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

\documentclass{article}
\usepackage{mathspec}
\setmainfont{Times New Roman}
\setmathfont{Times New Roman}

\begin{document}

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

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

\end{document}
Joseph Wright
  • 259,911
  • 34
  • 706
  • 1,036