2

When using

$\hat{a}$

in LaTeX, the hat is actually aligned slightly left of the a's true head… Is there any common way to fix this?

As I think that this is a common issue, I didn't screenshot it, but if you want, let me know.

1

Starting point for comparison:

\documentclass{article}
\begin{document}
  $\hat a$
\end{document}

Result

The centering is better with other math fonts like mathptm:

\documentclass{article}
\usepackage{mathptmx}
\begin{document}
  $\hat a$
\end{document}

Result

\documentclass{article}
\usepackage{mathpazo}
\begin{document}
  $\hat a$
\end{document}

Result

Another variant is using the symbol from a text font, e.g. lmodern that matches the standard Computer Modern fonts for math:

\documentclass{article}
\usepackage[T1]{fontenc} 
\usepackage{lmodern} 
\begin{document}
  $\textit{\^a}$
\end{document}

Result

1
  • they all seem very fine. I'm currently using the beamer-class. So perhaps I should just change the font… Dec 9 '12 at 18:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.