Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the bm package which provides the \bm command to boldify equations. However, all my equations need to be bold, and I find using the \bm command tedious. Is there a way to make the equations (including inline equations) bold by default without wrapping them with the \bm command?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

The \boldmath macro does this. It is provided by the LaTeX core and switches to bold math for all following math material. There is an \unboldmath to switch it off again. These macros must be used outside the math code.

\documentclass{article}

\begin{document}
\boldmath

$x=2$

\[ x=2 \]

\end{document}
share|improve this answer
    
Thanks, that did it! Although I would love to know whether it is possible to "redefine" or somehow insert code automatically just after each \begin{equation} and $. Thanks again! –  bosh Aug 14 '11 at 14:50
2  
There is \everymath{..} and \everydisplay{..} which accept code which is executed every math mode or display math mode. But they might be redefined by some other code. –  Martin Scharrer Aug 14 '11 at 14:55
    
The everyhook package provides a more robust way to interact with the math and display hooks... –  Seamus Aug 14 '11 at 15:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.