Template:LaTeX mapping operators/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}{{{{ROOTPAGENAME}}|}}
{{dochead}}{{{{ROOTPAGENAMEE}} }}
=== 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 5:
|+ 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
|-
|-
! You type
! You type !! You get
! You get
|-
|-
| <code>\monzo{}</code>
| <code>\monzo{{(}}{{)}}</code> || <code>\monzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\monzo{-4 & 4 & -1}</math>
| <code>\monzo{-4 & 4 & -1}</code>
| <math>\monzo{-4 & 4 & -1}</math>
|-
|-
| <code>\tmonzo{}</code>
| <code>\tmonzo{{(}}{{)}}</code> || <code>\tmonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\tmonzo{-4 & 4 & -1}</math>
| <code>\tmonzo{-4 & 4 & -1}</code>
| <math>\tmonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\bimonzo{}</code>
| <code>\bimonzo{{(}}{{)}}</code> || <code>\bimonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\bimonzo{-4 & 4 & -1}</math>
| <code>\bimonzo{-4 & 4 & -1}</code>
| <math>\bimonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\bitmonzo{}</code>
| <code>\bitmonzo{{(}}{{)}}</code> || <code>\bitmonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\bitmonzo{-4 & 4 & -1}</math>
| <code>\bitmonzo{-4 & 4 & -1}</code>
| <math>\bitmonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\trimonzo{}</code>
| <code>\trimonzo{{(}}{{)}}</code> || <code>\trimonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\trimonzo{-4 & 4 & -1}</math>
| <code>\trimonzo{-4 & 4 & -1}</code>
| <math>\trimonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\tritmonzo{}</code>
| <code>\tritmonzo{{(}}{{)}}</code> || <code>\tritmonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\tritmonzo{-4 & 4 & -1}</math>
| <code>\tritmonzo{-4 & 4 & -1}</code>
| <math>\tritmonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\quadmonzo{}</code>
| <code>\quadmonzo{{(}}{{)}}</code> || <code>\quadmonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\quadmonzo{-4 & 4 & -1}</math>
| <code>\quadmonzo{-4 & 4 & -1}</code>
| <math>\quadmonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\quadtmonzo{}</code>
| <code>\quadtmonzo{{(}}</code> || <code>\quadtmonzo{{(}}-4 & 4 & -1{{)}}</code> || <math>\quadtmonzo{-4 & 4 & -1}</math>
| <code>\quadtmonzo{-4 & 4 & -1}</code>
| <math>\quadtmonzo{-4 & 4 & -1}</math>
|-
|-
| <code>\val{}</code>
| <code>\val{{(}}{{)}}</code> || <code>\val{{(}}12 & 19 & 28{{)}}</code> || <math>\val{12 & 19 & 28}</math>
| <code>\val{12 & 19 & 28}</code>
| <math>\val{12 & 19 & 28}</math>
|-
|-
| <code>\tval{}</code>
| <code>\tval{{(}}{{)}}</code> || <code>\tval{{(}}12 & 19 & 28{{)}}</code> || <math>\tval{12 & 19 & 28}</math>
| <code>\tval{12 & 19 & 28}</code>
| <math>\tval{12 & 19 & 28}</math>
|-
|-
| <code>\bival{}</code>
| <code>\bival{{(}}{{)}}</code> || <code>\bival{{(}}12 & 19 & 28{{)}}</code> || <math>\bival{12 & 19 & 28}</math>
| <code>\bival{12 & 19 & 28}</code>
| <math>\bival{12 & 19 & 28}</math>
|-
|-
| <code>\bitval{}</code>
| <code>\bitval{{(}}{{)}}</code> || <code>\bitval{{(}}12 & 19 & 28{{)}}</code> || <math>\bitval{12 & 19 & 28}</math>
| <code>\bitval{12 & 19 & 28}</code>
| <math>\bitval{12 & 19 & 28}</math>
|-
|-
| <code>\trival{}</code>
| <code>\trival{{(}}{{)}}</code> || <code>\trival{{(}}12 & 19 & 28{{)}}</code> || <math>\trival{12 & 19 & 28}</math>
| <code>\trival{12 & 19 & 28}</code>
| <math>\trival{12 & 19 & 28}</math>
|-
|-
| <code>\tritval{}</code>
| <code>\tritval{{(}}{{)}}</code> || <code>\tritval{{(}}12 & 19 & 28{{)}}</code> || <math>\tritval{12 & 19 & 28}</math>
| <code>\tritval{12 & 19 & 28}</code>
| <math>\tritval{12 & 19 & 28}</math>
|-
|-
| <code>\quadval{}</code>
| <code>\quadval{{(}}{{)}}</code> || <code>\quadval{{(}}12 & 19 & 28{{)}}</code> || <math>\quadval{12 & 19 & 28}</math>
| <code>\quadval{12 & 19 & 28}</code>
| <math>\quadval{12 & 19 & 28}</math>
|-
|-
| <code>\quadtval{}</code>
| <code>\quadtval{{(}}{{)}}</code> || <code>\quadtval{{(}}12 & 19 & 28{{)}}</code> || <math>\quadtval{12 & 19 & 28}</math>
| <code>\quadtval{12 & 19 & 28}</code>
| <math>\quadtval{12 & 19 & 28}</math>
|-
|-
| <code>\vmproduct{}</code>
| <code>\vmproduct{{(}}{{)}}</code> || <code>\vmproduct{{(}}12 & 19 & 28{{)}}{{(}}-4 & 4 & -1{{)}}</code> || <math>\vmproduct{12 & 19 & 28}{-4 & 4 & -1}</math>
| <code>\vmproduct{12 & 19 & 28}{-4 & 4 & -1}</code>
| <math>\vmproduct{12 & 19 & 28}{-4 & 4 & -1}</math>
|-
|-
| <code>\wmproduct{}</code>
| <code>\wmproduct{{(}}{{)}}</code> || <code>\wmproduct{{(}}12 & 19 & 28{{)}}{{(}}-4 & 4 & -1{{)}}</code> || <math>\wmproduct{12 & 19 & 28}{-4 & 4 & -1}</math>
| <code>\wmproduct{12 & 19 & 28}{-4 & 4 & -1}</code>
| <math>\wmproduct{12 & 19 & 28}{-4 & 4 & -1}</math>
|}
|}

Revision as of 17:46, 20 August 2024

[math]\displaystyle{ \def\hs{\hspace{-3px}} \def\lvsp{{}\mkern-5.5mu}{} \def\rvsp{{}\mkern-2.5mu}{} \def\llangle{\left\langle\lvsp\left\langle} \def\lllangle{\left\langle\lvsp\left\langle\lvsp\left\langle} \def\llllangle{\left\langle\lvsp\left\langle\lvsp\left\langle\lvsp\left\langle} \def\llbrack{\left[\left[} \def\lllbrack{\left[\left[\left[} \def\llllbrack{\left[\left[\left[\left[} \def\llvert{\left\vert\left\vert} \def\lllvert{\left\vert\left\vert\left\vert} \def\llllvert{\left\vert\left\vert\left\vert\left\vert} \def\rrangle{\right\rangle\rvsp\right\rangle} \def\rrrangle{\right\rangle\rvsp\right\rangle\rvsp\right\rangle} \def\rrrrangle{\right\rangle\rvsp\right\rangle\rvsp\right\rangle\rvsp\right\rangle} \def\rrbrack{\right]\right]} \def\rrrbrack{\right]\right]\right]} \def\rrrrbrack{\right]\right]\right]\right]} \def\rrvert{\right\vert\right\vert} \def\rrrvert{\right\vert\right\vert\right\vert} \def\rrrrvert{\right\vert\right\vert\right\vert\right\vert} }[/math][math]\displaystyle{ \def\val#1{\left\langle\begin{matrix}#1\end{matrix}\right]} \def\tval#1{\left\langle\begin{matrix}#1\end{matrix}\right\vert} \def\bival#1{\llangle\begin{matrix}#1\end{matrix}\rrbrack} \def\bitval#1{\llangle\begin{matrix}#1\end{matrix}\rrvert} \def\trival#1{\lllangle\begin{matrix}#1\end{matrix}\rrrbrack} \def\tritval#1{\lllangle\begin{matrix}#1\end{matrix}\rrrvert} \def\quadval#1{\llllangle\begin{matrix}#1\end{matrix}\rrrrbrack} \def\quadtval#1{\llllangle\begin{matrix}#1\end{matrix}\rrrrvert} \def\monzo#1{\left[\begin{matrix}#1\end{matrix}\right\rangle} \def\tmonzo#1{\left\vert\begin{matrix}#1\end{matrix}\right\rangle} \def\bimonzo#1{\llbrack\begin{matrix}#1\end{matrix}\rrangle} \def\bitmonzo#1{\llvert\begin{matrix}#1\end{matrix}\rrangle} \def\trimonzo#1{\lllbrack\begin{matrix}#1\end{matrix}\rrrangle} \def\tritmonzo#1{\lllvert\begin{matrix}#1\end{matrix}\rrrangle} \def\quadmonzo#1{\llllbrack\begin{matrix}#1\end{matrix}\rrrrangle} \def\quadtmonzo#1{\llllvert\begin{matrix}#1\end{matrix}\rrrrangle} \def\rbra#1{\left\{\begin{matrix}#1\end{matrix}\right]} \def\rket#1{\left[\begin{matrix}#1\end{matrix}\right\}} \def\vmp#1#2{\left\langle\begin{matrix}#1\end{matrix}\,\vert\,\begin{matrix}#2\end{matrix}\right\rangle} \def\wmp#1#2{\llangle\begin{matrix}#1\end{matrix}\,\vert\vert\,\begin{matrix}#2\end{matrix}\rrangle} }[/math]

Usage

This template is mainly used to typeset Monzos and vals, but multimonzos and multivals are also supported up to four dimensions.

Pre-defined LaTeX control sequences for interval vectors
Operator Example
You type You get
\monzo{} \monzo{-4 & 4 & -1} [math]\displaystyle{ \monzo{-4 & 4 & -1} }[/math]
\tmonzo{} \tmonzo{-4 & 4 & -1} [math]\displaystyle{ \tmonzo{-4 & 4 & -1} }[/math]
\bimonzo{} \bimonzo{-4 & 4 & -1} [math]\displaystyle{ \bimonzo{-4 & 4 & -1} }[/math]
\bitmonzo{} \bitmonzo{-4 & 4 & -1} [math]\displaystyle{ \bitmonzo{-4 & 4 & -1} }[/math]
\trimonzo{} \trimonzo{-4 & 4 & -1} [math]\displaystyle{ \trimonzo{-4 & 4 & -1} }[/math]
\tritmonzo{} \tritmonzo{-4 & 4 & -1} [math]\displaystyle{ \tritmonzo{-4 & 4 & -1} }[/math]
\quadmonzo{} \quadmonzo{-4 & 4 & -1} [math]\displaystyle{ \quadmonzo{-4 & 4 & -1} }[/math]
\quadtmonzo{ \quadtmonzo{-4 & 4 & -1} [math]\displaystyle{ \quadtmonzo{-4 & 4 & -1} }[/math]
\val{} \val{12 & 19 & 28} [math]\displaystyle{ \val{12 & 19 & 28} }[/math]
\tval{} \tval{12 & 19 & 28} [math]\displaystyle{ \tval{12 & 19 & 28} }[/math]
\bival{} \bival{12 & 19 & 28} [math]\displaystyle{ \bival{12 & 19 & 28} }[/math]
\bitval{} \bitval{12 & 19 & 28} [math]\displaystyle{ \bitval{12 & 19 & 28} }[/math]
\trival{} \trival{12 & 19 & 28} [math]\displaystyle{ \trival{12 & 19 & 28} }[/math]
\tritval{} \tritval{12 & 19 & 28} [math]\displaystyle{ \tritval{12 & 19 & 28} }[/math]
\quadval{} \quadval{12 & 19 & 28} [math]\displaystyle{ \quadval{12 & 19 & 28} }[/math]
\quadtval{} \quadtval{12 & 19 & 28} [math]\displaystyle{ \quadtval{12 & 19 & 28} }[/math]
\vmproduct{} \vmproduct{12 & 19 & 28}{-4 & 4 & -1} [math]\displaystyle{ \vmproduct{12 & 19 & 28}{-4 & 4 & -1} }[/math]
\wmproduct{} \wmproduct{12 & 19 & 28}{-4 & 4 & -1} [math]\displaystyle{ \wmproduct{12 & 19 & 28}{-4 & 4 & -1} }[/math]