TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to typeset a vector with i-hat and j-hat components:



\newcommand{\ihat}{\mathbf {\hat \imath}}
\newcommand{\jhat}{\mathbf {\hat \jmath}}
\newcommand{\vect}[1]{\mathbf #1}

        \vect{F} &= 3\ihat + 4\jhat

However, \imath and \jmath will always be italicized, no matter what modifiers I apply \mathbf, \mathrm, etc.

How do I make \imath and \jmath bold and upright?

share|improve this question
The \mathrm command has no effect on \imath or \jmath. LaTeX is smart enough to remove the dot on the i or j when adding a hat. – Count Zero Sep 12 '11 at 14:07
Use bold roman for \jmath in latex command. – user79557 Jun 5 '15 at 6:29
up vote 20 down vote accepted

For bold and upright, you could use the regular text-version of \imath and \jmath, which are \i and \j:


bold & upright i & j in math

Additionally, if you want the \hat to be bold as well, then use \boldsymbol.


Now with bold \hat

share|improve this answer

\newcommand{\ihat}{\mathbf {\hat{\ii}}}
\newcommand{\jhat}{\mathbf {\hat{\jj}}}

The last line is a better definition of your \vect command.

share|improve this answer
Thank you. Your answer worked where Werner's did not, for my document that uses non-CM text fonts (where \j was not defined). – Steven B. Segletes Jan 5 at 17:15

Your Answer


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.