I use newtx
and newtxmath
in pdflatex with TeXLive, but I would like to use the \mathcal{O}
symbol from Latin Modern. Following this answer, I am able to access the medium-series version. In the preamble, I add
\DeclareSymbolFont{LMletters}{OMS}{lmsy}{m}{n}
\DeclareMathSymbol{\lmO}{\mathbin}{LMletters}{79}
And then in the document, I can use e.g. $\lmO (N^{2})$
.
But I would also like to use the boldface version of that symbol. Preferably it should work automatically with \bm
, but if that is too hard, I wouldn't mind having simply a macro for it, e.g. \lmBO
. However, the following attempt
\DeclareSymbolFont{LMBletters}{OMS}{lmbsy}{b}{n}
returns the warning
LaTeX Font Warning: Font shape `OMS/lmbsy/b/n' undefined
(Font) using `OMS/cmsy/m/n' instead on input line 30.
Note that \fonttable{lmbsy10}
does print out, on my system, all the expected symbols, including the boldfaced mathcal O.
How do I access the boldfaced mathcal O from Latin Modern (while usingnewtxmath
for all other math)? If possible, how to make this Latim Modern mathcal O work with \bm
?