[Tex/LaTex] How to get bold times new roman in math

fontsmath-mode

I'm using \usepackage{mathptmx} to use times new roman font in math. But I can't make the font bold by using \boldmath, which works fine with default computer modern font.

I'm using \renewcommand{\rmdefault}{ptm} to use times new roman for the whole document.

How to get bold times new roman font in math so that it blends well with other text?

Best Answer

The mathptmx package is not the best way to load the times font as the fonts are both incomplete and a patchwork of symbols from different sources.

Among the free fonts, you best choice today is probably newtx (alternatively, on older distributions, you have txfonts, but they have some spacing problems):

enter image description here

\documentclass{article}

\usepackage{newtxtext}
\usepackage{newtxmath}

\begin{document}

$y = f(x)$

$\mathbf{y=f(x)}$

{\boldmath$y=f(x)$}

\end{document}