Why Does My Integral Symbol Look Falsely Bold in LaTeX?
At a glance
- 1. Check the math context
Look for \boldmath, \mathbf, \boldsymbol, or \bm around the formula.
- 2. Compare the glyph
Typeset a plain \int beside the affected integral to see whether the math version or font changed.
- 3. Remove unintended bolding
Use the normal math version for the formula, or remove the bold command from the integral.
- 4. Check the font
If plain \int still looks heavy, compare it using the same font and size elsewhere in the document.
A plain \int is normally set in the regular math font. If it looks unusually heavy, the cause is usually the surrounding math style, an explicit bold command, or the math font—not a special “false bold” setting for integrals.
The first step is to check whether the integral is actually being bolded. Compare it with a plain \int in the same document, then look for commands that switch math to bold or explicitly bold a symbol.
What can make an integral look bold?
These are the most common causes:
\boldsymbol{\int}or\bm{\int}explicitly requests a bold integral.\boldmathswitches subsequent math to the bold math version. It must be used outside math mode.- A custom command, class, or package may be applying bold math to a whole formula or document section.
- The math font may draw its integral sign with a stroke that looks heavier than the surrounding symbols. A large display integral can also seem more prominent simply because it is larger.
By contrast, \mathbf is intended for bold Latin letters and digits; it does not generally bold math symbols such as \int. Applying \mathbf to an expression is not a reliable way to bold every kind of symbol.
A small comparison example
This complete example shows a regular integral and an explicitly bold one. It uses amsmath for \boldsymbol and bm for \bm.
\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}
\begin{document}
Regular: $\int_0^1 f(x)\,dx$
Bold with \texttt{\string\boldsymbol}: $\boldsymbol{\int}_0^1 f(x)\,dx$
Bold with \texttt{\string\bm}: $\bm{\int}_0^1 f(x)\,dx$
\end{document}
The first integral is the normal-weight symbol. The other two explicitly request a bold symbol. The bm package provides \bm, which can handle a wider range of math symbols than \mathbf; \boldsymbol is provided by amsmath (through its supporting math-symbol definitions).
If the integral in your document resembles the regular example, but still looks heavy, test it in a minimal document with the same document class and math-font packages. If its appearance changes when you remove a font package, that package’s math font is responsible for the difference.
How to restore normal weight
First remove any bold command that includes the integral. For example, change \boldsymbol{\int} to \int if the symbol should be regular weight.
If the whole formula is bold because of \boldmath, move or remove that declaration. \boldmath applies to math entered after it, and it is intended to be used outside math mode. For example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
{\boldmath
Bold math: $\int_0^1 f(x)\,dx$
}
Normal math: $\int_0^1 f(x)\,dx$
\end{document}
The braces limit the bold math version to the grouped material. Outside the group, the normal version is restored. If the bolding comes from a class or a larger surrounding group, apply the same idea: find where the math version changes and end that scope before the integral that should be regular.
There is no single font-independent command that can make every integral symbol regular in every bold-math context. If you need a regular integral inside a formula whose other symbols are bold, the right fix depends on how the bolding was introduced. Prefer changing the scope of \boldmath or the command that bolds the expression. Switching math versions locally inside a formula is not a general solution; \mathversion is intended to select a math version outside math mode.
Common mistakes
- Using
\mathbf{\int}to fix the weight.\mathbfdoes not reliably control operator symbols. Use\intfor the normal symbol, and use\boldsymbolor\bmonly when you want a bold one. - Changing the integral’s size to change its weight.
\displaystyleand\textstyleaffect sizing and limits, not whether the glyph is bold. - Blaming the integral command without checking the font. If a plain
\intlooks heavy in a minimal example, the math font may simply have a different design. Switching fonts can change the integral’s appearance, but it also changes other math symbols. - Putting
\boldmathinside$...$. This command is for selecting the math version outside math mode. Use a group around the material that should be bold instead.
For a quick diagnosis, search the formula and its surrounding source for \boldmath, \boldsymbol, \bm, and custom bolding macros. If none apply, compare the symbol in a minimal example using the same class and font packages.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.