Complement in LaTeX (\complement)

∁\complement
LaTeX command
\complement
Package
Add to your preamble:\usepackage{amssymb}
Mode
Math mode only
Copy the Unicode character
∁U+2201

Where it is used

Complement symbol, usually a superscript on a set to denote all elements outside it.

A^\complement denotes the complement of A relative to a universe, so A \cup A^\complement = U. It is an ordinary symbol that looks like a stylized C. Common alternatives are A^c, A', and \overline{A}, but the bar can be confused with topological closure and the prime with derivatives, so \complement is unambiguous. Write it as a superscript; on its own it rarely appears. De Morgan's law, (A \cup B)^\complement = A^\complement \cap B^\complement, is a classic use.

Minimal compilable example

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

(A∪B)∁=A∁∩B∁(A \cup B)^{\complement} = A^{\complement} \cap B^{\complement}
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Complement: $\complement$

\[ (A \cup B)^{\complement} = A^{\complement} \cap B^{\complement} \]
\end{document}

Related symbols

All 集合論 →

Frequently asked questions

How do I write Complement in LaTeX?
Type \complement in math mode, for example $(A \cup B)^{\complement} = A^{\complement} \cap B^{\complement}$. Load amssymb first with \usepackage{amssymb}.
Which package do I need for \complement?
\complement needs amssymb: add \usepackage{amssymb} to your preamble before the document starts.
Can I use \complement in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\complement$ 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に変換
  • 論文の執筆とフォーマットに即座にサポートを取得