This site is supported by donations to The OEIS Foundation.

Template:Mathcal

From OeisWiki
Jump to navigationJump to search

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.’

Usage

[edit]
{{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

[edit]

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)

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

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

DEFGHI defghi 𝒟𝒢 𝒹𝒻𝒽𝒾

Examples

[edit]

The code

: A118372: {{math|{{mathcal|S}}{{sp|1}}|tex = \mathcal{S}|&}}-perfect numbers.

yields the text style HTML+CSS

A118372:
S
-perfect numbers.

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
P = N  P ?
after

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

𝒫=𝒩𝒫?

See also

[edit]