Template:LaTeX mapping operators: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Use predefined character template |
||
| Line 1: | Line 1: | ||
<span style="display: none;" | <span style="display: none;"> | ||
{{texchars}} | |||
<math> | |||
\def\val#1{\left\langle\begin{matrix}#1\end{matrix}\right]} | \def\val#1{\left\langle\begin{matrix}#1\end{matrix}\right]} | ||
\def\tval#1{\left\langle\begin{matrix}#1\end{matrix}\right\vert} | \def\tval#1{\left\langle\begin{matrix}#1\end{matrix}\right\vert} | ||
\def\bival#1{\ | \def\bival#1{\llangle\begin{matrix}#1\end{matrix}\right]\right]} | ||
\def\bitval#1{\ | \def\bitval#1{\llangle\begin{matrix}#1\end{matrix}\rrvert} | ||
\def\trival#1{\ | \def\trival#1{\lllangle\begin{matrix}#1\end{matrix}\right]\right]\right]} | ||
\def\tritval#1{\ | \def\tritval#1{\lllangle\begin{matrix}#1\end{matrix}\rrrvert} | ||
\def\quadval#1{\ | \def\quadval#1{\llllangle\begin{matrix}#1\end{matrix}\right]\right]\right]\right]} | ||
\def\quadtval#1{\ | \def\quadtval#1{\llllangle\begin{matrix}#1\end{matrix}\rrrrvert} | ||
\def\monzo#1{\left[\begin{matrix}#1\end{matrix}\right\rangle\vsp} | \def\monzo#1{\left[\begin{matrix}#1\end{matrix}\right\rangle\vsp} | ||
\def\tmonzo#1{\left\vert\begin{matrix}#1\end{matrix}\right\rangle\vsp} | \def\tmonzo#1{\left\vert\begin{matrix}#1\end{matrix}\right\rangle\vsp} | ||
\def\bimonzo#1{\left[\left[\begin{matrix}#1\end{matrix}\ | \def\bimonzo#1{\left[\left[\begin{matrix}#1\end{matrix}\rrangle} | ||
\def\bitmonzo#1{\ | \def\bitmonzo#1{\llvert\begin{matrix}#1\end{matrix}\rrangle} | ||
\def\trimonzo#1{\left[\left[\left[\begin{matrix}#1\end{matrix}\ | \def\trimonzo#1{\left[\left[\left[\begin{matrix}#1\end{matrix}\rrrangle} | ||
\def\tritmonzo#1{\ | \def\tritmonzo#1{\lllvert\begin{matrix}#1\end{matrix}\rrrangle} | ||
\def\quadmonzo#1{\left[\left[\left[\left[\begin{matrix}#1\end{matrix}\ | \def\quadmonzo#1{\left[\left[\left[\left[\begin{matrix}#1\end{matrix}\rrrrangle} | ||
\def\quadtmonzo#1{\ | \def\quadtmonzo#1{\llllvert\begin{matrix}#1\end{matrix}\rrrrangle} | ||
\def\rket#1{\left[{#1}\right\}} | \def\rket#1{\left[{#1}\right\}} | ||
\def\vmp#1#2{\left\langle\begin{matrix}#1\end{matrix}\,\vert\,\begin{matrix}#2\end{matrix}\right\rangle\vsp} | \def\vmp#1#2{\left\langle\begin{matrix}#1\end{matrix}\,\vert\,\begin{matrix}#2\end{matrix}\right\rangle\vsp} | ||
\def\wmp#1#2{\ | \def\wmp#1#2{\llangle\begin{matrix}#1\end{matrix}\,\vert\vert\,\begin{matrix}#2\end{matrix}\rrangle} | ||
</math></span><noinclude> | </math> | ||
</span><noinclude> | |||
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. | 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. | ||
Revision as of 14:14, 30 September 2024
This template allows LaTeX representations of monzos, vals, and monzo–val products by defining the operators in advance to avoid the need to manually enter brackets.
Note: You can use {{texmap}} as a shortcut.
This template allows LaTeX representations of monzos, vals, and monzo–val products by defining the operators in advance to avoid the need to manually enter brackets.
Usage
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.