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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Manual for the package delimseasy1.01.sty
%
% Revison history (Manual):
% 2016/02/01
% added \thanks line for copyright notice
% added \valentine and \diamondsgbf
% added \L..., \R..., \BL..., \BR... as one-sided
% commands
% Revised \S3 to reflect addition of \llgg and
% \valentine commands.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{amsart}
\usepackage{verbatim}
\usepackage{delimseasy2.0}
%
\setcounter{tocdepth}{3}
\title[delimseasy]{Package delimseasy}
\author[Graham]{Colin C. Graham}
\address{PO Box 2031\\Haines Junction YT Canada Y0B 1L0\\\texttt{
ccgraham@alum.mit.edu}\hfill\break
\thanks{This material is subject to the LaTeX Project Public License 1.3. See
http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the
details of that license.}}
% Encapsulated \thanks in \address so the list of delimiters appears on page 1.
%
%
\begin{document}
\begin{abstract} Provides commands to give consistent, easy-to-remember, way to edit and control the size and blackness
of delimiters: append 1-4 ``b''s to command for larger sizes; prepend ``B'' for boldface; prepend ``D'' for the
\LaTeX\ default. These commands reduce the likelihood
of incomplete delimeter pairs and typically use fewer characters than the \LaTeX\ default.
\end{abstract}
\maketitle
\centerline{\texttt{ccgraham@alum.mit.edu}}
\centerline{Version 2.0 -- 2016 February 1}
{\smaller
\tableofcontents}
\vspace{-.75in}
\section{Installation and the basic delimiters}
Put \texttt{delimseasy.sty} in a convenient folder and
add
\texttt{$\backslash$usepackage\{delimseasy\}}
to your preamble. If \LaTeX \ can't find the \texttt{sty} file,
move it to the folder of your \texttt{tex} file
or add a \texttt{PATH} to the \texttt{$\backslash$usepackage} parameter, so you have (for example)
\newline
\texttt{$\backslash$usepackage\{C:/user/YOU/Documents/WHEREYOUPUTIT/delimseasy\}}.
%\medskip
Here are the basic commands:
\begin{equation*}
\begin{matrix}
\text{The command}& \quad\text{ typesets as }&\quad \text{common name}\\
\backslash\texttt{prn\{$\backslash$\#\}} &\texttt{(\#1)} &\text{round parens}\\
\backslash\texttt{sqpr\{$\backslash$\#\}} &\texttt{[\#1]} &\text{square braces}\\
\backslash\texttt{crl\{$\backslash$\#\}} &\{\texttt{\#1} \} &\text{curly braces}\\
\backslash\texttt{ceil\{$\backslash$\#\}} &\backslash\texttt{lceil \#1} \backslash\texttt{rceil}&\text{ceiling}\\
\backslash\texttt{flr\{$\backslash$\#\}} &\backslash\texttt{lfloor \#1}\backslash\texttt{rfloor}&\text{floor}\\
\backslash\texttt{ngl\{$\backslash$\#\}} &\backslash\texttt{langle \#1}\backslash\texttt{rangle}&\text{langle/rangle}\\
\backslash\texttt{abs\{$\backslash$\#\}} &\backslash\texttt{vert \#1} \backslash\texttt{vert} &\text{absolute value}\\
\backslash\texttt{nrm\{$\backslash$\#\}} &\backslash\texttt{Vert \#1} \backslash\texttt{Vert} &\text{norm}\\
\backslash\texttt{stgt\{$\backslash$\#\}} &\stgt{\texttt{\#1}}& \text{lessthan greaterthan}
\end{matrix}
\end{equation*}
\subsection{Adding ``b''s to change the size; ``D''s to use \LaTeX\ default}
Add one to four ``b''s to the end of a command; each ``b'' raises size by one step. Example:
\texttt{$\backslash$prnb$\{x\widehat\ 2-1\}$} gives $\prnb{x^2-1}$.
Save typing by prepending ``D'' to the start of a
command to use the \texttt{$\backslash$left$\dots\backslash$right}
default sizing provided by \LaTeX.
Example: \texttt{$\backslash$Dprn$\{x\widehat\ 2-1\}$} gives
$\Dprn{x^2-1}$ while \texttt{$\backslash$Dprn$\{x-1\}$} gives $\Dprn{x-1}$.
\subsection{Adding ``L'' or ``R'' for one-sided delimiters}
Prepend upper or lowercase ``L'' or upper or lowercase
``R'' to the front of the command (after the backslash) for the single
sided (\textbf{L}eft or \textbf{R}ight).
These commands take no parameter. Example: \texttt{$\backslash$Lprnb}
gives $\Lprnb$.
There are no one-sided versions of the \texttt{$\backslash$D...} commands.
\subsection{Prepending a ``B'' for boldface}
Prepend a capital ``B'' to the front of the command for
boldface (poor man's bold); if
the command is already a left or right, the ``B'' must
preceed the ``L'' or ``R''. Needs a parameter if the
non-bolded command does. Example: \texttt{$\backslash$Blprnb} gives $\Blprnb$.
This is not available for the $\backslash$\texttt{D\dots} commands.
\subsection{Ampersands (\&) not allowed inside paired delimeters}
Paired delimiters cause an error if the alignment
ampersand \& is used between them.
There may be other formatting characters which break
paired delimeters; please let me know if you
encounter any.
\textit{Workarounds}:
\begin{enumerate}
\item Rewrite. If you don't like the looks of
\begin{align*}
\int \text{A very very very very long expression }&\le \text{ a shorter one}\\
&\le\text{ another short one}\\
&=\text{the final expression}
\end{align*}
perhaps you can break up the computations into
smaller pieces so that you end with something like,
`` putting (3.12)-(3.36) together we see that
\[
\int \text{A very very very very long
expression }\le \text{the final expression}.\text{''}
\]
\item Use one-sided versions.
\item Use $\backslash$\texttt{phantom}. For example,
\begin{verbatim}
&\int \text{A very very very very long expression }
\le \text{ a shorter one}\\
&\phantom{\int \text{A very }}\le\text{the final expression}
\end{verbatim}
\vspace{-10pt}
gives
\begin{align*}
&\int \text{A very very very very long expression }
\le \text{ a shorter one}\\
&\phantom{\int \text{A very }}\le\text{the final expression}
\end{align*}
\end{enumerate}
\section{Examples}
\begin{enumerate}
\item Here are two versions of the same displays.
The first pair uses $\backslash$\texttt{left $\backslash$right} (implemented through $\backslash$\texttt{Dsqpr}
and $\backslash$\texttt{Dabs}); the
second $\backslash$\texttt{sqprbbb} and $\backslash$\texttt{absbbb...}.
I prefer the second pair for being using less vertical space and being more easily resizable than the first.
\[
\left[ \sum_n\frac{x_n}{y_n}\right]^{1/2}
\quad \Dabs{\int_a^b\prnbb{\frac{x+1}{x^2+5}}^p dx}^{1/p}
\]
\[
\sqprbb{\sum_n\frac{x_n}{y_n}}^{1/2}\quad
\absbbb{\int_a^b\prnbb{\frac{x+1}{x^2+5}}^p dx}^{1/p}
\]
\item Bold vs. default:
\[
\Bprnbb{\frac x{x^2+1}} \quad \prnbb{\frac x{x^2+1}} \quad
\Bcrlbb{\frac x{x^2+1}} \quad \crlbb{\frac x{x^2+1}}
\]
\end{enumerate}
The \texttt{tex} source for this PDF contains more examples, commented out.
\section{Further comments}
\subsection{An alternate package, \textit{delim}}
The package \textit{delim} by Stefan Majewsky
does things this one does
and may be preferred by many \LaTeX\ users.
\subsection{Bionomial coefficients and reversed delimiters}
Binomial coefficients often display with overly large parens. Versions under your control
are supplied.
At one time one saw open intervals expressed as
\[
\nrp{a,b} \quad\text{ or }\quad \rpqs{c,d}.
\]
This package provides paired delimeters at the 5 sizes,
with and without bold face, for those two
situations.
\begin{equation*}
\begin{matrix}
\text{The command}& \quad\text{ typesets as }&\quad \text{common name}&\quad \text{Sizes/BF version}\\
\texttt{$\backslash$bnom$\{\#1\}\{\#2\}$}&\bnom{\#1}{\#2}&\text{binomial coefficient}&5/yes\\\\
\texttt{$\backslash$bnomsq$\{\#1\}\{\#2\}$}&\bnomsq{\#1}{\#2}&\text{binomial coefficient}&5/yes\\\\
\texttt{$\backslash$bnomcrl$\{\#1\}\{\#2\}$}&\bnomcrl{\#1}{\#2}&\text{binomial coefficient}&5/yes\\\\
\texttt{$\backslash$bnomngl$\{\#1\}\{\#2\}$}&\bnomngl{\#1}{\#2}&\text{binomial coefficient}&5/yes
\\
\texttt{$\backslash$nrp\{$\backslash$\#1\}} &\nrp{\texttt{\#1}}& \text{reversed parens}&5/yes\\
\texttt{$\backslash$rpqs\{$\backslash$\#1\}} & \rpqs{\texttt{\#1}}&\text{reversed square braces}&5/yes
\end{matrix}
\end{equation*}
\subsection{More delimiters, including 2 for Valentine's Day}
\begin{equation*}
\begin{matrix}
\text{The command}& \quad\text{ typesets as }&\quad \text{common name}&\quad \text{Sizes/BF version}
\\
\backslash\texttt{stgt\{$\backslash$\#1\}} &\texttt{< \#1>} & \text{lessthan greaterthan}&5/yes\\
\backslash\texttt{llgg\{$\backslash$\#1\}} &\texttt{$\ll$\#1$\gg$}&\text{muchless muchmore}&5/yes\\
\backslash\texttt{valentine\{$\backslash$\#1\}}&\valentine{\texttt{\#1}} &\text{surrounded by love}&1/no\\
\backslash\texttt{diamondsgbf\{$\backslash$\#1\}}&\diamondsgbf{\texttt{\#1}}& \text{buried in diamonds}&1/no
\end{matrix}
\end{equation*}
To make your own delimiter pairs, just adapt the models in the
\texttt{sty} file.
Note that the $\backslash$\texttt{B}... versions use
$\backslash$\texttt{pmb} (poor man's bold)
throughout because $\backslash$\texttt{boldsymbol}
does not work for all delimiters, while $\backslash$\texttt{pmb}
does. Some ``delimiters'' may not have
$\backslash$\texttt{big}(ger) versions so you will have to improvise, as here for
$\ll\dots\gg$.
The larger versions of $\ll\dots\gg$ do not look great; they merely illustrate what can be naively
achieved.
The two Valentine delimiters must be in Math mode. If your beloved's name has spaces,
you will need to protect
the space(s) by preceding each one with
a $\backslash$\texttt{backslash} since
Math mode ignores unprotected spaces. The Valentines commands can be nested at least once:
\[
\valentine{\ \diamondsgbf{\ Kim\ }\ }\qquad {\diamondsgbf{\ \valentine{Leslie}\ }}
\qquad\valentine{\valentine{\valentine{\ \valentine{ Deniz }\ }}}.
\]
Adjusting the space in the various pairs with $\backslash{\ }$'s may improve the look.
\subsection{Easy to remember sizers}
\texttt{delimseasy} includes
versions of \LaTeX's
built-ins:
\[\begin{matrix}
\text{New}&\text{\LaTeX\ built-in}\\
&\texttt{$\backslash$big}\\
\backslash\texttt{bigb} &\texttt{$\backslash$Big}\\
\backslash\texttt{bigbb} &\texttt{$\backslash$bigg}\\
\backslash\texttt{bigbbb}&\texttt{$\backslash$Bigg}
\end{matrix}\]
\subsection{Revision history}
2016/02/01. Added capital ``L'' and capital ``R'' option for
single sided. Removed manual's references to ``l'' and ``r'' versions though
they remain implemented for backward compatibility.
Added ``D'' versions for those who prefer \LaTeX's choice for sizing.
Added new delimiters: $\bnom{p+q}{q}$, $\llgg{\dots}$, $\valentine{\dots}$ and $\diamondsgbf{\dots}$.
Added this subsection and information about the new delimiters.
Many minor stylistic changes to manual.
\begin{comment}% testing, testing.........
reverse parens
\begin{align*}
\nrp{
\nrpb{
\nrpbb{
\nrpbbb{
\nrpbbbb{w}}}}}
%%%%%%%%%%%%%
% reverse bold paired square braces
\rpqs{
\rpqsb{
\rpqsbb{
\rpqsbbb{
\rpqsbbbb{z}}}}}
%
\end{align*}
%
stgt's
\begin{align*}
&
\rstgt
\rstgtbb
\rstgtbbb
\rstgtbbbb
%%
\Brstgt
\Brstgtb
\Brstgtbb
\Brstgtbbb
\Brstgtbbbb\\
& \stgt{\stgtb{\stgtbb{\stgtbbb{\stgtbbbb{w}}}}}\\
&\Bstgt{\Bstgtb{\Bstgtbb{\Bstgtbbb{\Bstgtbbbb{w}}}}}\\
&
\lstgt
\lstgtb
\lstgtbb
\lstgtbbb
\lstgtbbbb
%%
\Blstgt
\Blstgtb
\Blstgtbb
\Blstgtbbb
\Blstgtbbbb
\end{align*}
parens, etc:
\begin{align*}
\Bprn{\Bprnb{\Bprnbb{\Bprnbb{\Bprnbbb{\Bprnbbb{}}}}}}&\quad\
\end{align*}\begin{align*}
\Bsqpr{\Bsqprb{\Bsqprbb{\Bsqprbbb{\Bsqprbbbb{x}}}}}\\
\end{align*}\begin{align*}
\Bcrl{\Bcrlb{\Bcrlbb{\Bcrlbbb{\Bcrlbbbb{z}}}}}
\end{align*}\begin{align*}
&\quad
\Bflr{\Bflrb{\Bflrbb{\Bflrbbb{\Bflrbbb{47}}}}}\\
\Bceil{\Bceilb{\Bceilbb{\Bceilbbb{\Bceilbbbb{2}}}}}&\quad\Bnglbbbb{\Bnglbbb{\Bnglbb{\Bnglb{\Bngl{x|y}}}}}\\
\end{align*}
\begin{align*}
\Babsbbbb{\Babsbbb{\Babsbb{\Babsb{\Babs{f}}}}}&\quad \Bnrmbbbb{\Bnrmbbb{\Bnrmbb{\Bnrmb{\Bnrm{z}}}}}\\
%\cardbbbb{\cardbbb{\cardbb{\cardb{\card{x}}}}}\\
\Blprn{\Blprnb{\Blprnbb{\Blprnbb{\Blprnbbb{\Blprnbbb{x}}}}}}&\quad \Blsqpr{\Blsqprb{\Blsqprbb{\Blsqprbbb{\Blsqprbbbb{}}}}}\\
\Blcrl{\Blcrlb{\Blcrlbb{\Blcrlbbb{\Blcrlbbbb{}}}}}&\quad
\Blflr{\Blflrb{\Blflrbb{\Blflrbbb{\Blflrbbb{}}}}}\\
\end{align*}
\begin{align*}
\Blceil{\Blceilb{\Blceilbb{\Blceilbbb{\Blceilbbbb{}}}}}
&\quad\Blnglbbbb{\Blnglbbb{\Blnglbb{\Blnglb{\Blngl{x|y}}}}}\\
\end{align*}
\begin{align*}
\Blabsbbbb{\Blabsbbb{\Blabsbb{\Blabsb{\Blabs{}}}}}
&\quad \Blnrmbbbb{\Blnrmbbb{\Blnrmbb{\Blnrmb{\Blnrm{}}}}}\\
\Brprn \Brprnb \Brprnbb \Brprnbb\Brprnbbb\Brprnbbb&\quad\ \Brsqpr{\Brsqprb{\Brsqprbb{\Brsqprbbb{\Brsqprbbbb{}}}}}\\
\Brcrl{\Brcrlb{\Brcrlbb{\Brcrlbbb{\Brcrlbbbb{}}}}}&\quad
\Brflr{\Brflrb{\Brflrbb{\Brflrbbb{\Brflrbbb{}}}}}\\
\Brceil{\Brceilb{\Brceilbb{\Brceilbbb{\Brceilbbbb{}}}}}
&\quad\Brnglbbbb{\Brnglbbb{\Brnglbb{\Brnglb{\Brngl{}}}}}\\
\Brabsbbbb{\Brabsbbb{\Brabsbb{\Brabsb{\Brabs{}}}}}
&\quad \Brnrmbbbb{\Brnrmbbb{\Brnrmbb{\Brnrmb{\Brnrm{}}}}}
\\
&\llgg{\llggb{\llggbb{X}}}%\llggbbb{\llggbbbb{X}}}}}\\
&\Bllgg{\Bllggb{\Bllggbb{\Bllggbbb{\Bllggbbbb{X}}}}}
\end{align*}
\[
\bnom{{x+y}}{x}\quad\bnomb{x+y}{x}\quad\bnombb{x+y}{x}\quad\bnombbb{x+y}{x}\quad\bnombbbb{x+y}{x}
\]
\[
\Bbnom{{x+y}}{x}\quad\Bbnomb{x+y}{x}\quad\Bbnombb{x+y}{x}\quad\Bbnombbb{x+y}{x}\quad\Bbnombbbb{x+y}{x}
\]
\[
\bnomsq{{x+y}}{x}\quad\bnomsqb{x+y}{x}\quad\bnomsqbb{x+y}{x}\quad\bnomsqbbb{x+y}{x}\quad\bnomsqbbbb{x+y}{x}
\]
\[
\Bbnomsq{{x+y}}{x}\quad\Bbnomsqb{x+y}{x}\quad\Bbnomsqbb{x+y}{x}\quad\Bbnomsqbbb{x+y}{x}\quad\Bbnomsqbbbb{x+y}{x}
\]
\[
\bnomcrl{{x+y}}{x}\quad\bnomcrlb{x+y}{x}\quad\bnomcrlbb{x+y}{x}\quad\bnomcrlbbb{x+y}{x}\quad\bnomcrlbbbb{x+y}{x}
\]
\[
\Bbnomcrl{{x+y}}{x}\quad\Bbnomcrlb{x+y}{x}\quad\Bbnomcrlbb{x+y}{x}\quad\Bbnomcrlbbb{x+y}{x}\quad\Bbnomcrlbbbb{x+y}{x}
\]
\[
\bnomngl{{x+y}}{x}\quad\bnomnglb{x+y}{x}\quad\bnomnglbb{x+y}{x}\quad\bnomnglbbb{x+y}{x}\quad\bnomnglbbbb{x+y}{x}
\]
\[
\Bbnomngl{{x+y}}{x}\quad\Bbnomnglb{x+y}{x}\quad\Bbnomnglbb{x+y}{x}\quad\Bbnomnglbbb{x+y}{x}\quad\Bbnomnglbbbb{x+y}{x}
\]
\\[
\Dprn{\int}\quad\Dsqpr{\int}\quad\Dcrl{\int}\quad\Dngl{\int}
\]
\[
\Dceil{3}\quad\Dflr{pp}\quad\Dabs{\int}\quad\Dnrm{\int}\quad\Dstgt{kk}
\]
\end{comment} %end of testing
\end{document}
|