%%
%% This is file `dlmssamp.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% delimset.dtx  (with options: `sample')
%% 
%% Copyright (C) 2016-2018 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}[2018/12/30 v1.1 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}
\]

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},
\quad
\braket*{\psi}{\psi\big.}
\]

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}}
\]
conditional set, alternative layouts with variable size:
\[
\delimpair\{{[m]|}\}*{2n}{n\in\mathbb{Z}\big.},
\qquad
\delimpair\{{[b]|}\}*{2n}{n\in\mathbb{Z}\big.},
\qquad
\delimpair\{{[p]|}\}*{2n}{n\in\mathbb{Z}\big.},
\qquad
\delimpair\{|\}*{2n}{n\in\mathbb{Z}\big.},
\qquad
\delimpair\{{[.];}\}*{2n}{n\in\mathbb{Z}\big.}
\]

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'.
