This site is supported by donations to The OEIS Foundation.
Template:Set
From OeisWiki
The following documentation is located at Template:Set/doc. [<Edit> Template:Set/doc]
[⧼Purge⧽ Template:Set]
[⧼Purge⧽ Template:Set]
The {{set}} mathematical formatting tenmplate facilitates the typesetting of sets in either HTML+CSS or LaTeX.
Contents
Usage
-
{{set}}
or
-
{{set|format}}
or
-
{{set|elements}}
or
-
{{set|elements|format}}
where
-
elements
: is a comma separated list of elements (no elements yields the empty set, i.e. ∅);
and where format
is either
-
htm
: HTML+CSS (default), or -
tex
: LaTeX.
Examples
Text style
The code
-
the notation {{math|{{set}}|&}} refers to the empty set
yields the HTML+CSS text style
- the notation
refers to the empty set∅
The code
-
the notation {{math|{{set|tex}}|$}} refers to the empty set
yields the LaTeX text style
- the notation refers to the empty set
The code
-
the set {{math|{{set|''m''{{sub|1}}, ''m''{{sub|2}}, ..., ''m''{{sub|''n''}}}}|&}} with (...)
yields the HTML+CSS text style
- the set
with (...){m1, m2, ..., mn}
The code
-
the set {{math|{{set|''m''{{sub|1|tex}}, ''m''{{sub|2|tex}}, ..., ''m''{{sub|''n''|tex}}|tex}}|$}} with (...)
yields the LaTeX text style
- the set with (...)
Display style
The code
-
{{math|{{set}}|&&}}
yields the HTML+CSS display style
∅
The code
-
{{math|{{set|tex}}|$$}}
yields the LaTeX display style
The code
-
{{math|{{set|''m''{{sub|1}}, ''m''{{sub|2}}, ..., ''m''{{sub|''n''}}}}|&&}}
yields the HTML+CSS display style
{m1, m2, ..., mn}
The code
-
{{math|{{set|''m''{{sub|1|tex}}, ''m''{{sub|2|tex}}, ..., ''m''{{sub|''n''|tex}}|tex}}|$$}}
yields the LaTeX display style