Template:Multimonzo: Difference between revisions
Jump to navigation
Jump to search
Cmloegcmluin (talk | contribs) correct rank to nullity |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="monzo"><span class="left-delim">[{{#switch: {{{nullity|2}}} | 2 = [ | 3 = [[ | 4 = [[[ }}</span>{{trim| {{{1|{{{text|0}}}}}} }}<span class="right-delim"> | <includeonly><span class="monzo"><span class="left-delim">[{{#switch: {{{nullity|2}}}|2=[|3=[[|4=[[[}}</span>{{trim|{{{1|{{{text|0}}}}}}}}<span class="right-delim">⟩{{#switch: {{{nullity|2}}}|2=⟩|3=⟩⟩|4=⟩⟩⟩}}</span></span></includeonly><noinclude> | ||
{{documentation}} | |||
; | |||
[[Category:Formatting templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 19:27, 30 January 2025
This template eases using nested kets, such as for multimonzos: it puts the correct brackets ([[
and ⟩⟩
) around its arguments (it also removes surrounding space).
You can select bi-, tri-, or quad-monzo by specifying a second argument as 2
(default), 3
, or 4
.
Usage
You type | You get |
---|---|
{{multimonzo| 12 -13 4 10 -4 1 }}
|
[[12 -13 4 10 -4 1⟩⟩ |
{{multimonzo|nullity=3| -87 72 -49 31 }}
|
[[[-87 72 -49 31⟩⟩⟩ |
See also
- Template:Monzo
- Template:Monzo list
- Template:Multival
- Template:LaTeX mapping operators – For typesetting monzos and vals up to four dimensions in LaTeX.