This site is supported by donations to The OEIS Foundation.

Template:Symbol

From OeisWiki
(Redirected from Template:Sym)
Jump to: navigation, search

The {{symbol}} or {{sym}} typing-aid template returns either HTML+CSS (default), the UTF-16 hex code, the LaTeX code or the name (description) for a given mathematical symbol.

For all Unicode mathematical symbols, see

http://symbolcodes.tlt.psu.edu/bylanguage/math.html

Usage

{{symbol|type|result}}

or

{{sym|type|result}}

where type is among

and result is among (case insensitive)

  • htm: HTML Entity (hex) (default);
  • hex: UTF-16 (hex) [hexadecimal Unicode];
  • tex: LaTeX code;
  • name: descriptive name.

Tests

Hyphen

: {{sym|hyphen}} yields

: {{sym|hyphen|tex}} yields

\text{-}

En dash

: {{sym|ndash}} yields

: {{sym|ndash|tex}} yields

\text{--}

: {{math|Feller{{dash|n}}Tornier: ''C''{{sub|Feller{{dash|n}}Tornier}}|&}} yields the text style HTML+CSS

Feller–Tornier: CFeller–Tornier
: {{math||tex = \text{Feller--Tornier}: C_{ \text{Feller--Tornier} }|$}},{{nl}}<!--
-->{{math||tex = \text{Feller{{sym|ndash|tex}}Tornier}: C_{ \mathrm{Feller{{sym|ndash|tex}}Tornier} }|$}}

yields the text style LaTeX (ugly: en dash as 2 consecutive hyphens)

,
Failed to parse (syntax error): {\displaystyle \textstyle { \text{Feller\text{--}Tornier}: C_{ \mathrm{Feller\text{--}Tornier} } } }

Em dash

: {{sym|mdash}} yields

: {{sym|mdash|tex}} yields

\text{---}
: {{math|If you do use the em dash, use them sparingly{{dash|m}}no more than two in any one sentence.|&}}

yields the text style HTML+CSS

If you do use the em dash, use them sparingly—no more than two in any one sentence.
: {{math|\text{If you do use the em dash, use them sparingly---no more than two in any one sentence.}|$}}

yields the text style LaTeX (ugly: em dash as 3 consecutive hyphens)

Examples

Typography

To get a non wiki parsed asterisk * you may use the {{*}} template.

Code
{{sym|...}}
(see 3 rd column)
{{sym|...|hex}},
&#x{{sym|...|hex}};
Styled HTML+CSS
{{sym|...}}
in
{{math|...|&&}},
{{math|...|&}}
Code
{{sym|...|tex}}
Result
(TeX)
Rendered TeX
{{sym|...|tex}}
in
{{math|...|$$}},
{{math|...|$}}
Code
{{sym|...|name}}
Name
Currency
{{sym|iexcl}} 00A1, ¡
¡
, 
¡
{{sym|iexcl|tex}} {\color{red} ?} , {{sym|iexcl|name}} inverted exclamation mark
{{sym|iquest}} 00BF, ¿
¿
, 
¿
{{sym|iquest|tex}} {\color{red} ?} , {{sym|iquest|name}} inverted question mark
{{sym|para}} 00B6, ¶
, 
{{sym|para|tex}} {\P} , {{sym|para|name}} paragraph mark
{{sym|sect}} 00A7, §
§
, 
§
{{sym|sect|tex}} {\S} , {{sym|sect|name}} section mark
{{sym|dagger}} 2020, †
, 
{{sym|dagger|tex}} {\dagger} , {{sym|dagger|name}} dagger
{{sym|Dagger}} 2021, ‡
, 
{{sym|Dagger|tex}} {\ddagger} , {{sym|Dagger|name}} double dagger
{{sym|&}} 0026, &
&
, 
&
{{sym|&|tex}} {\&} , {{sym|&|name}} ampersand
{{sym|#}} 0023, #
#
, 
#
{{sym|#|tex}} {\#} , {{sym|#|name}} number sign
{{sym|\}} 005C, \
\
, 
\
{{sym|\|tex}} {\backslash} , {{sym|\|name}} backslash
{{sym|colon}} 003A, :
:
, 
:
{{sym|colon|tex}} {\colon} , {{sym|colon|name}} colon
{{sym|:}} 003A, :
:
, 
:
{{sym|:|tex}} {\colon} , {{sym|:|name}} colon
{{sym|hyphen}} 2010, ‐
, 
{{sym|hyphen|tex}} \text{-} , {{sym|hyphen|name}} hyphen
{{sym|ndash}} 2013, –
, 
{{sym|ndash|tex}} \text{--} , {{sym|ndash|name}} en dash
{{sym|mdash}} 2014, —
, 
{{sym|mdash|tex}} \text{---} , {{sym|mdash|name}} em dash
{{sym|check}} 2713, ✓
, 
{{sym|check|tex}} {\checkmark} , {{sym|check|name}} check mark
{{sym|*}} 002A, *
*
, 
*
{{sym|*|tex}} {\ast} , {{sym|*|name}} asterisk
{{sym|ast}} 002A, *
*
, 
*
{{sym|ast|tex}} {\ast} , {{sym|ast|name}} asterisk
{{sym|star}} 2605, ★
, 
{{sym|star|tex}} {\star} , {{sym|star|name}} star
{{sym|lowast}} 204E, ⁎
, 
{{sym|lowast|tex}} {\color{red} ?} , {{sym|lowast|name}} low asterisk
{{sym|copy}} 00A9, ©
©
, 
©
{{sym|copy|tex}} {\color{red} ?} , {{sym|copy|name}} copyright sign
{{sym|tm}} 2122, ™
, 
{{sym|tm|tex}} {\color{red} ?} , {{sym|tm|name}} trade mark sign
{{sym|reg}} 00AE, ®
®
, 
®
{{sym|reg|tex}} {\color{red} ?} , {{sym|reg|name}} registered sign

Currency

Code
{{sym|...}}
(see 3 rd column)
{{sym|...|hex}},
&#x{{sym|...|hex}};
Styled HTML+CSS
{{sym|...}}
in
{{math|...|&&}},
{{math|...|&}}
Code
{{sym|...|tex}}
Result
(TeX)
Rendered TeX
{{sym|...|tex}}
in
{{math|...|$$}},
{{math|...|$}}
Code
{{sym|...|name}}
Name
Currency
{{sym|cents}} 00A2, ¢
¢
, 
¢
{{sym|cents|tex}} { {\rm c}\!\!\!{ / } } , {{sym|cents|name}} cent
{{sym|$}} 0024, $
$
, 
$
{{sym|$|tex}} {\$} , {{sym|$|name}} dollar
{{sym|euros}} 20AC, €
, 
{{sym|euros|tex}} { {\rm C}\!\!\!\!\!{ = } } , {{sym|euros|name}} euro
{{sym|pounds}} 00A3, £
£
, 
£
{{sym|pounds|tex}} { {\mathcal L}\!\!\!\!\!{ - } } , {{sym|pounds|name}} pound
{{sym|yens}} 00A5, ¥
¥
, 
¥
{{sym|yens|tex}} { {\rm Y}\!\!\!\!\!{ = } } , {{sym|yens|name}} yen

Science

Code
{{sym|...}}
(see 3 rd column)
{{sym|...|hex}},
&#x{{sym|...|hex}};
Styled HTML+CSS
{{sym|...}}
in
{{math|...|&&}},
{{math|...|&}}
Code
{{sym|...|tex}}
Result
(TeX)
Rendered TeX
{{sym|...|tex}}
in
{{math|...|$$}},
{{math|...|$}}
Code
{{sym|...|name}}
Name
Science
{{sym|hbar}} 0127, ħ
ħ
, 
ħ
{{sym|hbar|tex}} \hbar , {{sym|hbar|name}} reduced Planck constant

Geometry

See Template:Symbol/Geometry.

Set theory

See Template:Symbol/Set theory.

Logic

See Template:Symbol/Logic.

Arithmetic

See Template:Symbol/Arithmetic.

Algebra

See Template:Symbol/Algebra.

Calculus

See Template:Symbol/Calculus.

See also

  • {{Arrow}} or {{-)}} (arrows) (typing-aid template)
  • {{Greek}} Greek letters (typing-aid template)
  • {{Op}} (symbols for operations) (typing-aid template)
  • {{Rel}} (symbols for relations) (typing-aid template)
  • {{Symbol}} (typing-aid template)