Could one of you help me on how to get the following: I need a boldface vector with a hat on top, something like the vector with boldface and a hat as below:

${\mathbf \hat{p}}$ or $\bm{\hat{p}}$

Both the above mentioned methods do NOT seem to work.

  • Try with this $\boldsymbol{\hat{p}}$ Jun 15, 2015 at 22:50
  • 1
    "do not seem to work" isn't a helpful description, do you get an error, the correct characters but not bold, or wrong characters or ??? Jun 15, 2015 at 22:54
  • I'm sorry. I should have been more specific. The character p does not bold when used in conjunction with a hat. Jun 16, 2015 at 23:54

1 Answer 1

  • If you want just the letter "p" to be rendered in bold while the "hat" symbol should be rendered in normal weight, you could use either one of the following methods:

    $\hat{\mathbf{p}}$,  $\hat{\bm{p}}$

    enter image description here

    Which method you should use depends on whether you want the letter "p" in upright-bold or slanted-bold.

  • If both the letter "p" and the "hat" symbol should be typeset in bold, and the letter "p" should be in slanted-bold form, one of the following methods gets the job done.

    $\boldsymbol{\hat{p}}$, $\bm{\hat{p}}$

    enter image description here

  • Finally, if you need the hat symbol to be bold and the letter "p" to be in upright-bold rather than in slanted-bold, try


    enter image description here

The full MWE:

\usepackage{bm} % for \bm macro
$\hat{\mathbf{p}}$ \quad  $\hat{\bm{p}}$ 

$\boldsymbol{\hat{p}}$ \quad $\bm{\hat{p}}$

  • Thank you. I've used (one of) the methods you've given, and it works now. Jun 16, 2015 at 23:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .