Template:LaTeX operators/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m →Usage |
||
| Line 1: | Line 1: | ||
{{dochead}}{{{{ROOTPAGENAME}} }} | {{dochead}}{{{{ROOTPAGENAME}} }} | ||
=== Usage === | === Usage === | ||
{{ {{ROOTPAGENAME}} }} | |||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|+ style="font-size: 105%; white-space: nowrap;" | Pre-defined LaTeX control sequences | |+ style="font-size: 105%; white-space: nowrap;" | Pre-defined LaTeX control sequences | ||
|- | |- | ||
! rowspan="2" | Operator !! colspan="2" | Example | ! rowspan="2" | Operator !! colspan="2" | Example !! rowspan="2" | Definition | ||
|- | |- | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| <code>floor</code> || <code>\floor{{(}}x + y{{)}}</code> || <math>\floor{x + y}</math> | | <code>floor</code> || <code>\floor{{(}}x + y{{)}}</code> || <math>\floor{x + y}</math> || Floor (round down) | ||
|- | |- | ||
| <code>ceil</code> || <code>\ceil{{(}}x + y{{)}}</code> || <math>\ceil{x + y}</math> | | <code>ceil</code> || <code>\ceil{{(}}x + y{{)}}</code> || <math>\ceil{x + y}</math> || Ceiling (round up) | ||
|- | |- | ||
| <code>abs</code> || <code>\abs{{(}}x + y{{)}}</code> || <math>\abs{x + y}</math> | | <code>abs</code> || <code>\abs{{(}}x + y{{)}}</code> || <math>\abs{x + y}</math> || Absolute value (magnitude) | ||
|- | |- | ||
| <code>round</code> || <code>\round{{(}}x + y{{)}}</code> || <math>\round{x + y}</math> | | <code>round</code> || <code>\round{{(}}x + y{{)}}</code> || <math>\round{x + y}</math> || Round (to the nearest integer) | ||
|- | |- | ||
| <code>rround</code> || <code>\rround{{(}}x + y{{)}}</code> || <math>\rround{x + y}</math> | | <code>rround</code> || <code>\rround{{(}}x + y{{)}}</code> || <math>\rround{x + y}</math> || "Reverse round" (distance to nearest integer) | ||
|} | |} | ||
=== See also === | === See also === | ||
* [[:Template:LaTeX mapping operators]] – A more advanced LaTeX template, used for typesetting [[monzo]]s and [[val]]s. | * [[:Template:LaTeX mapping operators]] – A more advanced LaTeX template, used for typesetting [[monzo]]s and [[val]]s. | ||
Revision as of 10:53, 21 September 2024
Usage
| Operator | Example | Definition | |
|---|---|---|---|
| You type | You get | ||
floor |
\floor{x + y} |
[math]\displaystyle{ \floor{x + y} }[/math] | Floor (round down) |
ceil |
\ceil{x + y} |
[math]\displaystyle{ \ceil{x + y} }[/math] | Ceiling (round up) |
abs |
\abs{x + y} |
[math]\displaystyle{ \abs{x + y} }[/math] | Absolute value (magnitude) |
round |
\round{x + y} |
[math]\displaystyle{ \round{x + y} }[/math] | Round (to the nearest integer) |
rround |
\rround{x + y} |
[math]\displaystyle{ \rround{x + y} }[/math] | "Reverse round" (distance to nearest integer) |
See also
- Template:LaTeX mapping operators – A more advanced LaTeX template, used for typesetting monzos and vals.