Symbols – How to Write an E with a Circle Around the Middle Line
symbols
I want to type the symbol
in latex. What should I do? I guess I have to define the symbol. How to do it in latex?
Best Answer
Adjusting the 2nd and 4th arguments to \stackinset will adjust the (x,y) location of the \circ inset.
\documentclass{article}
\usepackage{stackengine}
\newcommand\Ecirc{\stackinset{r}{}{c}{-.1pt}{$\circ$}{E}}
\begin{document}
This is \Ecirc.
\end{document}
If you need it to work for different script styles in math mode, then the above approach can be adapted:
\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand\Ecirc{\ThisStyle{\stackinset{r}{}{c}{-.1pt}
{$\SavedStyle\circ$}{$\SavedStyle\mathrm{E}$}}}
\begin{document}
This is \Ecirc{} and $x^{\Ecirc}$.
\end{document}
The amsmath package provides the \overset and \underset macros that can be used to place one symbol above or below another. If you want text above and below, you could use \DeclareMathOperator* (also from amsmath).
There shouldn't be any problems using this in amsmath environments such as align.
\begin{align*}
A &\eq^b_a B \\
&\eq^b_a C
\end{align*}
However, if you use it in the middle column of an eqnarray or eqnarray* (which are generally considered to be obsolete), then you will need \displaystyle before \eq.
All of the above applies to egreg's suggestion of defining \eq via
These are obviously binary operators, so they should carry the same spacing. That is, use whatever works and then wrap it in \mathbin. While the original picture showed the bottom dots resting on the baseline, I think it would be more correct to center the symbols on the math axis (where the \cdot is placed). Here is a simple possibility, that does not allow for size changes in scripts, but does respect global size changes like \large.
Best Answer
Adjusting the 2nd and 4th arguments to
\stackinset
will adjust the (x,y) location of the\circ
inset.If you need it to work for different script styles in math mode, then the above approach can be adapted: