Template:LaTeX operators/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) m lowercase after dashes per User:FloraC |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 2: | Line 2: | ||
=== Usage === | === Usage === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|+ style="font-size: 105% | |+ style="font-size: 105%;" | Pre-defined LaTeX control sequences | ||
|- | |- style="white-space: nowrap;" | ||
! rowspan="2" | Operator !! colspan="2" | Example !! rowspan="2" | Definition | ! rowspan="2" | Operator !! colspan="2" | Example !! rowspan="2" | Definition | ||
|- | |- style="white-space: nowrap;" | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
Revision as of 14:54, 21 October 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) |
hs |
\hs |
Narrow whitespace | |
See also
- Template:LaTeX mapping operators – a more advanced LaTeX template used for typesetting monzos and vals.
- Template:LaTeX preset characters – for predefining the bracket sequences.