Template:Bra: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Cmloegcmluin (talk | contribs)
this notation is used for matrices like comma-bases, e.g. ⟨[4 -4 1 0⟩ [13 -10 0 1⟩]. it's the same ⟨...] as maps (AKA "vals") or covectors, but in these contexts neither the "map" or "covector" template is appropriate. I think this application-generic notation-based template is a good solution.
Tag: New redirect
 
Remove nowrap
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
#REDIRECT [[Template:Val]]
<includeonly><span class="left-delim">&#x27E8;</span>{{trim| {{{1|0}}} }}<span class="right-delim">{{rbrack}}</span></includeonly><noinclude>
{{Documentation}}
 
[[Category:Formatting templates]]
</noinclude>

Latest revision as of 06:54, 30 January 2026

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

This template puts bra notation ( and ]) around its arguments and removes leading and trailing whitespaces.

📝Note: If you are notating for vals, use Template: Val instead. Only use this template if you wish to explicitly use bra notation.

Usage

You type
{{bra| 31 49 72 87 }}
You get (rendered)
31 49 72 87]
💡Tip: Adding spaces improves readability of the markup.

Technical note

Code point U+27E8 is used for the left angle bracket , the ASCII approximation is less-than symbol (< or &lt;).

See also