11

Is there a latex symbol akin to \in, but with two strokes? It has a Unicode equivalent, . I looked on detexify, but I couldn't find anything that matched. If it doesn't exist, how might I "rig" it?

Edit

The solutions posted do work, but I also now find the need to have a MathJax version of the symbol. I am not sure as to how to include the solutions given in a MathJax define key; using the usual "macros" produces an error.

Enlarged image

enlarged symbol

  • You mean the Euro symbol? – cfr Aug 17 '15 at 1:41
  • @cfr No, it does look like the Euro symbol, but it is specifically an element membership symbol with two strokes down the center. – Conor O'Brien Aug 17 '15 at 1:46
  • How very confusing. I see now that it is not quite the same but it really looks like it without a magnifying glass! – cfr Aug 17 '15 at 1:47
  • @cfr, Haha, right! I added a larger picture for those of who are without magnifying glasses. – Conor O'Brien Aug 17 '15 at 1:49
  • 2
    For MathJax, why not just use the Unicode character directly? – Ilmari Karonen Aug 17 '15 at 19:45
18

Here's one option using \ooalign:

\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}

\newcommand\Inn{%
  \mathrel{\ooalign{$\subset$\cr\hfil\scalebox{0.8}[1]{$=$}\hfil\cr}}%
}
\begin{document}

\[
A\in B
\]

\[
A\Inn B
\]

\end{document}

The result:

enter image description here

And if you need it for the different math styles:

\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}

\newcommand\Inn{%
  \mathrel{\mathchoice
    {\ooalign{$\displaystyle\subset$\cr\hfil\scalebox{0.8}[1]{$=$}\hfil\cr}}%
    {\ooalign{$\textstyle\subset$\cr\hfil\scalebox{0.8}[1]{$\textstyle=$}\hfil\cr}}%
    {\ooalign{$\scriptstyle\subset$\cr\hfil\scalebox{0.8}[1]{$\scriptstyle=$}\hfil\cr}}%
    {\ooalign{$\scriptscriptstyle\subset$\cr\hfil\scalebox{0.8}[1]{$\scriptscriptstyle=$}\hfil\cr}}%
    }%
}

\begin{document}

\[
A\in B\quad{\textstyle A\in B}\quad  L_{A\in B}\quad  M_{L_{A\in B}}
\]

\[
A\Inn B\quad{\textstyle A\Inn B}\quad  L_{A\Inn B}\quad M_{L_{A\Inn B}}
\]

\end{document}

enter image description here

14

It's Unicode symbol U+22F9 "Element of with two horizontal strokes": ⋹.

When LuaTeX or XeTeX is used, then the symbol is available with the following fonts:

  • Asana Math

    \documentclass{article}
    \usepackage{unicode-math}
    \setmathfont{Asana-Math.otf}
    
    \begin{document}
    \[ A \isinE B \]
    \end{document}
    

    Result Asana Math

  • XITS Math

    \setmathfont{xits-math.otf}
    

    Result XITS Math

  • The Latin Modern Math or TeX Gyre Math fonts do not have the symbol.

7

This uses a stack, and will work in all mathstyles.

\documentclass{article}
\usepackage{graphicx,stackengine,scalerel}
\usepackage{amsmath}
\newcommand\Inn{\def\stackalignment{c}\def\stacktype{L}\ThisStyle{\mathrel{%
  \stackon[0pt]{$\SavedStyle\subset$}{\scalebox{0.86}[1]{$\SavedStyle=$}}}}%
}
\begin{document}

\[
A\in B
\]

\[
A\Inn B\quad
\scriptstyle A\Inn B\quad
\scriptscriptstyle A\Inn B
\]
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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