This site is supported by donations to The OEIS Foundation.
Template:Mathcal
[⧼Purge⧽ Template:Mathcal]
The {{mathcal}} ([mathematical] calligraphic typeface) mathematical alphanumeric symbols template is intended to simulate a calligraphic typeface for use in mathematical formulas using standard HTML+CSS. This template may also be used to get \mathcal{...}
in LaTeX markup (see Help:Displaying a formula).
The template attempts to use any calligraphic typeface that may be installed on several operating systems, either as default or as part of an office package. The typefaces called are: ‘Lucida Calligraphy’, ‘Monotype Corsiva,’ ‘URW Chancery L’ and ‘Apple Chancery.’
Contents
Usage
- {{mathcal|text}}
or
- {{mathcal|text|format}}
where text
is
- a string of: lowercase/uppercase Latin characters and/or Hindu-arabic numerals (LaTeX only yields a calligraphic typeface for uppercase Latin characters!);
and format
is either
-
htm
: to get HTML+CSS (default), or -
tex
: to get LaTeX code.
Tests
The code
-
: {{math|''ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz'' 0123456789|tex = ABCDEFGHIJKLMNOPQRSTUVWXYZ \ abcdefghijklmnopqrstuvwxyz \ 0123456789|&}}
yields the text style HTML+CSS (numerals appear in roman lining figures)
-
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
and with the $
option, yields the LaTeX (numerals appear in roman lining figures)
The code
-
: {{math|{{mathcal|ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789}}|tex = {{mathcal|ABCDEFGHIJKLMNOPQRSTUVWXYZ \ abcdefghijklmnopqrstuvwxyz \ 0123456789|tex}}|&}}
yields the text style HTML+CSS (numerals appear in italic oldstyle figures; not roman oldstyle figures even if we use ''0123456789''
)
-
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
and with the $
option, yields the text style LaTeX (only yields a calligraphic typeface for uppercase Latin characters!) (numerals appear in roman oldstyle figures)
The code
-
: {{math|{{mathcal|ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789}}|tex = {{mathcal|ABCDEFGHIJKLMNOPQRSTUVWXYZ \ abcdefghijklmnopqrstuvwxyz \ 0123456789|tex}}|&&}}
yields the display style HTML+CSS (numerals appear in italic oldstyle figures, not roman oldstyle figures even if we use ''0123456789''
)
-
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
and with the $$
option, yields the display style LaTeX (only yields a calligraphic typeface for uppercase Latin characters!) (numerals appear in roman oldstyle figures)
The code
: {{math|''DEFGHI'' ''defghi'' {{mathcal|DEFGHI defghi}} |tex = DEFGHI \ defghi \ {{mathcal|DEFGHI \ defghi|tex}} |&}}
yields the text style HTML+CSS
-
DEFGHI defghi DEFGHI defghi
and with the $
option yields the text style LaTeX
Examples
The code
: A118372: {{math|{{mathcal|S}}{{sp|1}}|tex = \mathcal{S}|&}}-perfect numbers.
yields the text style HTML+CSS
- A118372:
-perfect numbers.S
and with the $
option, yields the text style LaTeX
- A118372: -perfect numbers.
The code
: before {{math|{{mathcal|P}} {{=}} {{mathcal|N{{sp|2}}P}}{{sp|3}}?|tex = {{mathcal|P|tex}} = {{mathcal|NP|tex}} \, ?|&}} after
yields the text style HTML+CSS
- before
afterP = N P ?
and with the $
option, yields the text style LaTeX
- before after
The code
-
: {{math|{{mathcal|P}} {{=}} {{mathcal|N{{sp|2}}P}}{{sp|3}}?|tex = {{mathcal|P|tex}} = {{mathcal|NP|tex}} \, ?|&&}}
yields the display style HTML+CSS
-
P = N P ?
and with the $$
option, yields the display style LaTeX