This site is supported by donations to The OEIS Foundation.

# Template:Math/font

The {{math/font}} mathematical formatting template is to be used whithin `style=""` to provide the default HTML+CSS `font-size` and `font-family` for mathematical formatting templates.

Note: Do not use the {{op}} (operator) template with {{math/font}}: it does not replace the `@opsp@` (operator space) annotation (produced by the {{op}} template) with spacing (only the {{mathfont}} and {{math}} templates do).

## Usage

{{math/font}}

or

{{math/font|size}}

where the optional argument (size) is `font-size` (defaults to `1.15em`, which is relative to parent element).

## Examples

```<div style="margin: 1em 1.5em;>
{| class="wikitable" style="margin: 0; text-align: center; {{math/font}}"
|-
|  3{{sp|1}}''x''        || 7{{sp|1}}''y''
|-
| 11{{sp|1}}''x''{{^|2}} || {{sym|-}}8
|-
|}
</div>
```

yields

 3 x 7 y 11 x 2 −8
```<div style="margin: 1em 1.5em;>
{| class="wikitable" style="margin: 0; text-align: center; {{math/font|2em}}"
|-
|  3{{sp|1}}''x''        || 7{{sp|1}}''y''
|-
| 11{{sp|1}}''x''{{^|2}} || {{sym|-}}8
|-
|}
</div>
```

yields

 3 x 7 y 11 x 2 −8

## Tests: Small font size 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.

In the following test, the {{mathfont}} template uses {{math/font}}.

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

```font-size: {{#if: {{{1|}}}|{{{1}}}|1.15em<!--0.95rem--->}}; font-family: 'Computer Modern', STIXGeneral, 'Times New Roman';
```

• {{math/font}} (which yields `font-size: 1.15em; font-family: 'Computer Modern', STIXGeneral, 'Times New Roman';` to be used within `style=""`)