Difference between revisions of "Template:Mathcal"
Jump to navigation
Jump to search
imported>Edokter (Cursive default to... Comic Sans! Need more matching fonts, but this is pretty futile.) |
imported>Edokter m (fix) |
||
| Line 1: | Line 1: | ||
| − | <span style="font-family: | + | <span style="font-family: 'Lucida Calligraphy', serif;">{{{1|}}}</span><noinclude> |
The '''Mathcal''' template is intended to simulate a calligraphic font for use in mathematical formulas using standard HTML. Use this template as an alternative to <code>\mathcal{...}</code> in LaTeX markup (see [[Help:Displaying a formula]]). | The '''Mathcal''' template is intended to simulate a calligraphic font for use in mathematical formulas using standard HTML. Use this template as an alternative to <code>\mathcal{...}</code> in LaTeX markup (see [[Help:Displaying a formula]]). | ||
Revision as of 09:45, 6 March 2015
The Mathcal template is intended to simulate a calligraphic font for use in mathematical formulas using standard HTML. Use this template as an alternative to \mathcal{...} in LaTeX markup (see Help:Displaying a formula).
Usage
Use this template to wrap an inline formula in wikitext. Example:
{{mathcal|ABCDEFGHIJKLMNOPQRSTUVWXYZ}}
produces: ABCDEFGHIJKLMNOPQRSTUVWXYZ.
Use of equals-sign
The template is meant to be used with alphabetic text, typically one or a few capital letters. If the body contains an exposed equals-sign ("="), it will fail to render. For example, the following template use produces no result:
{{mathcal|P=NP}}.
There are two ways to resolve this.
Method 1: Start the body with "1=", as in:
{{mathcal|1=P=NP}},
which produces: P=NP.
Method 2: Enclose the equals-sign in double-braces "{{=}}", as in:
{{mathcal|P{{=}}NP}},
which produces: P=NP.