Bold vectors in LaTeX
filed in LaTeX, Math, Physics on Feb.12, 2007
Vectors can be typeset in LaTeX with the command \vec, which decorates the argument with a little arrow. This was cute at first, but it doesn’t look very good, especially in fractions. Textbooks use bold face for vectors, so here’s how to do that in LaTeX.
\let\oldhat\hat
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}
\renewcommand{\vec}[1]{\mathbf{#1}}
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}
This also makes unit vectors (typeset with \hat) bold.

August 8th, 2008 on 9:04 pm
Just saying thanks — I found this helpful.
September 18th, 2008 on 12:53 pm
Ditto! This is precisely what I was looking for. Thanks!
October 28th, 2008 on 8:32 pm
I was wondering how to get rid of the dots when doing \hat{i} or \hat{j}
The dots under the hat really annoy me
December 24th, 2008 on 2:59 pm
\hat{\imath} and \hat{jmath}
December 24th, 2008 on 3:00 pm
edited to correct:
\hat{\imath} and \hat{\jmath} reply to madhu
June 17th, 2010 on 5:28 am
How about Greek letters as vectors, i.e. they need to be upright (Roman), and bold. The one I really want is phi, this ought to do it but doesn’t:
\mathbf{\mathrm{\phi}}
I have been following a wild goose chase around the LaTeX documentation and still haven’t pinned it down – do any of you guys know?
Robert
January 29th, 2011 on 2:52 pm
To get bold upper-case Greek letters inside math mode, one can use \bf, for example: {\bf \Phi}.
To get bold lower-case Greek letters inside math mode, an example is {\mbox{\boldmath $\phi$}}.
For characters that I use often, I define commands such as:
\newcommand{\bPhi}{\bf \Phi}
\newcommand{\bphi}{\mbox{\boldmath $\phi$}}
On p. 386 of The TeXbook, Knuth gives a macro for “poor man’s bold” (\pmb) which enables you to generate a bold, although slightly fuzzy, version of any symbol by reprinting it with slight offsets.
\def\pmb#1{\setbox0=\hbox{#1}%
\kern-.025em\copy0\kern-\wd0
\kern0.050em\copy0\kern-\wd0
\kern-.025em\raise,0433em\box0 }
Using that, one could enter \pmb{$\phi$}.
Note that the dollar signs around \phi are needed inside the \pmb{ } argument even if \pmb{ } occurs inside math mode.
June 17th, 2011 on 7:54 am
Thanks alot!
Just want to add that if you want the hats to be “bold”, just switch the order on the last line:
\renewcommand{\hat}[1]\mathbf{{\oldhat{#1}}}
June 17th, 2011 on 9:39 am
Great tip, thanks!
January 25th, 2012 on 4:55 am
Thanks!
Works fine for Latin letters. But the Greek letters will be displayed as if no \vec{} was applied.
An alternative to \mathbf is \boldsymbol which makes everything bold including the Greek letters. So just replace \mathbf by \boldsymbol if you want that effect.
January 25th, 2012 on 5:05 am
This, you might say, has the disadvantage that \boldsymbol leaves the Latin letters in italic font.
However, it is possible to combine both effects by simply applying both commands as I just found out. The resulting \vec redefinition would be:
\let\oldhat\hat
\renewcommand{\vec}[1]{\boldsymbol{\mathbf{#1}}}
\renewcommand{\hat}[1]{\oldhat{\boldsymbol{\mathbf{#1}}}}