# Circ above $D^3$ in a nice way

I want to denote the interior of $D^3$, so I use $\overset{\circ}{D^3}$. This looks like this:

However I find this kind of ugly, and would rather have the circ just above the $D$, but then $\overset{\circ}{D}^3$ is giving even stranger things, like this:

Is there a way to have what I want? This would be basically the \circ as in the second image, and the 3 as in the first.

• How do you display basic math on this site? Not with dollars? – B. Pasternak May 8 '16 at 13:52
• to display output, you need to insert a visual. (see how can i upload an image to be included in a question or answer?) this site doesn't use mathjax, since the whole purpose of this site is to handle questions about the code, which would be obscured by displaying only the output. – barbara beeton May 8 '16 at 13:58
• \mathring{D}^3 – egreg May 8 '16 at 14:05

You should use \mathring{...}, rather than \overset{\circ}{...}.

\documentclass{article}
\usepackage{amsmath}

\begin{document}

$\mathring{D^{3}} \qquad \mathring{D}^{3}$

\end{document}


The amsmath package is not really necessary for this, but it's recommended for any math document.