Written and maintained by CASRAI Editorial Board
Published · Last updated
On this page
Typesetting mathematical relations accurately is essential for communicating formal proofs, set theory, and statistical models in research manuscripts. In LaTeX, superset containment is represented using binary relation commands such as \supset, \supseteq, and extended American Mathematical Society (AMS) macros including \supsetneq and \nsupseteq. This guide provides the complete syntax, package requirements, spacing mechanics, and compilation steps required to typeset superset relations in research papers without notation ambiguity or compiler errors.
What it is used for in research
In academic literature across mathematics, computer science, statistics, and formal logic, superset relations describe sample spaces, domain expansions, algebraic structures, and filtering operations where one set completely encompasses another. Researchers frequently search for how to write a superset in latex or how to format superset latex equations when defining probability state spaces or comparing algorithmic datasets.
A primary challenge in scientific writing is avoiding notation ambiguity across international standards and disciplinary conventions:
- ISO 80000-2:2019 Standard: Under international standard ISO 80000-2 (Quantities and units — Part 2: Mathematics, Item 2-5.4), non-strict containment (where set B contains or is equal to set A) is designated by ⊇ (
\supseteq). Strict containment (where set B contains set A and B ≠ A) is designated by ⊃ (\supset) or ⊋ (\supsetneq). The standard recommends using\supseteqfor general supersets and\supsetneqfor strict supersets to avoid confusion in international publications. - Anglo-American Mathematical Convention: Historical English-language literature often used
\supset(⊃) to denote strict (proper) supersets and reserved\supseteq(⊇) for general inclusion. - Continental European Convention: Conversely, many European mathematical publications historically used
\supset(⊃) to denote general superset relations, relying on\supsetneq(⊋) when strict containment required explicit distinction.
To eliminate ambiguity in peer-reviewed journals, authors should pair non-strict \supseteq with strict \supsetneq. For the reverse containment relationship, see our companion guide on LaTeX subset commands.
Install or access (official source only)
LaTeX superset commands fall into two distinct architectural categories: core LaTeX kernel commands and extended American Mathematical Society (AMS) macros.
1. Standard LaTeX Core Commands
Basic superset operators—including \supset (⊃), \supseteq (⊇), and \sqsupseteq (⊒)—are primitive relation symbols embedded directly in the base LaTeX kernel. They require no external package imports and are supported natively by all TeX engines, including pdfLaTeX, XeLaTeX, and LuaLaTeX.
2. Extended AMS-LaTeX Commands
Strict superset variants (\supsetneq, \supsetneqq, \varsupsetneq), negated superset operators (\nsupseteq), double superset relations (\Supset), and square proper supersets (\sqsupset) are defined in the amssymb package, maintained by the American Mathematical Society on CTAN. The amssymb package loads the MSAM and MSBM mathematical symbol font tables.
Accessing TeX Environments
Researchers can access these macros through official, actively maintained TeX distributions and platforms:
- TeX Live: Maintained by the TeX Users Group (TUG) via CTAN. Includes
amssymbandamsmathin default installation profiles across Linux, Windows, and macOS. Fast local batch compilation can be automated with latexmk. - MiKTeX: An open-source distribution for Windows, macOS, and Linux that includes automatic, on-the-fly CTAN package installation during compilation.
- MacTeX: A native macOS distribution bundle packaging TeX Live with TeXShop and full AMS font collections.
- Overleaf and Collaborative Editors: Cloud platforms running TeX Live server-side. For self-hosted instances and alternatives, see our guide on collaborative LaTeX editors, or author locally in dedicated environments like TeXstudio.
Step-by-step task (numbered, with menu names or commands exactly as in the current docs)
Follow these numbered steps to configure, write, and compile superset relations in a research manuscript.
-
Import AMS packages in your document preamble:
Open your LaTeX document preamble (between\documentclass{...}and\begin{document}) and declareamsmathandamssymb:\documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} -
Select the exact command for your mathematical relation:
Identify the appropriate command based on whether the relation is non-strict, strict, negated, or square:\supseteqproduces ⊇ (Superset or equal to; core LaTeX kernel)\supsetproduces ⊃ (Proper superset relation; core LaTeX kernel)\supsetneqproduces ⊋ (Strict proper superset with slashed bar; requiresamssymb)\supsetneqqproduces ⫺ (Strict proper superset with double bar; requiresamssymb)\varsupsetneqproduces ⊋ (Variant strict proper superset with diagonal slash; requiresamssymb)\nsupseteqproduces ⊉ (Not a superset or equal to; requiresamssymb)\not\supsetproduces ⊅ (Negated proper superset using core LaTeX slash overlay)\Supsetproduces ⋑ (Double superset relation; requiresamssymb)\sqsupsetproduces ⊐ (Square proper superset; requiresamssymb)\sqsupseteqproduces ⊒ (Square superset or equal to; core LaTeX kernel)
-
Typeset expressions inside LaTeX math mode:
Superset commands are relational math operators and cannot be evaluated in text mode. Use inline math delimiters ($...$) or display math environments (\[...\]):% Inline mathematical expression Let $B \supseteq A$ denote that sample space $B$ contains event $A$. % Display mathematical expression \[ X \supsetneq Y \supseteq Z \] -
Align multiline set relation proofs:
When writing multi-step set derivations or proofs, use thealign*environment fromamsmath(for detailed alignment syntax, see our guide on multiline equations in LaTeX):\begin{align*} \mathcal{U} &\supseteq \mathcal{S}_1 \\ &\supsetneq \mathcal{S}_2 \\ &\supseteq \emptyset \end{align*} -
Compile the document:
Compile your.texsource file usingpdflatex,lualatex, orxelatex. In TeXstudio, press F5 (Build & View); in terminal environments, run:pdflatex manuscript.tex
Output and how to read it
When LaTeX compiles superset commands, its mathematical spacing engine classifies them under the \mathrel relational operator class. Understanding this typography ensures proper document appearance:
- Relational Spacing (\mathrel): LaTeX automatically inserts thick mathematical space (
\thickmuskip, defined by default as 5/18 of a quad) between the relation symbol and its surrounding operands. This means writing$B\supseteq A$produces identical, properly balanced spacing to$B \supseteq A$. - Distinction from Binary Operators: Unlike binary operators (
\mathbin, such as\cupor\cap) which take medium mathematical space (\medmuskip), superset symbols act as sentence verbs asserting containment between two expressions. - Mathematical Interpretation:
- $B \supseteq A$ reads “B is a superset of or equal to A,” meaning every element of A is contained in B, with the possibility that A = B.
- $B \supsetneq A$ reads “B is a strict (proper) superset of A,” meaning every element of A is contained in B and there exists at least one element in B not present in A ($B \neq A$).
- $B \nsupseteq A$ reads “B is not a superset of A,” meaning at least one element of A is missing from B.
Troubleshooting
When compiling superset relations in research manuscripts, authors commonly encounter four specific issues:
- Error:
! Missing $ inserted:- Cause: Invoking a superset command such as
\supsetor\supseteqin plain paragraph text outside math mode. - Fix: Wrap the symbol or expression in math delimiters, such as
$\supseteq$for inline text or\[ \supseteq \]for standalone equations.
- Cause: Invoking a superset command such as
- Error:
! Undefined control sequence: \supsetneqor\nsupseteq:- Cause: Using extended AMS superset commands without importing the
amssymbpackage in the document preamble. - Fix: Add
\usepackage{amssymb}to the preamble before\begin{document}.
- Cause: Using extended AMS superset commands without importing the
- Negation Slash Misalignment with
\not\supseteq:- Cause: Using core LaTeX
\not\supseteqplaces an overlaid slash across the symbol, which can appear off-center depending on the document font size. - Fix: Use the dedicated pre-composed glyph
\nsupseteqfromamssymb, which features optically balanced slash positioning.
- Cause: Using core LaTeX
- Confusion with Apache Superset Dashboards:
- Cause: Searching for superset math formatting within the Apache Superset business intelligence platform. Standard Superset Markdown dashboard cards sanitize input and do not natively evaluate LaTeX equations.
- Fix: For mathematical reports and dashboards, render formulas into static SVG/PNG assets or export datasets to Jupyter Notebook environments where MathJax and LaTeX rendering are fully supported.
Free alternatives (table)
The following table compares free and open-source TeX distributions and authoring platforms for compiling manuscripts containing mathematical superset relations:
| Platform / Tool | Distribution Type | License | Supported OS | Package Management & AMS Support |
|---|---|---|---|---|
| TeX Live | Full TeX distribution | LPPL / GPL / Free Software | Linux, Windows, macOS | Includes tlmgr; standard collections bundle amssymb and amsmath by default. |
| MiKTeX | Modular TeX distribution | Open Source (various) | Windows, macOS, Linux | Integrated package manager automatically installs missing CTAN packages on demand during compilation. |
| MacTeX | macOS TeX distribution bundle | LPPL / GPL | macOS | Native macOS packaging of TeX Live, including TeXShop and complete AMS mathematical font collections. |
| Overleaf Community Edition | Web-based collaborative editor | AGPL v3 | Linux (Docker self-hosted) | Self-hosted browser interface built on TeX Live with real-time compilation and multi-user editing. |
FAQ
What is the difference between \supset and \supseteq in LaTeX?
In LaTeX, \supset produces the open horseshoe symbol ⊃ while \supseteq produces the symbol ⊇ with an underlying horizontal bar. Under international mathematical standard ISO 80000-2, \supseteq represents non-strict superset relations (where set B contains or equals set A). Because historical literature inconsistently treated \supset as either strict or non-strict inclusion, modern scientific writing utilizes \supseteq for general supersets and \supsetneq for strict supersets to prevent ambiguity.
Which package is required for \supsetneq and \nsupseteq in LaTeX?
The amssymb package is required. Include \usepackage{amssymb} in your document preamble. This package loads the American Mathematical Society font collections (MSAM and MSBM), providing access to extended relation symbols including \supsetneq, \supsetneqq, \varsupsetneq, \nsupseteq, \Supset, and \sqsupset. Core commands like \supset and \supseteq are built into the standard LaTeX kernel and do not require any package imports.
How do you write “not a superset” in LaTeX?
The recommended command is \nsupseteq, which produces ⊉ and requires the amssymb package. In a minimal LaTeX environment without external packages, you can use the core kernel command \not\supset (producing ⊅) or \not\supseteq, which places a slash overlay across the base relation symbol.
Can LaTeX superset commands be used in regular paragraph text?
No. Superset commands are mathematical relation symbols categorized under \mathrel and can only be evaluated in LaTeX math mode. Typing \supset or \supseteq in plain paragraph text generates a ! Missing $ inserted compilation error. You must enclose the command in inline math delimiters ($B \supseteq A$) or display delimiters (\[ B \supseteq A \]).
Does Apache Superset support LaTeX math equations?
No, Apache Superset does not natively render LaTeX syntax in standard dashboard charts or markdown cards. Superset markdown blocks sanitize HTML and do not process MathJax or LaTeX delimiters out-of-the-box. Researchers presenting mathematical models typically pre-render formulas into SVG/PNG images or link dashboards to external computational notebooks like Jupyter.
Sources (official docs)
- The Comprehensive LaTeX Symbol List (Scott Pakin / CTAN): Official catalog of LaTeX symbols, Section 3 “Binary Relations” and “AMS Subset and Superset Relations,” available at https://ctan.org/pkg/comprehensive. Checked 2026-11-08.
- American Mathematical Society (AMS) amsfonts and amssymb Documentation (CTAN): Official AMS-LaTeX macro and font documentation, available at https://ctan.org/pkg/amsfonts. Checked 2026-11-08.
- LaTeX2e Unofficial Reference Manual: Math symbols and relational math operator specifications, available at https://latexref.xyz/Math-symbols.html. Checked 2026-11-08.
- Overleaf Documentation: Mathematical Expressions and List of Greek letters and math symbols, available at https://www.overleaf.com/learn/latex/Mathematical_expressions. Checked 2026-11-08.
- International Organization for Standardization (ISO): ISO 80000-2:2019 Quantities and units — Part 2: Mathematics, Item 2-5.4 “Sets and relations,” available at https://www.iso.org/standard/64973.html. Checked 2026-11-08.







