Template:Ket: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Cmloegcmluin (talk | contribs)
this notation is used for matrices like temperament mappings, e.g. [⟨1 0 -4 -13] ⟨0 1 4 10]⟩. it's the same [...⟩ as vectors such as prime count vectors (AKA "monzos"), but in these contexts neither the "monzo" nor the "vector" template name is appropriate. I think this application-generic notation-based template is a good solution.
Tag: New redirect
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[Template:Monzo]]
<includeonly><span class="monzo"><span class="left-delim">{{lbrack}}</span>{{trim| {{{1|0}}} }}<span class="right-delim">&#x27E9;</span></span></includeonly><noinclude>
{{documentation}}
 
[[Category:Formatting templates]]
</noinclude>

Latest revision as of 18:53, 30 January 2025

Template documentation[view] [edit] [history] [purge]

This ket template puts ket notation ([ and ) around its arguments and removes leading and trailing spaces.

Note: If you are notating for monzos, use Template: Monzo instead. Only use this template if you wish to explicitly use ket notation.

Usage

You type
{{ket| -19 12 }}
Tip: Adding spaces improves readability of the markup.
You get (rendered)
[-19 12

Technical note

Code point U+27E9 is used for the right angle bracket , the ASCII approximation is the greater-than symbol (> or &gt;).

See also