This site is supported by donations to The OEIS Foundation.

Template:Set/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Set. [<Edit> Template:Set]

[⧼Purge⧽ Template:Set/doc]

The {{set}} mathematical formatting tenmplate facilitates the typesetting of sets in either HTML+CSS or LaTeX.

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 
{m1, m2, ..., mn}
with (...)

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