summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/delimset/dlmssamp.tex
blob: 66b6360aabc0ea242733f5298f0b91133abd4387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
%%
%% This is file `dlmssamp.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% delimset.dtx  (with options: `sample')
%% 
%% Copyright (C) 2016 Niklas Beisert
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesFile{dlmssamp.tex}[2016/11/01 v1.0 sample for delimset]
\documentclass[12pt]{article}

\usepackage[margin=2cm]{geometry}
\usepackage{amsmath,amsfonts}
\usepackage{delimset}

\begin{document}

sizes for default brackets:
\[
\brk0{x},\quad
\brk1{x},\quad
\brk2{x},\quad
\brk3{x},\quad
\brk4{x}
\]

styles for default brackets:
\[
\brk[r]{x},\quad
\brk[s]{x},\quad
\brk[c]{x},\quad
\brk[a]{x}
\]

nested brackets:
\[
\brk[c]2{\brk[s]!{\brk{ax+b}x+c}x+d}
\]

default absolute value, norm and default evaluations:
\[
\abs*{\frac{ax+b}{cx+d}},\qquad
\norm*{\frac{ax+b}{cx+d}},\qquad
\eval*{\frac{ax+b}{cx+d}}_{x=0},\qquad
\eval[s]*{\frac{ax+b}{cx+d}}_{x=0}^{x=\infty},\qquad
\]

outer delimiter spacing:
\begin{align*}
&\square\brk0{x}\square,&&\square\brk1{A^k}\square,
\\
&\square\brk*{x}\square,&&\square\brk*{A^k}\square,
\end{align*}

delimiter sizes in exponents:
\[
e^{\brk{ax+b}},\qquad
e^{\brk!{ax+b}}
\]

delimiter declaration:
\DeclareMathDelimiterSet{\braket}[2]
  {\selectdelim[l]<#1\selectdelim|#2\selectdelim[r]>}
\[
\braket!{\psi}{\psi}
\]

delimiter usage:
\[
\delimpair<|>!{\psi}{\psi}
\]

conditional set, alternative layouts:
\[
\delimpair\{{[m]|}\}!{2n}{n\in\mathbb{Z}},
\qquad
\delimpair\{{[b]|}\}!{2n}{n\in\mathbb{Z}},
\qquad
\delimpair\{{[p]|}\}!{2n}{n\in\mathbb{Z}},
\qquad
\delimpair\{|\}!{2n}{n\in\mathbb{Z}},
\qquad
\delimpair\{{[.];}\}!{2n}{n\in\mathbb{Z}},
\]

delimiter definition:
\newcommand{\comm}{\delimpair[{[.],}]}
\[
\comm!{\comm{A}{B}}{C}
+\comm!{\comm{B}{C}}{A}
+\comm!{\comm{C}{A}}{B}
=0
\]

alternative representation:
\renewcommand{\comm}{\delimpair[{[.];}]}
\[
\comm!{\comm{A}{B}}{C}
+\comm!{\comm{B}{C}}{A}
+\comm!{\comm{C}{A}}{B}
=0
\]

\end{document}
\endinput
%%
%% End of file `dlmssamp.tex'.