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.

In mathematics, a letter, say, g, can stand for a scalar, while a letter in bold, e.g., g stands for a vector.

Here is my question:

How can one turn the letter into bold in the math mode?

For example, how can I turn g here into bold?

$$-\nabla p+\mu\nabla^2u+g\delta(x-x_0)=0 $$
share|improve this question
2  
It is preferrable to use \[ and \] as discussed here. Also see this for more on bold math symbols. –  Peter Grill Jul 9 '11 at 2:31
    
@Peter: +1. Thanks for the link. –  Jack Jul 9 '11 at 3:41

2 Answers 2

up vote 16 down vote accepted

Using the bm package. The \mathbf command can be used only for non-italic symbols, instead the amsmath package defines the \boldsymbol command that can be used whit every literal symbol or math operator. The bm package redefines the \boldsymbol command providing the \bm command and is indipendent from amsmath. So you can use:

\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}
\begin{document}
\[ \boldsymbol{g} \qquad \bm{g} \]
\end{document}
share|improve this answer

Use \mathbf{g} for bold in math mode.

share|improve this answer

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.