I need to write a topology expression involving the interior of the closure of a set. For the interior of a (not simple) set I'm using the macro \widering
from yhmath
package and it works fine if I write the closure with \overline
. But I'd like to use instead \bar
if the set involved is simple.
Here are a couple of examples. What I want to achieve is an expression like the left ones, but using \bar
or anything that draws a shorter line over the simple set. Or another package (or macro) that provides a \widering
version that not cause this issues. Any idea will be welcome.
\documentclass{article}
\usepackage {amssymb}
\usepackage {yhmath} % \widering
\begin{document}
My problem is the second expression:
\[
E \setminus \widering{\bigcup_{n\in\mathbb{N}} \overline{A}_n} \ne % all good
E \setminus \widering{\bigcup_{n\in\mathbb{N}} \bar{A}_n}. % not so good
\]
Another simpler example:
\[
\widering{A\overline{B}C} \ne
\widering{A\bar{B}C}.
\]
\end{document}