Template:LaTeX operators: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Make template for absolute value, floor, ceiling, and rounding operators in LaTeX
 
ArrowHead294 (talk | contribs)
mNo edit summary
Line 5: Line 5:
\def\round#1{\left\lceil{#1}\right\rfloor}
\def\round#1{\left\lceil{#1}\right\rfloor}
\def\rround#1{\left\lfloor{#1}\right\rceil}
\def\rround#1{\left\lfloor{#1}\right\rceil}
</math></span>
</math></span><noinclude>
This template allows easy typesetting of the floor, ceiling, and rounding functions in LaTeX.
 
{{doc}}
 
[[Category:Formatting templates]]
</noinclude>

Revision as of 15:02, 30 August 2024

[math]\displaystyle{ \def\abs#1{\left|{#1}\right|} \def\floor#1{\left\lfloor{#1}\right\rfloor} \def\ceil#1{\left\lceil{#1}\right\rceil} \def\round#1{\left\lceil{#1}\right\rfloor} \def\rround#1{\left\lfloor{#1}\right\rceil} }[/math] This template allows easy typesetting of the floor, ceiling, and rounding functions in LaTeX.

Template:Doc