Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

To denote the interior of a set, I'd like to have a command \interior. Now, as one can learn from this post, one possibility is to use \mathring. This is a neat command, but it produces a circle that to my taste is too small for the purpose. Of course one can experiment with \overset{\circ}{...}, but this way I had difficulties getting satisfactory vertical and in particular horizontal positioning of the \circ. An example:

$\mathring{I}\ \mathring{J}\ \overset{\circ}{I}\ \overset{\circ}{J}$

yields alt text .

If one has a close look then one sees that the \circ over the J should be moved to the right more than the \circ over the J! Is there a way to obtain the same nice automatic positioning as with mathring?

share|improve this question
add comment

2 Answers 2

up vote 18 down vote accepted

You can use \accentset from the accents package:

$ \mathring{I}\ \mathring{J}\ \accentset{\circ}{I}\ \accentset{\circ}{J} $

example

share|improve this answer
    
Great, this is what I've always wanted. Thanks! –  Hendrik Vogt Sep 19 '10 at 16:26
add comment

In the end I'm using an even larger circle than in Caramdir's great answer: accents sets the \circ in \scriptscriptstyle; I'm using \scriptstyle. To not affect the line spacing so much, I have the circle lowered and let it stick out a bit of the bounding box of the resulting accented character. (In print it looks nicer than on screen ...)

comparison of different circles

\documentclass{article}
\usepackage{amsmath,accents}
\newcommand{\interior}[1]{\accentset{\smash{\raisebox{-0.12ex}{$\scriptstyle\circ$}}}{#1}\rule{0pt}{2.3ex}}
\fboxrule0.0001pt \fboxsep0pt
\begin{document}
$\mathring{I}\ \accentset{\circ}{I}\ \interior{I}$ \fbox{$\interior{I}$}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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