[Tex/LaTex] False bold integral symbol

boldmath-modesymbols

Why do I get a false integral symbol when I do \bm{\int(2x}? I've just loaded the package bm in a usual way, and I'm not using any other different font in the preamble.

enter image description here

Best Answer

The range of symbols available depends on the fonts used, and the classic Computer Modern collection doesn't have a bold version of the symbol extension font used for integral signs.

Assuming you don't want to change font setup globally there are a couple of choices. Use an extra set of {..} so \bm sees this as a complex expression and just uses \boldmath internally. This will make the other symbols bold but leave the integral sign from the standard font. or you could modify the poor man's bold to offset the symbols by a smaller amount so the gaps don't show. The original used an arbitrary value of .4mu here I use .2mu.

enter image description here

\documentclass{article}
\usepackage{bm}

\begin{document}
\showoutput

$\bm{\int(2x)}$

$\bm{{\int(2x)}}$

\makeatletter

\def\bm@pmb@#1{{%
  \setbox\tw@\hbox{$\m@th\mkern.2mu$}%
  \mathchoice
    \bm@pmb@@\displaystyle\@empty{#1}%
    \bm@pmb@@\textstyle\@empty{#1}%
    \bm@pmb@@\scriptstyle\defaultscriptratio{#1}%
    \bm@pmb@@\scriptscriptstyle\defaultscriptscriptratio{#1}}}
\makeatother


$\bm{\int(2x)}$

\end{document}