[Tex/LaTex] How to put circumflex accent in right position, math mode

accentsmath-mode

I would like to put a circumflex accent over the letter j when I am in math mode.
I was supposed to use $\hat{j}$ but the accent is not exactly over the dot: that is really unpleasant.

What do I have to do to adjust it?

Best Answer

With plain TeX you can use \skew, but the amount of skewing has to be determined case by case. Happily, once the amount has been found it can be made part of a definition.

$\hat{j}$ (normal)

$\skew{4.5}\hat{j}$ (with skew)

\bye

enter image description here

so a definition could be

\def\hatj{\skew{4.5}\hat{j}}

It also works with LaTeX:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

$\hat{j}$ (normal)

$\skew{4.5}\hat{j}$ (with skew)

\end{document}

The output is exactly the same. In this case it's better doing

\newcommand{\hatj}{\skew{4.5}\hat{j}}