When using a bar over a letter in math mode and then having certain calligraphic letters in superscript, the letters overlap with the bar or are at least very close to the letter with the bar. This looks somewhat ugly.
Example:
\documentclass{article}
\begin{document}
\begin{equation}
\bar{d}^{\mathcal{H}}_{hewt}
\end{equation}
\begin{equation}
\bar{d}^{\mathcal{C}}_{hewt}
\end{equation}
\end{document}
I am using this notation throughout my document. While I realize that I could add a small space using \,
, I would prefer not having to alter this everywhere. Is there a solution which changes the space for all calligraphic superscript letters?
\mathcal{H}
or\mathcal{C}
stand for? Are they used in other places other than superscripts? As an example if\bar{d}^{\mathcal{H}}
is a common occurrence, you could define\def\dH#1{\bar{d}^{\,\mathcal{H}}_{\mathrm{#1}}}
and then use\dH{hewt}
. Also what doeshewt
stand for? May be you should write it upright?