Template:LaTeX mapping operators/doc: Difference between revisions

ArrowHead294 (talk | contribs)
m De-escape
ArrowHead294 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{{{ROOTPAGENAME}} }}
{{dochead}}{{{{ROOTPAGENAME}} }}
This template allows LaTeX representations of [[monzo]]s, [[vals]], and monzo–val products by defining the operators in advance to avoid the need to manually enter brackets.
=== Usage ===
=== Usage ===
This template is mainly used to typeset [[Monzo]]s and [[val]]s, but multimonzos and multivals are also supported up to four dimensions.
This template is mainly used to typeset [[Monzo]]s and [[val]]s, but multimonzos and multivals are also supported up to four dimensions.
Line 96: Line 98:
|-
|-
| <code>rbra</code>
| <code>rbra</code>
| <code>{{nowrap|<nowiki>\rbra{\monzo{1 & 2 & 3}}</nowiki>}} & {{nowrap|<nowiki>\monzo{0 & -3 & -5}}</nowiki>}}</code>
| <code>{{nowrap|<nowiki>\rbra{\monzo{1 & 2 & 3}</nowiki>}} & {{nowrap|<nowiki>\monzo{0 & -3 & -5}}</nowiki>}}</code>
| <math>\rbra{\monzo{1 & 2 & 3} & \monzo{0 & -3 & -5}}</math>
| <math>\rbra{\monzo{1 & 2 & 3} & \monzo{0 & -3 & -5}}</math>
| rowspan="2" | [[Dave Keenan]] and [[Douglas Blumeyer]]'s<br />[[Extended bra-ket notation #Variant including curly and square brackets|variation]] on [[extended bra-ket notation]]
| rowspan="2" | [[Dave Keenan]] and [[Douglas Blumeyer]]'s<br />[[Extended bra-ket notation #Variant including curly and square brackets|variation]] on [[extended bra-ket notation]]
|-
|-
| <code>rket</code>
| <code>rket</code>
| <code>{{nowrap|<nowiki>\rket{\val{1 & 2 & 3}}</nowiki>}} & {{nowrap|<nowiki>\val{0 & -3 & -5}</nowiki>}}}</code>
| <code>{{nowrap|<nowiki>\rket{\val{1 & 2 & 3}</nowiki>}} & {{nowrap|<nowiki>\val{0 & -3 & -5}}</nowiki>}}</code>
| <math>\rket{\val{1 & 2 & 3} & \val{0 & -3 & -5}}</math>
| <math>\rket{\val{1 & 2 & 3} & \val{0 & -3 & -5}}</math>
|-
|-
| <code>vmp</code>
| <code>vmp</code>
| <code>{{nowrap|<nowiki>\vmp{12 & 19 & 28}</nowiki>}} & {{nowrap|<nowiki>{-4 & 4 & -1}}</nowiki>}}</code>
| <code>{{nowrap|<nowiki>\vmp{12 & 19 & 28}</nowiki>}}{{nowrap|<nowiki>{-4 & 4 & -1}</nowiki>}}</code>
| <math>\vmp{12 & 19 & 28}{-4 & 4 & -1}</math>
| <math>\vmp{12 & 19 & 28}{-4 & 4 & -1}</math>
| Dot product of val and monzo
| Dot product of val and monzo
|-
|-
| <code>wmp</code>
| <code>wmp</code>
| <code>{{nowrap|<nowiki>\wmp{12 & 19 & 28}</nowiki>}} & {{nowrap|<nowiki>{-4 & 4 & -1}}</nowiki>}}</code>
| <code>{{nowrap|<nowiki>\wmp{12 & 19 & 28}</nowiki>}}{{nowrap|<nowiki>{-4 & 4 & -1}</nowiki>}}</code>
| <math>\wmp{12 & 19 & 28}{-4 & 4 & -1}</math>
| <math>\wmp{12 & 19 & 28}{-4 & 4 & -1}</math>
| Dot product of bival and bimonzo
| Dot product of bival and bimonzo
|}
|}
{{spaces note}}


=== See also ===
=== See also ===
* [[:Template:LaTeX preset characters]] &ndash; for predefining the bracket sequences.
* [[:Template:LaTeX preset characters]] for predefining the bracket sequences.
* [[:Template:LaTeX operators]] &ndash; for typesetting more basic mathematical functions.
* [[:Template:LaTeX operators]] for typesetting more basic mathematical functions.