Template:LaTeX preset characters/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
Dave Keenan (talk | contribs)
Usage: Updated to refer to \lvsp and \rvsp instead of \vsp, as per recent changes to the multiple angle bracket templates
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{dochead}}<span style="display: none;">{{{{ROOTPAGENAME}} }}</span>
{{dochead}}{{{{ROOTPAGENAME}} }}
This template defines pre-defined character sequences for brackets, in order to make typesetting of operators such as [[Monzo]]s and [[Val]]s in LaTeX easier.
 
=== Usage ===
=== Usage ===
This template is used to pre-define bracket sequences for typesetting [[Monzo]]s and [[Val]]s.
{{Shortcut|texchars}}
{| class="wikitable"
{| class="wikitable"
|+ style="font-size: 105%; white-space: nowrap;" | Pre-defined LaTeX character sequences
|+ style="font-size: 105%;" | Pre-defined LaTeX character sequences
|-
|-
! You type !! You get
! You type !! You get !! Rendered
|-
|-
| <code>\llangle</code> || <math>\llangle\right.\right.</math>
| <code>\llangle</code> || <code>\left\langle\lvsp\left\langle</code> || <math>\llangle\right.\right.</math>
|-
|-
| <code>\lllangle</code> || <math>\lllangle\right.\right.\right.</math>
| <code>\lllangle</code> || <code>\left\langle\lvsp\left\langle\lvsp\left\langle</code> || <math>\lllangle\right.\right.\right.</math>
|-
|-
| <code>\llllangle</code> || <math>\llllangle\right.\right.\right.\right.</math>
| <code>\llllangle</code> || <code>\left\langle\lvsp\left\langle\lvsp\left\langle\lvsp\left\langle</code> || <math>\llllangle\right.\right.\right.\right.</math>
|-
|-
| <code>\llbrack</code> || <math>\llbrack\right.\right.</math>
| <code>\llbrack</code> || <code>\left[\left[</code> || <math>\llbrack\right.\right.</math>
|-
|-
| <code>\lllbrack</code> || <math>\lllbrack\right.\right.\right.</math>
| <code>\lllbrack</code> || <code>\left[\left[\left[</code> || <math>\lllbrack\right.\right.\right.</math>
|-
|-
| <code>\llllbrack</code> || <math>\llllbrack\right.\right.\right.\right.</math>
| <code>\llllbrack</code> || <code>\left[\left[\left[\left[</code> || <math>\llllbrack\right.\right.\right.\right.</math>
|-
|-
| <code>\llvert</code> || <math>\llvert\right.\right.</math>
| <code>\llvert</code> || <code>\left\vert\left\vert</code> || <math>\llvert\right.\right.</math>
|-
|-
| <code>\lllvert</code> || <math>\lllvert\right.\right.\right.</math>
| <code>\lllvert</code> || <code>\left\vert\left\vert\left\vert</code> || <math>\lllvert\right.\right.\right.</math>
|-
|-
| <code>\llllvert</code> || <math>\llllvert\right.\right.\right.\right.</math>
| <code>\llllvert</code> || <code>\left\vert\left\vert\left\vert\left\vert</code> || <math>\llllvert\right.\right.\right.\right.</math>
|-
|-
| <code>\rrangle</code> || <math>\left.\left.\rrangle</math>
| <code>\rrangle</code> || <code>\right\rangle\rvsp\right\rangle</code> || <math>\left.\left.\rrangle</math>
|-
|-
| <code>\rrrangle</code> || <math>\left.\left.\left.\rrrangle</math>
| <code>\rrrangle</code> || <code>\right\rangle\rvsp\right\rangle\rvsp\right\rangle</code> || <math>\left.\left.\left.\rrrangle</math>
|-
|-
| <code>\rrrrangle</code> || <math>\left.\left.\left.\left.\rrrrangle</math>
| <code>\rrrrangle</code> || <code>\right\rangle\rvsp\right\rangle\rvsp\right\rangle\rvsp\right\rangle</code> || <math>\left.\left.\left.\left.\rrrrangle</math>
|-
|-
| <code>\rrbrack</code> || <math>\left.\left.\rrbrack</math>
| <code>\rrbrack</code> || <code>\right]\right]</code> || <math>\left.\left.\rrbrack</math>
|-
|-
| <code>\rrrbrack</code> || <math>\left.\left.\left.\rrrbrack</math>
| <code>\rrrbrack</code> || <code>\right]\right]\right]</code> || <math>\left.\left.\left.\rrrbrack</math>
|-
|-
| <code>\rrrrbrack</code> || <math>\left.\left.\left.\left.\rrrrbrack</math>
| <code>\rrrrbrack</code> || <code>\right]\right]\right]\right]</code> || <math>\left.\left.\left.\left.\rrrrbrack</math>
|}
|}
Here, <code>\lvsp</code> and <code>\rvsp</code> are used to adjust the spacing between angle brackets.
=== See also ===
* [[:Template:LaTeX operators]]
* [[:Template:LaTeX mapping operators]]