[Tex/LaTex] How to make \hat{i} pretty

accents

I'm looking for a way to make the hat in \hat{i} replace the dot. I can't find anything on Google, and am seemingly too dumb to figure it out myself.

Best Answer

The dotless i is available as \imath, and similarly \jmath for a dotless j:

enter image description here

Code:

\documentclass{article}
\newcommand*{\I}{\imath}
\newcommand*{\J}{\jmath}

\begin{document}
$\hat{\I}$, $\hat{\J}$
\end{document}