When using newpxmath
, the accents in math mode are always bold, regardless of whether the letter underneath is bold or not:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{newpxtext}
\usepackage{newpxmath}
\begin{document}
\centering
$\hat{a}$ $\tilde{a}$ $\bar{a}$ $\check{a}$ $\dot{a}$ $\acute{a}$ $\grave{a}$ $\breve{a}$
\^a \~a \=a \v a \.a \'a \`a \u a
\textbf{\^a \~a \=a \v a \.a \'a \`a \u a}
\end{document}
In the image above, the first line is math mode (medium), the second line is text mode (medium) and the third line is text mode (bold). It can be clearly seen that the accents in math mode are bold.
Is this a bug in newpxmath
or am I missing something?
Edit: It seems that the symbol font npxsy
is corrupt. If you create a font table with
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{newpxtext}
\usepackage[scaled=1.042]{zlmtt}
\usepackage{newpxmath}
\usepackage{fonttable}
\begin{document}
\xfonttable{LMS}{npxsy}{m}{n}
\pagebreak
\xfonttable{LMS}{npxsy}{b}{n}
\end{document}
you can see that the accents in slots 158–168 look the same in medium and bold weight. The other characters, however, have different medium and bold variants (as it should be).
(There is another unrelated bug: the symbol in slot 11 is mirrored in bold.)
Update: This issue has been fixed since newpx
version 1.423.
pxsys
font. Some time between 2019 and 2020, the font has started to sport boldface accents. I guess an error in assembling the fonts.npxsy
symbol font. But you are right, the font itself is corrupt, I have created font tables and the accents look the same in medium and bold weight. See my updated question.npxsy
is a virtual font.