This site is supported by donations to The OEIS Foundation.

Template:Mathfont

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

The {{mathfont}} mathematical formatting template is intended for HTML+CSS typesetting (where you can’t [or don’t want to] use LaTeX) of very simple mathematical expressions/numbers within:

  • a section label,
  • the label (not the link itself) of a wikilink, or
  • the label (not the link itself) of an external link, or
  • mathematical numbers (NOT for dates, times, chapters, book sections, pages, ...).

Usage

{{mathfont}}

or

{{mathfont|size}}

where the optional second argument (size) is font-size (defaults to 1.15em, i.e. relative to parent element).

Examples of section labels

For many more examples of section labels, see π. (This happens to be an example of wikilink label: : ''For many more examples of section labels, see ''[[pi|{{mathfont|{{Gr|pi}}}}]]''.''.)

The code

=== Variable {{mathfont|''n''}} ===

yields

Variable n

The variable
n
in the above section label is typeset in the math font (the link in the table of contents works properly).

Examples of link labels

The code [[Prime factors of n (with multiplicity)|Prime factors of {{mathfont|''n''}} (with multiplicity)]] yields the wikilink

Prime factors of n (with multiplicity)

The code [https://www.math.upenn.edu/~deturck/m170/wk2/numdivisors.html Finding the number of divisors of {{mathfont|''n''}}] yields the external link

Finding the number of divisors of n

Examples of captions

Apart from the trivial zeros (even negative integers), the Riemann zeta function doesn’t have any zero outside the critical strip 0 < σ < 1 delimited by the lines σ = 0 and σ = 1 (neither can the zeros lie “too close” to those lines). Furthermore, the non-trivial zeros are symmetric about the real axis and the critical line σ = 1/2 and according to the Riemann Hypothesis, they all lie on the line σ = 1/2.

The image (with caption) shown on the right, is given by (to avoid disturbing the line spacings of small font size captions, 1.1em is better than the default 1.15em)

[[File:300px-Zero-free region for the Riemann zeta-function.svg.png|right|thumb|300px|Apart from the trivial zeros (even negative integers), the Riemann zeta function doesn{{'}}t have any zero outside the [[critical strip]] {{mathfont|0 < ''{{Gr|sigma}}'' < 1|1.1em}} delimited by the lines {{mathfont|''{{Gr|sigma}}'' {{=}} 0|1.1em}} and {{mathfont|''{{Gr|sigma}}'' {{=}} 1|1.1em}} (neither can the zeros lie {{"|too close|"}} to those lines). Furthermore, the non-trivial zeros are symmetric about the real axis and the [[critical line]] {{mathfont|''{{Gr|sigma}}'' {{=}} 1/2|1.1em}} and according to the [[Riemann Hypothesis]], they all lie on the line {{mathfont|''{{Gr|sigma}}'' {{=}} 1/2|1.1em}}.]]

Code

<span class="math" style="white-space: nowrap; {{math/font|{{{2|}}}}}">{{#replace: {{{1|}}} |@opsp@|{{sp|1}}}}</span>

See also

  • {{math/font}} (which yields font-size: 1.15em; font-family: 'Computer Modern', STIXGeneral, 'Times New Roman'; to be used within style="")
  • {{mathfont}} (for HTML+CSS typesetting of very simple mathematical expressions/numbers in section labels, labels of wikilinks and labels of external links) (for mathematical numbers only: NOT for dates, times, chapters, book sections, pages, ...)
  • {{math}} (for typesetting of mathematical expressions in either HTML+CSS or LaTeX)
  • {{intseq}} (for integer sequences)