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?

7
+50

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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