Template:LaTeX mapping operators/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(6 intermediate revisions by 2 users 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 5: | Line 7: | ||
{{Shortcut|texmap}} | {{Shortcut|texmap}} | ||
{| class="wikitable | {| class="wikitable" | ||
|+ style="font-size: 105%;" | Pre-defined LaTeX control sequences for interval vectors | |+ style="font-size: 105%;" | Pre-defined LaTeX control sequences for interval vectors | ||
|- | |- | ||
! rowspan="2" | Operator | ! rowspan="2" | Operator | ||
! colspan="2" | Example | ! colspan="2" | Example | ||
! rowspan="2" | Definition | ! rowspan="2" | Definition | ||
|- | |- | ||
! You type | ! You type | ||
! You get | ! You get | ||
|- | |- | ||
| <code>monzo</code> | | <code>monzo</code> | ||
| <code>{{nowrap|\monzo{ | | <code>{{nowrap|<nowiki>\monzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\monzo{-4 & 4 & -1}</math> | | <math>\monzo{-4 & 4 & -1}</math> | ||
| [[Monzo]] | | [[Monzo]] | ||
|- | |- | ||
| <code>tmonzo</code> | | <code>tmonzo</code> | ||
| <code>{{nowrap|\tmonzo{ | | <code>{{nowrap|<nowiki>\tmonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\tmonzo{-4 & 4 & -1}</math> | | <math>\tmonzo{-4 & 4 & -1}</math> | ||
| | | Monzo (pipe variant) | ||
|- | |- | ||
| <code>bimonzo</code> | | <code>bimonzo</code> | ||
| <code>{{nowrap|\bimonzo{ | | <code>{{nowrap|<nowiki>\bimonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\bimonzo{-4 & 4 & -1}</math> | | <math>\bimonzo{-4 & 4 & -1}</math> | ||
| Bimonzo | | Bimonzo | ||
|- | |- | ||
| <code>bitmonzo</code> | | <code>bitmonzo</code> | ||
| <code>{{nowrap|\bitmonzo{ | | <code>{{nowrap|<nowiki>\bitmonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\bitmonzo{-4 & 4 & -1}</math> | | <math>\bitmonzo{-4 & 4 & -1}</math> | ||
| | | Bimonzo (pipe variant) | ||
|- | |- | ||
| <code>trimonzo</code> | | <code>trimonzo</code> | ||
| <code>{{nowrap|\trimonzo{ | | <code>{{nowrap|<nowiki>\trimonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\trimonzo{-4 & 4 & -1}</math> | | <math>\trimonzo{-4 & 4 & -1}</math> | ||
| Trimonzo | | Trimonzo | ||
|- | |- | ||
| <code>tritmonzo</code> | | <code>tritmonzo</code> | ||
| <code>{{nowrap|\tritmonzo{ | | <code>{{nowrap|<nowiki>\tritmonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\tritmonzo{-4 & 4 & -1}</math> | | <math>\tritmonzo{-4 & 4 & -1}</math> | ||
| | | Trimonzo (pipe variant) | ||
|- | |- | ||
| <code>quadmonzo</code> | | <code>quadmonzo</code> | ||
| <code>{{nowrap|\quadmonzo{ | | <code>{{nowrap|<nowiki>\quadmonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\quadmonzo{-4 & 4 & -1}</math> | | <math>\quadmonzo{-4 & 4 & -1}</math> | ||
| Quadmonzo | | Quadmonzo | ||
|- | |- | ||
| <code>quadtmonzo</code> | | <code>quadtmonzo</code> | ||
| <code>{{nowrap|\quadtmonzo{ | | <code>{{nowrap|<nowiki>\quadtmonzo{-4 & 4 & -1}</nowiki>}}</code> | ||
| <math>\quadtmonzo{-4 & 4 & -1}</math> | | <math>\quadtmonzo{-4 & 4 & -1}</math> | ||
| | | Quadmonzo (pipe variant) | ||
|- | |- | ||
| <code>val</code> | | <code>val</code> | ||
| <code>{{nowrap|\val{ | | <code>{{nowrap|<nowiki>\val{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\val{12 & 19 & 28}</math> | | <math>\val{12 & 19 & 28}</math> | ||
| [[Val]] | | [[Val]] | ||
|- | |- | ||
| <code>tval</code> | | <code>tval</code> | ||
| <code>{{nowrap|\tval{ | | <code>{{nowrap|<nowiki>\tval{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\tval{12 & 19 & 28}</math> | | <math>\tval{12 & 19 & 28}</math> | ||
| | | Val (pipe variant) | ||
|- | |- | ||
| <code>bival</code> | | <code>bival</code> | ||
| <code>{{nowrap|\bival{ | | <code>{{nowrap|<nowiki>\bival{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\bival{12 & 19 & 28}</math> | | <math>\bival{12 & 19 & 28}</math> | ||
| Bival | | Bival | ||
|- | |- | ||
| <code>bitval</code> | | <code>bitval</code> | ||
| <code>{{nowrap|\bitval{ | | <code>{{nowrap|<nowiki>\bitval{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\bitval{12 & 19 & 28}</math> | | <math>\bitval{12 & 19 & 28}</math> | ||
| | | Bival (pipe variant) | ||
|- | |- | ||
| <code>trival</code> | | <code>trival</code> | ||
| <code>{{nowrap|\trival{ | | <code>{{nowrap|<nowiki>\trival{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\trival{12 & 19 & 28}</math> | | <math>\trival{12 & 19 & 28}</math> | ||
| Trival | | Trival | ||
|- | |- | ||
| <code>tritval</code> | | <code>tritval</code> | ||
| <code>{{nowrap|\tritval{ | | <code>{{nowrap|<nowiki>\tritval{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\tritval{12 & 19 & 28}</math> | | <math>\tritval{12 & 19 & 28}</math> | ||
| | | Trival (pipe variant) | ||
|- | |- | ||
| <code>quadval</code> | | <code>quadval</code> | ||
| <code>{{nowrap|\quadval{ | | <code>{{nowrap|<nowiki>\quadval{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\quadval{12 & 19 & 28}</math> | | <math>\quadval{12 & 19 & 28}</math> | ||
| Quadval | | Quadval | ||
|- | |- | ||
| <code>quadtval</code> | | <code>quadtval</code> | ||
| <code>{{nowrap|\quadtval{ | | <code>{{nowrap|<nowiki>\quadtval{12 & 19 & 28}</nowiki>}}</code> | ||
| <math>\quadtval{12 & 19 & 28}</math> | | <math>\quadtval{12 & 19 & 28}</math> | ||
| | | Quadval (pipe variant) | ||
|- | |- | ||
| <code> | | <code>rbra</code> | ||
| <code>{{nowrap|\ | | <code>{{nowrap|<nowiki>\rbra{\monzo{1 & 2 & 3}</nowiki>}} & {{nowrap|<nowiki>\monzo{0 & -3 & -5}}</nowiki>}}</code> | ||
| <math>\ | | <math>\rbra{\monzo{1 & 2 & 3} & \monzo{0 & -3 & -5}}</math> | ||
| rowspan="2" | [[Dave Keenan]] and [[Douglas Blumeyer]]'s<br />[[ | | 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|\rket{ | | <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|\vmp{ | | <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 | | Dot product of val and monzo | ||
|- | |- | ||
| <code>wmp</code> | | <code>wmp</code> | ||
| <code>{{nowrap|\wmp{ | | <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 bimonzo | | Dot product of bival and bimonzo | ||
|} | |} | ||
=== See also === | === See also === | ||
* [[:Template:LaTeX preset characters]] | * [[:Template:LaTeX preset characters]] – for predefining the bracket sequences. | ||
* [[:Template:LaTeX operators]] | * [[:Template:LaTeX operators]] – for typesetting more basic mathematical functions. |
Latest revision as of 18:55, 30 January 2025
monzos, vals, and monzo–val products by defining the operators in advance to avoid the need to manually enter brackets.
This template allows LaTeX representations ofUsage
This template is mainly used to typeset Monzos and vals, but multimonzos and multivals are also supported up to four dimensions.
Note: You can use {{texmap}}
as a shortcut.
Operator | Example | Definition | |
---|---|---|---|
You type | You get | ||
monzo
|
\monzo{-4 & 4 & -1}
|
[math]\displaystyle{ \monzo{-4 & 4 & -1} }[/math] | Monzo |
tmonzo
|
\tmonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \tmonzo{-4 & 4 & -1} }[/math] | Monzo (pipe variant) |
bimonzo
|
\bimonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \bimonzo{-4 & 4 & -1} }[/math] | Bimonzo |
bitmonzo
|
\bitmonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \bitmonzo{-4 & 4 & -1} }[/math] | Bimonzo (pipe variant) |
trimonzo
|
\trimonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \trimonzo{-4 & 4 & -1} }[/math] | Trimonzo |
tritmonzo
|
\tritmonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \tritmonzo{-4 & 4 & -1} }[/math] | Trimonzo (pipe variant) |
quadmonzo
|
\quadmonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \quadmonzo{-4 & 4 & -1} }[/math] | Quadmonzo |
quadtmonzo
|
\quadtmonzo{-4 & 4 & -1}
|
[math]\displaystyle{ \quadtmonzo{-4 & 4 & -1} }[/math] | Quadmonzo (pipe variant) |
val
|
\val{12 & 19 & 28}
|
[math]\displaystyle{ \val{12 & 19 & 28} }[/math] | Val |
tval
|
\tval{12 & 19 & 28}
|
[math]\displaystyle{ \tval{12 & 19 & 28} }[/math] | Val (pipe variant) |
bival
|
\bival{12 & 19 & 28}
|
[math]\displaystyle{ \bival{12 & 19 & 28} }[/math] | Bival |
bitval
|
\bitval{12 & 19 & 28}
|
[math]\displaystyle{ \bitval{12 & 19 & 28} }[/math] | Bival (pipe variant) |
trival
|
\trival{12 & 19 & 28}
|
[math]\displaystyle{ \trival{12 & 19 & 28} }[/math] | Trival |
tritval
|
\tritval{12 & 19 & 28}
|
[math]\displaystyle{ \tritval{12 & 19 & 28} }[/math] | Trival (pipe variant) |
quadval
|
\quadval{12 & 19 & 28}
|
[math]\displaystyle{ \quadval{12 & 19 & 28} }[/math] | Quadval |
quadtval
|
\quadtval{12 & 19 & 28}
|
[math]\displaystyle{ \quadtval{12 & 19 & 28} }[/math] | Quadval (pipe variant) |
rbra
|
\rbra{\monzo{1 & 2 & 3} & \monzo{0 & -3 & -5}}
|
[math]\displaystyle{ \rbra{\monzo{1 & 2 & 3} & \monzo{0 & -3 & -5}} }[/math] | Dave Keenan and Douglas Blumeyer's variation on extended bra-ket notation |
rket
|
\rket{\val{1 & 2 & 3} & \val{0 & -3 & -5}}
|
[math]\displaystyle{ \rket{\val{1 & 2 & 3} & \val{0 & -3 & -5}} }[/math] | |
vmp
|
\vmp{12 & 19 & 28}{-4 & 4 & -1}
|
[math]\displaystyle{ \vmp{12 & 19 & 28}{-4 & 4 & -1} }[/math] | Dot product of val and monzo |
wmp
|
\wmp{12 & 19 & 28}{-4 & 4 & -1}
|
[math]\displaystyle{ \wmp{12 & 19 & 28}{-4 & 4 & -1} }[/math] | Dot product of bival and bimonzo |
See also
- Template:LaTeX preset characters – for predefining the bracket sequences.
- Template:LaTeX operators – for typesetting more basic mathematical functions.