Contains in LaTeX (\ni)

∋\ni
LaTeX command
\ni
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
∋U+220B

Where it is used

Reversed element-of relation: the set on the left contains the element on the right.

A \ni x says the same as x \in A, with the set first, which reads naturally in phrases like a neighborhood U \ni x. Older texts and some logicians also used \ni for such that, though \mid or a colon is now standard. \owns is an alias of \ni. Negate it with \not\ni. Do not confuse it with the letter epsilon or with \in turned around by hand; \ni is a proper relation with matching spacing.

Also listed under: 量化子

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

U∋x  ⟹  f(U)∋f(x)U \ni x \implies f(U) \ni f(x)
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Contains: $\ni$

\[ U \ni x \implies f(U) \ni f(x) \]
\end{document}

Related symbols

All 集合論 →

Frequently asked questions

How do I write Contains in LaTeX?
Type \ni in math mode, for example $U \ni x \implies f(U) \ni f(x)$. It works in plain LaTeX without loading any package.
Which package do I need for \ni?
None. \ni is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \ni in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\ni$ in running text. If you only need the glyph in text, paste the Unicode character ∋ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得