Debian Codegraph @

texmf-dist/doc/latex/halloweenmath/halloweenmath-man.tex

raw
1 \documentclass[a4paper]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage{amsmath,amsfonts}
4 \usepackage{halloweenmath}[2019/11/01]
5 \usepackage{array}
6 \usepackage[bookmarksnumbered]{hyperref}
7
8 \title{User's manual\\for the \halloweenmath\ package}
9 \author{G. Mezzetti}
10 \date{November~1, 2019}
11
12 \hypersetup{
13 pdftitle = {User's manual for the halloweenmath package},
14 pdfauthor = {G. Mezzetti},
15 pdfsubject = {The halloweenmath LaTeX package},
16 pdfkeywords = {TeX,LaTeX,Halloween,math,math symbold},
17 pdfcreationdate = {D:20191101120000},
18 pdfmoddate = {D:20191101120000}
19 }
20
21 \DeclareTextFontCommand{\packlass}{\normalfont\sffamily}
22 \DeclareTextFontCommand{\opt} {\normalfont\ttfamily}
23 \newcommand*{\meta}[1]{{\normalfont \(\langle\textit{#1}\rangle\)}}
24 \newcommand*{\halloweenmath}{\packlass{halloweenmath}}
25 \newcommand*{\amsmath} {\packlass{amsmath}}
26
27 \newcommand*{\sumxn}{x_{1}+\dots+x_{n}}
28
29 \makeatletter
30
31 \newcolumntype{H}[3]{>{\hb@xt@ #3\bgroup#1}c<{#2\egroup}}
32 \newcolumntype{U}[2]{H{\hss$#1}{$\hss}{#2}@{\hspace{.5em}}}
33 \newcolumntype{V}[1]{H{\ttfamily}{\hss}{#1}}
34 \newcolumntype{Q}[1]{H{}{\hss}{#1}}
35 \newcolumntype{O}{U{}{15\p@}}
36 \newcolumntype{D}{U{\displaystyle}{30\p@}}
37 \newcolumntype{L}{OD}
38 \newcolumntype{A}{U{}{40\p@}}
39
40 \newenvironment*{@symtable}[2]{\par
41 \centering
42 \addtolength\leftskip {-80\p@}%
43 \addtolength\rightskip{-80\p@}%
44 \setlength\arraycolsep{.5em}%
45 \tabular{@{}*{#2}{#1}@{}}%
46 }{%
47 \endtabular
48 \par
49 }
50 \newenvironment{symtable}[1][\thr@@]{%
51 \@symtable{OV{90\p@}}{#1}%
52 }{%
53 \end@symtable
54 }
55 \newenvironment{opsymtable}[1][\tw@]{%
56 \def\arraystretch{\tw@}%
57 \@symtable{LV{120\p@}}{#1}%
58 }{%
59 \end@symtable
60 }
61 \newenvironment{xasymtable}[1][\tw@]{%
62 \def\arraystretch{\tw@}%
63 \@symtable{AQ{200\p@}}{#1}%
64 }{%
65 \end@symtable
66 }
67 \newcommand*\Sym[1] {#1&\string#1}
68 \newcommand*\OpSym[1]{#1&#1&\string#1}
69
70 \makeatother
71
72
73
74 \begin{document}
75
76 \maketitle
77
78 \tableofcontents
79 \listoftables
80
81
82
83 \clearpage
84
85 \section{Package loading}
86 \label{S:Loading}
87
88 Load the \halloweenmath\ package as any other \LaTeXe\ package, that is, via the
89 usual \verb|\usepackage| declaration:
90 \begin{verbatim}
91 \usepackage{halloweenmath}
92 \end{verbatim}
93 Note that the \halloweenmath\ package requires the \amsmath\ package, and loads
94 it (without specifying any option) if it is not already loaded. If you want to
95 pass options to \amsmath, load it before \halloweenmath.
96
97 The \halloweenmath\ package defines no options by itself; nevertheless, it does
98 honor the [\opt{no}]\opt{sumlimits} options from the \amsmath\ package.
99
100
101
102 \section{Package usage}
103 \label{S:Usage}
104
105 The \halloweenmath\ package defines a handful of commands, all of which are
106 intended for use \emph{in mathematical mode}, where they yield some kind of
107 symbol that draws from the classic Halloween-related iconography (pumpkins,
108 witches, ghosts, bats, and so on). Below, these symbols are grouped according
109 to their mathematical ``r\^{o}le'' (ordinary symbols, binary operators,
110 arrows\ldots).
111
112
113
114 \subsection{Ordinary symbols}
115 \label{sS:Ordinary}
116
117 Table~\ref{tab:ordinary} lists the ordinary symbols provided by the
118 \halloweenmath\ package.
119
120 \begin{table}[t!p]
121 \centering
122 \begin{symtable}\relax
123 \Sym{\mathleftghost} & \Sym{\mathghost} & \Sym{\mathrightghost} \\
124 \Sym{\mathleftbat} & \Sym{\mathbat} & \Sym{\mathrightbat} \\
125 \end{symtable}
126 \caption{Ordinary symbols}
127 \label{tab:ordinary}
128 \end{table}
129
130
131
132 \subsection{Binary operators}
133 \label{sS:Binary}
134
135 Table~\ref{tab:binary} lists the binary operators available. Note that each
136 binary operator has an associated ``large'' operator (see
137 subsection~\ref{sS:Large}).
138
139 \begin{table}[t!p]
140 \centering
141 \begin{symtable}[2]
142 \Sym{\pumpkin} & \Sym{\skull} \\
143 \end{symtable}
144 \caption{Binary operators}
145 \label{tab:binary}
146 \end{table}
147
148
149
150 \subsection{\textquotedblleft Large\textquotedblright\ operators}
151 \label{sS:Large}
152
153 Table~\ref{tab:large} lists the ``large'' operators. Each of them is depicted
154 in two variants: the variant used for in-line math and the variant used for
155 displayed formulas. In the table, besides the ``large'' operators called
156 \verb|\bigpumpkin|\footnote{As a homage to Linus van Pelt,
157 \texttt{\string\greatpumpkin} is defined as synonym of
158 \texttt{\string\bigpumpkin}.} and \verb|\bigskull|, which are correlated to the
159 binary operators \verb|\pumpkin| and \verb|\skull|, repectively, we find the
160 commands \verb|\mathwitch| and \verb|\reversemathwitch|: note how these two last
161 command have a \mbox{$*$-form} that adds a black cat on the broomstick.
162
163 \begin{table}[t!p]
164 \centering
165 \begin{opsymtable}\relax
166 \OpSym{\mathwitch} & \OpSym{\reversemathwitch} \\
167 \OpSym{\mathwitch*} & \OpSym{\reversemathwitch*} \\
168 \OpSym{\bigpumpkin}\normalfont\footnotemark[\value{footnote}]
169 & \OpSym{\bigskull} \\
170 \end{opsymtable}
171 \caption{\textquotedblleft Large\textquotedblright\ operators}
172 \label{tab:large}
173 \end{table}
174
175 All the ``large'' operators listed in table~\ref{tab:large} honor the
176 [\opt{no}]\opt{sumlimits} options from the \amsmath\ package.
177
178
179
180 \subsection{\textquotedblleft Fraction-like\textquotedblright\ symbols}
181 \label{sS:Inner}
182
183 There are also two commands, listed on table~\ref{tab:inner}, that yield symbols
184 that are somewhat similar to fractions, in that they grow in size when they are
185 typeset in display style.\footnote{Another \TeX nical aspect of these commands
186 is that they yield an atom of type Inner.} They are intended to denote
187 an unspecified subformula that appears as a part of a larger one.
188
189 \begin{table}[t!p]
190 \centering
191 \begin{opsymtable}\relax
192 \OpSym{\mathcloud} & \OpSym{\reversemathcloud} \\
193 \end{opsymtable}
194 \caption{\textquotedblleft Fraction-like\textquotedblright\ symbols}
195 \label{tab:inner}
196 \end{table}
197
198
199
200 \subsection{\textquotedblleft Arrow-like\textquotedblright\ symbols}
201 \label{sS:Arrow}
202
203 As we'll see in subsection~\ref{sS:XArrow}, the \halloweenmath\ package provides
204 a series of commands whose usage parallels that of ``extensible arrows'' like
205 \verb|\xrightarrow| or \verb|\xleftarrow|; but the symbols that those commands
206 yield when used with an empty argument turn out to be too short, and it is for
207 this reason that the \halloweenmath\ package also offers you the four commands
208 you can see in table~\ref{tab:arrow}: they produce brooms, or pitchforks, having
209 fixed length, which is approximately the same size of a
210 \verb|\longrightarrow|~($\longrightarrow$). All of these symbols are treated as
211 relations.
212
213 \begin{table}[t!p]
214 \centering
215 \begin{symtable}[2]
216 \Sym{\leftbroom} & \Sym{\rightbroom} \\
217 \Sym{\hmleftpitchfork} & \Sym{\hmrightpitchfork} \\
218 \end{symtable}
219 \caption{\textquotedblleft Arrow-like\textquotedblright\ symbols}
220 \label{tab:arrow}
221 \end{table}
222
223
224
225 \subsection{Extensible \textquotedblleft arrow-like\textquotedblright\ symbols}
226 \label{sS:XArrow}
227
228 You are probably already familiar with the ``extensible arrows'' like
229 $\xrightarrow{abc}$ and~$\xleftarrow{abc}$; for example, you probably know that
230 the input
231 \begin{verbatim}
232 \[
233 \bigoplus_{i=1}^{n} A_{i} \xrightarrow{f_{1}+\dots+f_{n}} B
234 \]
235 \end{verbatim}
236 produces this result:
237 \[
238 \bigoplus_{i=1}^{n} A_{i} \xrightarrow{f_{1}+\dots+f_{n}} B
239 \]
240 The \halloweenmath\ package features a whole assortment of extensible symbols of
241 this kind, which are listed in table~\ref{tab:xarrow}. For example, you could
242 say
243 \begin{verbatim}
244 \[
245 G \xrightswishingghost{h_{1}+\dots+h_{n}}
246 \bigpumpkin_{t=1}^{n} S_{t}
247 \]
248 \end{verbatim}
249 to get the following in print:
250 \[
251 G \xrightswishingghost{h_{1}+\dots+h_{n}}
252 \bigpumpkin_{t=1}^{n} S_{t}
253 \]
254
255 \begin{table}[t!p]
256 \centering
257 \begin{xasymtable}\relax
258 \xleftwitchonbroom{abc\dots z}
259 & \verb|\xleftwitchonbroom{abc\dots z}| &
260 \xrightwitchonbroom{abc\dots z}
261 & \verb|\xrightwitchonbroom{abc\dots z}| \\
262 \xleftwitchonbroom*{abc\dots z}
263 & \verb|\xleftwitchonbroom*{abc\dots z}| &
264 \xrightwitchonbroom*{abc\dots z}
265 & \verb|\xrightwitchonbroom*{abc\dots z}| \\
266 \xleftwitchonpitchfork{abc\dots z}
267 & \verb|\xleftwitchonpitchfork{abc\dots z}| &
268 \xrightwitchonpitchfork{abc\dots z}
269 & \verb|\xrightwitchonpitchfork{abc\dots z}| \\
270 \xleftwitchonpitchfork*{abc\dots z}
271 & \verb|\xleftwitchonpitchfork*{abc\dots z}| &
272 \xrightwitchonpitchfork*{abc\dots z}
273 & \verb|\xrightwitchonpitchfork*{abc\dots z}| \\
274 \xleftbroom{abc\dots z}
275 & \verb|\xleftbroom{abc\dots z}| &
276 \xrightbroom{abc\dots z}
277 & \verb|\xrightbroom{abc\dots z}| \\
278 \xleftpitchfork{abc\dots z}
279 & \verb|\xleftpitchfork{abc\dots z}| &
280 \xrightpitchfork{abc\dots z}
281 & \verb|\xrightpitchfork{abc\dots z}| \\
282 \xleftswishingghost{abc\dots z}
283 & \verb|\xleftswishingghost{abc\dots z}| &
284 \xrightswishingghost{abc\dots z}
285 & \verb|\xrightswishingghost{abc\dots z}| \\
286 \xleftflutteringbat{abc\dots z}
287 & \verb|\xleftflutteringbat{abc\dots z}| &
288 \xrightflutteringbat{abc\dots z}
289 & \verb|\xrightflutteringbat{abc\dots z}| \\
290 \end{xasymtable}
291 \caption{Extensible \textquotedblleft arrow-like\textquotedblright\ symbols}
292 \label{tab:xarrow}
293 \end{table}
294
295 More generally, exactly as the commands \verb|\xleftarrow| and
296 \verb|\xrightarrow|, on which they are modeled, all the commands listed in
297 table~\ref{tab:xarrow} take one optional argument, in which you can specify a
298 subscript, and one mandatory argument, where a---possibly empty---superscript
299 must be indicated. For example,
300 \begin{verbatim}
301 \[
302 A \xrightwitchonbroom*[abc\dots z]{f_{1}+\dots+f_{n}} B
303 \xrightwitchonbroom*{f_{1}+\dots+f_{n}} C
304 \xrightwitchonbroom*[abc\dots z]{} D
305 \]
306 \end{verbatim}
307 results in
308 \[
309 A \xrightwitchonbroom*[abc\dots z]{f_{1}+\dots+f_{n}} B
310 \xrightwitchonbroom*{f_{1}+\dots+f_{n}} C
311 \xrightwitchonbroom*[abc\dots z]{} D
312 \]
313
314 Note that, also in this family of symbols, the commands that involve a witch all
315 provide a \mbox{$*$-form} that adds a cat on the broom (or pitchfork).
316
317 The commands listed above should not be confused with those presented in
318 subsection~\ref{sS:OUArrow}.
319
320
321
322 \subsection{Extensible \textquotedblleft over-\protect\slash
323 under-arrow-like\textquotedblright\ symbols}
324 \label{sS:OUArrow}
325
326 The commands dealt with in subsection~\ref{sS:XArrow} typeset an extensible
327 ``arrow-like'' symbol having some math above or below it. But the \amsmath\
328 package also provides commands that act the other way around, that is, they put
329 an arrow over, or under, some math, as in the case of
330 \begin{verbatim}
331 \overrightarrow{x_{1}+\dots+x_{n}}
332 \end{verbatim}
333 that yields \( \overrightarrow{x_{1}+\dots+x_{n}} \). The \halloweenmath\
334 package provides a whole bunch of commands like this, which are listed in
335 table~\ref{tab:ouarrow}, and which all share the same syntax as the
336 \verb|\overrightarrow| command.
337
338 \begin{table}[t!p]
339 \centering
340 \begin{xasymtable}\relax
341 \overleftwitchonbroom{abc\dots z}
342 & \verb|\overleftwitchonbroom{abc\dots z}| &
343 \overrightwitchonbroom{abc\dots z}
344 & \verb|\overrightwitchonbroom{abc\dots z}| \\
345 \overleftwitchonbroom*{abc\dots z}
346 & \verb|\overleftwitchonbroom*{abc\dots z}| &
347 \overrightwitchonbroom*{abc\dots z}
348 & \verb|\overrightwitchonbroom*{abc\dots z}| \\
349 \overleftwitchonpitchfork{abc\dots z}
350 & \verb|\overleftwitchonpitchfork{abc\dots z}| &
351 \overrightwitchonpitchfork{abc\dots z}
352 & \verb|\overrightwitchonpitchfork{abc\dots z}| \\
353 \overleftwitchonpitchfork*{abc\dots z}
354 & \verb|\overleftwitchonpitchfork*{abc\dots z}| &
355 \overrightwitchonpitchfork*{abc\dots z}
356 & \verb|\overrightwitchonpitchfork*{abc\dots z}| \\
357 \overleftbroom{abc\dots z}
358 & \verb|\overleftbroom{abc\dots z}| &
359 \overrightbroom{abc\dots z}
360 & \verb|\overrightbroom{abc\dots z}| \\
361 \overscriptleftbroom{abc\dots z}
362 & \verb|\overscriptleftbroom{abc\dots z}| &
363 \overscriptrightbroom{abc\dots z}
364 & \verb|\overscriptrightbroom{abc\dots z}| \\
365 \overleftpitchfork{abc\dots z}
366 & \verb|\overleftpitchfork{abc\dots z}| &
367 \overrightpitchfork{abc\dots z}
368 & \verb|\overrightpitchfork{abc\dots z}| \\
369 \overscriptleftpitchfork{abc\dots z}
370 & \verb|\overscriptleftpitchfork{abc\dots z}| &
371 \overscriptrightpitchfork{abc\dots z}
372 & \verb|\overscriptrightpitchfork{abc\dots z}| \\
373 \overleftswishingghost{abc\dots z}
374 & \verb|\overleftswishingghost{abc\dots z}| &
375 \overrightswishingghost{abc\dots z}
376 & \verb|\overrightswishingghost{abc\dots z}| \\
377 \overleftflutteringbat{abc\dots z}
378 & \verb|\overleftflutteringbat{abc\dots z}| &
379 \overrightflutteringbat{abc\dots z}
380 & \verb|\overrightflutteringbat{abc\dots z}| \\
381 \underleftwitchonbroom{abc\dots z}
382 & \verb|\underleftwitchonbroom{abc\dots z}| &
383 \underrightwitchonbroom{abc\dots z}
384 & \verb|\underrightwitchonbroom{abc\dots z}| \\
385 \underleftwitchonbroom*{abc\dots z}
386 & \verb|\underleftwitchonbroom*{abc\dots z}| &
387 \underrightwitchonbroom*{abc\dots z}
388 & \verb|\underrightwitchonbroom*{abc\dots z}| \\
389 \underleftwitchonpitchfork{abc\dots z}
390 & \verb|\underleftwitchonpitchfork{abc\dots z}| &
391 \underrightwitchonpitchfork{abc\dots z}
392 & \verb|\underrightwitchonpitchfork{abc\dots z}| \\
393 \underleftwitchonpitchfork*{abc\dots z}
394 & \verb|\underleftwitchonpitchfork*{abc\dots z}| &
395 \underrightwitchonpitchfork*{abc\dots z}
396 & \verb|\underrightwitchonpitchfork*{abc\dots z}| \\
397 \underleftbroom{abc\dots z}
398 & \verb|\underleftbroom{abc\dots z}| &
399 \underrightbroom{abc\dots z}
400 & \verb|\underrightbroom{abc\dots z}| \\
401 \underscriptleftbroom{abc\dots z}
402 & \verb|\underscriptleftbroom{abc\dots z}| &
403 \underscriptrightbroom{abc\dots z}
404 & \verb|\underscriptrightbroom{abc\dots z}| \\
405 \underleftpitchfork{abc\dots z}
406 & \verb|\underleftpitchfork{abc\dots z}| &
407 \underrightpitchfork{abc\dots z}
408 & \verb|\underrightpitchfork{abc\dots z}| \\
409 \underscriptleftpitchfork{abc\dots z}
410 & \verb|\underscriptleftpitchfork{abc\dots z}| &
411 \underscriptrightpitchfork{abc\dots z}
412 & \verb|\underscriptrightpitchfork{abc\dots z}| \\
413 \underleftswishingghost{abc\dots z}
414 & \verb|\underleftswishingghost{abc\dots z}| &
415 \underrightswishingghost{abc\dots z}
416 & \verb|\underrightswishingghost{abc\dots z}| \\
417 \underleftflutteringbat{abc\dots z}
418 & \verb|\underleftflutteringbat{abc\dots z}| &
419 \underrightflutteringbat{abc\dots z}
420 & \verb|\underrightflutteringbat{abc\dots z}| \\
421 \end{xasymtable}
422 \caption{Extensible \textquotedblleft over-\protect\slash
423 under-arrow-like\textquotedblright\ symbols}
424 \label{tab:ouarrow}
425 \end{table}
426
427 Although they are not extensible, and are thus more similar to math accents, we
428 have chosen to include in this subsection also the commands listed in
429 table~\ref{tab:oubat}. They typeset a subformula either surmounted by the bat
430 produced by \verb|\mathbat|, or with that symbol underneath. Their normal
431 (\emph{i.e.}, unstarred) form pretends that the bat has zero width (but some
432 height), whereas the starred variant takes the actual width of the bat be into
433 account; for example, given the input
434 \begin{verbatim}
435 \begin{align*}
436 &x+y+z && x+y+z \\
437 &x+\overbat{y}+z && x+\overbat*{y}+z
438 \end{align*}
439 \end{verbatim}
440 compare the spacing you get in the two columns of the output:
441 \begin{align*}
442 &x+y+z && x+y+z \\
443 &x+\overbat{y}+z && x+\overbat*{y}+z
444 \end{align*}
445
446 \begin{table}[t!p]
447 \centering
448 \begin{xasymtable}\relax
449 \overbat{xyz} & \verb|\overbat{xyz}| &
450 \underbat{xyz} & \verb|\underbat{xyz}| \\
451 \end{xasymtable}
452 \caption{Over\protect\slash under bats}
453 \label{tab:oubat}
454 \end{table}
455
456
457
458 \subsection{Script-style versions of
459 \texorpdfstring{\amsmath}{amsmath}\textquoteright s
460 over\protect\slash under arrows}
461 \label{sS:ScriptArrow}
462
463 The commands listed in table~\ref{tab:scriptarrow} all produce an output similar
464 to that of the corresponding \amsmath's command having the same name, but
465 stripped of the \texttt{script} substring, with the only difference that the
466 size of the arrow is smaller. More precisely, they use for the arrow the
467 relative script size of the current size (that is, of the size in which their
468 argument is typeset). For example, whilst \verb|\overrightarrow{x+y+z}| yields
469 $\overrightarrow{x+y+z}$, \verb|\overscriptrightarrow{x+y+z}| results in
470 $\overscriptrightarrow{x+y+z}$ (do you see the difference?), which, in the
471 author's humble opinion, looks \emph{much} better.
472
473 \begin{table}[t!p]
474 \centering
475 \begin{xasymtable}\relax
476 \overscriptleftarrow{abc\dots z}
477 & \verb|\overscriptleftarrow{abc\dots z}| &
478 \underscriptleftarrow{abc\dots z}
479 & \verb|\underscriptleftarrow{abc\dots z}| \\
480 \overscriptrightarrow{abc\dots z}
481 & \verb|\overscriptrightarrow{abc\dots z}| &
482 \underscriptrightarrow{abc\dots z}
483 & \verb|\underscriptrightarrow{abc\dots z}| \\
484 \overscriptleftrightarrow{abc\dots z}
485 & \verb|\overscriptleftrightarrow{abc\dots z}| &
486 \underscriptleftrightarrow{abc\dots z}
487 & \verb|\underscriptleftrightarrow{abc\dots z}| \\
488 \end{xasymtable}
489 \caption{Extensible over\protect\slash under arrows with reduced size}
490 \label{tab:scriptarrow}
491 \end{table}
492
493
494
495 \clearpage
496
497 \section{Examples of use}
498 \label{S:Example}
499
500 This section illustrates the use of the commands provided by the \halloweenmath\
501 package: by reading the source code for this document, you can see how the
502 output presented below can be obtained.
503
504
505
506 \subsection{Applying black magic}
507
508 The $\mathwitch$~symbol was invented with the intent to provide a notation for
509 the operation of applying black magic to a formula. Its applications range from
510 simple reductions sometimes made by certain undergraduate freshmen, as in
511 \[
512 \mathwitch 2\sin\frac{x}{2} = \sin x
513 \]
514 to key steps that permit to simplify greatly the proof of an otherwise totally
515 impenetrable theorem, for example
516 \[
517 \mathwitch\Bigl(
518 \sup\,\{\,p\in\mathbb{N}\mid \text{$p$ and $p+2$ are both prime}\,\}
519 \Bigr) = \infty
520 \]
521 Another way of denoting the same operation is to place the broom and the witch
522 \emph{over} the relevant subformula:
523 \[
524 \overrightwitchonbroom{
525 \sup\,\{\,p\in\mathbb{N}\mid \text{$p$ and $p+2$ are both prime}\,\}
526 } = \infty
527 \]
528
529 Different types of magic, that you might want to apply to a given formula, can
530 be distinguished by adding a black cat on the broom: for example, a student
531 could claim that
532 \begin{align*}
533 \mathwitch 2x\sin x &= 2\sin x^{2}\\
534 \intertext{whereas, for another student,}
535 \mathwitch*2x\sin x &= \sin 3x
536 \end{align*}
537
538
539
540 \subsection{Monoids}
541
542 Let $X$ be a non-empty set, and suppose there exists a map
543 \begin{equation}
544 X\times X\longrightarrow X,\qquad
545 (x,y)\longmapsto P(x,y)=x\pumpkin y
546 \label{eq:Pdef}
547 \end{equation}
548 Suppose furthermore that this map satisfies the \textbf{associative property}
549 \begin{equation}
550 \forall x\in X,\;\forall y\in X,\;\forall z\in X\qquad
551 x\pumpkin(y\pumpkin z) = (x\pumpkin y)\pumpkin z
552 \label{eq:Passoc}
553 \end{equation}
554 Then, the pair $(X,\pumpkin)$ is called a \textbf{semigroup}, and $\pumpkin$
555 denotes its \textbf{operation}. If, in addition, there exists in~$X$ an
556 element~$\mathghost$ with the property that
557 \begin{equation}
558 \forall x\in X\qquad
559 \mathghost\pumpkin x = x = x\pumpkin\mathghost
560 \label{eq:Punit}
561 \end{equation}
562 the triple $(X,\pumpkin,\mathghost)$ is called a \textbf{monoid}, and the
563 element~$\mathghost$ is called its \textbf{unit}. It is immediate to prove that
564 the unit of a monoid is unique: indeed, if $\mathghost'$ is another element
565 of~$X$ having the property~\eqref{eq:Punit}, then
566 \[
567 \mathghost' = \mathghost'\pumpkin\mathghost = \mathghost
568 \]
569 (the first equality holds because \( \mathghost'\in X \) and
570 $\mathghost$~satisfies~\eqref{eq:Punit}, and the second because \( \mathghost\in
571 X \) and $\mathghost'$~satisfies~\eqref{eq:Punit}).
572
573 Let $(X,\pumpkin,\mathghost)$ be a monoid. Since its operation~$\pumpkin$ is
574 associative, we may set, for \( x,y,z\in X \),
575 \[
576 x\pumpkin y\pumpkin z =_{\mathrm{def}}
577 (x\pumpkin y)\pumpkin z = x\pumpkin (y\pumpkin z)
578 \]
579 More generally, since the order in which the operations are performed doesn't
580 matter, given $n$~elements \( x_{1},\dots,x_{n} \in X \), with \( n \in
581 \mathbb{N} \), the result of
582 \[
583 \bigpumpkin_{i=1}^{n} x_{i} = x_{1}\pumpkin\dots\pumpkin x_{n}
584 \]
585 is unambiguously defined (it being~$\mathghost$ if \( n=0 \)).
586
587 A monoid $(X,\pumpkin,\mathghost)$ is said to be \textbf{commutative} if
588 \begin{equation}
589 \forall x\in X,\;\forall y\in X\qquad
590 x\pumpkin y = y\pumpkin x
591 \label{eq:Pcomm}
592 \end{equation}
593 In this case, even the order of the \emph{operands} becomes irrelevant, so that,
594 for any finite (possibly empty) set~$F$, the notation \( \bigpumpkin_{i\in F}
595 x_{i} \) also acquires a meaning.
596
597
598
599 \subsection{Applications induced on power sets}
600
601 If $X$ is a set, we'll denote by~$\wp(X)$ the set of all subsets of~$X$, that is
602 \[
603 \wp(X) = \{\,S:S\subseteq X\,\}
604 \]
605
606 Let \( f\colon A\longrightarrow B \) a function. Starting from~$f$, we can
607 define two other functions \( f^{\mathrightbat} \colon \wp(A) \longrightarrow
608 \wp(B) \) and \( f^{\mathleftbat} \colon \wp(B) \longrightarrow \wp(A) \) in the
609 following way:
610 \begin{alignat}{2}
611 &\text{for $X\subseteq A$,}\quad
612 &f^{\mathrightbat}(X) &= \{\,f(x):x\in X\,\} \\
613 &\text{for $Y\subseteq B$,}\quad
614 &f^{\mathleftbat}(Y) &= \{\,x\in A:f(x)\in Y\,\}
615 \end{alignat}
616 In the case of functions with long names, or with long descriptions, we'll also
617 use a notation like \( \overrightflutteringbat{f_{1}+\dots+f_{n}} \) to mean the
618 same thing as \( (f_{1}+\dots+f_{n})^{\mathrightbat} \).
619
620 For example,
621 \begin{align*}
622 \mathop{\overrightflutteringbat{\sin}}(\mathbb{R}) &= [-1,1] \\
623 \mathop{\overrightflutteringbat{\sin}}\bigl([0,\pi]\bigr) &= [0,1] \\
624 \mathop{\overleftflutteringbat{\arcsin}}
625 \Bigl(\bigl[0,\tfrac{\pi}{2}\bigr]\Bigr) &= [0,1] \\
626 \mathop{\overrightflutteringbat{\sin+\cos}}(\mathbb{R})
627 &= \bigl[-\sqrt{2},\sqrt{2}\,\bigr] \\
628 \mathop{\overleftflutteringbat{\log}}\bigl(\mathopen]-\infty,0]\bigr)
629 &= \mathopen]0,1]
630 \end{align*}
631
632
633
634 \subsection{A comprehensive test}
635
636 A comparison between the ``standard'' and the ``script'' extensible over\slash
637 under arrows:
638 \begin{align*}
639 \overrightarrow{f_{1}+\dots+f_{n}}
640 &\neq\overscriptrightarrow{f_{1}+\dots+f_{n}} \\
641 \overleftarrow{f_{1}+\dots+f_{n}}
642 &\neq\overscriptleftarrow{f_{1}+\dots+f_{n}} \\
643 \overleftrightarrow{f_{1}+\dots+f_{n}}
644 &\neq\overscriptleftrightarrow{f_{1}+\dots+f_{n}} \\
645 \underrightarrow{f_{1}+\dots+f_{n}}
646 &\neq\underscriptrightarrow{f_{1}+\dots+f_{n}} \\
647 \underleftarrow{f_{1}+\dots+f_{n}}
648 &\neq\underscriptleftarrow{f_{1}+\dots+f_{n}} \\
649 \underleftrightarrow{f_{1}+\dots+f_{n}}
650 &\neq\underscriptleftrightarrow{f_{1}+\dots+f_{n}}
651 \end{align*}
652
653 \bigbreak
654
655 A reduction my students are likely to make:
656 \[\mathwitch \frac{\sin x}{s} = x\,\mathrm{in}\]
657 The same reduction as an in-line formula:
658 \(\mathwitch \frac{\sin x}{s} = x\,\mathrm{in}\).
659
660 Now with limits:
661 \[
662 \mathwitch_{i=1}^{n} \frac
663 {\text{$i$-th magic term}}
664 {\text{$2^{i}$-th wizardry}}
665 \]
666 And repeated in-line: \( \mathwitch_{i=1}^{n} x_{i}y_{i} \).
667
668 The \texttt{bold} math version is honored:\mathversion{bold}
669 \[
670 \mathwitch*
671 \genfrac{<}{>}{0pt}{}
672 {\textbf{something terribly}}{\textbf{complicated}}
673 = 0
674 \]
675 Compare it with \texttt{normal} math\mathversion{normal}:
676 \[
677 \mathwitch*
678 \genfrac{<}{>}{0pt}{}
679 {\text{something terribly}}{\text{complicated}}
680 = 0
681 \]
682 In-line math comparison:
683 {\boldmath $\mathwitch* f(x)$} versus $\mathwitch* f(x)$.
684
685 There is also a left-facing witch:
686 \[\reversemathwitch \frac{\sin x}{s} = x\,\mathrm{in}\]
687 And here is the in-line version:
688 \(\reversemathwitch \frac{\sin x}{s} = x\,\mathrm{in}\).
689
690 Test for \verb|\dots|:
691 \[
692 \mathwitch_{i_{1}=1}^{n_{1}} \dots \mathwitch_{i_{p}=1}^{n_{p}}
693 \frac
694 {\text{$i_{1}$-th magic factor}}
695 {\text{$2^{i_{1}}$-th wizardry}}
696 \pumpkin\dots\pumpkin
697 \frac
698 {\text{$i_{p}$-th magic factor}}
699 {\text{$2^{i_{p}}$-th wizardry}}
700 \]
701 And repeated in-line: \( \mathwitch\dots\mathwitch_{i=1}^{n} x_{i}y_{i} \).
702
703 \bigbreak
704
705 Now the pumpkins. First the \texttt{bold} math version:\mathversion{bold}:
706 \[ \bigoplus_{h=1}^{m}\bigpumpkin_{k=1}^{n} P_{h,k} \]
707 Then the \texttt{normal} one\mathversion{normal}:
708 \[ \bigoplus_{h=1}^{m}\bigpumpkin_{k=1}^{n} P_{h,k} \]
709 In-line math comparison:
710 {\boldmath \( \bigpumpkin_{i=1}^{n} P_{i} \neq \bigoplus_{i=1}^{n} P_{i} \)}
711 versus \( \bigpumpkin_{i=1}^{n} P_{i} \neq \bigoplus_{i=1}^{n} P_{i} \).
712
713 Close test: {\boldmath $\bigoplus$}$\bigoplus$.
714 And against the pumpkins:
715 {\boldmath $\bigpumpkin$}$\bigpumpkin\bigoplus${\boldmath $\bigoplus$}.
716
717 In-line, but with \verb|\limits|:
718 \( \bigoplus\limits_{h=1}^{m}\bigpumpkin\limits_{k=1}^{n} P_{h,k} \).
719
720 Binary: \( x\pumpkin y \neq x\oplus y \). And in display:
721 \[ a\pumpkin\frac{x\pumpkin y}{x\oplus y}\otimes b \]
722 Close test: {\boldmath $\oplus$}$\oplus$.
723 And with the pumpkins too:
724 {\boldmath $\pumpkin$}$\pumpkin\oplus${\boldmath $\oplus$}.
725
726 In general,
727 \[ \bigpumpkin_{i=1}^{n} P_{i} = P_{1}\pumpkin\dots\pumpkin P_{n} \]
728
729 \begingroup
730
731 \bfseries\boldmath
732
733 The same in bold:
734 \[ \bigpumpkin_{i=1}^{n} P_{i} = P_{1}\pumpkin\dots\pumpkin P_{n} \]
735
736 \endgroup
737
738 Other styles: \( \frac{x\pumpkin y}{2} \), exponent~$Z^{\pumpkin}$,
739 subscript~$W_{\!x\pumpkin y}$, double script \( 2^{t_{x\pumpkin y}} \).
740
741 \bigbreak
742
743 Clouds. A hypothetical identity:
744 \( \frac{\sin^{2}x + \cos^{2}x}{\cos^{2}x} = \mathcloud \).
745 Now the same identity set in display:
746 \[ \frac{\sin^{2}x + \cos^{2}x}{\cos^{2}x} = \mathcloud \]
747 Now in smaller size: \( \frac{\sin x+\cos x}{\mathcloud} = 1 \).
748
749 Specular clouds, \texttt{bold}\ldots\mathversion{bold}
750 \[ \reversemathcloud \longleftrightarrow \mathcloud \]
751 \ldots and in \texttt{normal} math.\mathversion{normal}
752 \[ \reversemathcloud \longleftrightarrow \mathcloud \]
753 In-line math comparison:
754 {\boldmath \( \reversemathcloud \leftrightarrow \mathcloud \)}
755 versus \( \reversemathcloud \leftrightarrow \mathcloud \).
756 Abutting: {\boldmath $\mathcloud$}$\mathcloud$.
757
758 \bigbreak
759
760 Ghosts: \( \mathleftghost \mathghost \mathrightghost \mathghost \mathleftghost
761 \mathghost \mathrightghost \). Now with letters: \( H \mathghost H \mathghost h
762 \mathghost ab \mathghost f \mathghost wxy \mathghost \), and also \(
763 2\mathghost^{3} + 5\mathleftghost^{\!2}-3\mathrightghost_{i} =
764 12\mathrightghost_{j}^{4} \). Then, what about~$x^{2\mathghost}$ and \(
765 z_{\!\mathrightghost+1} = z_{\!\mathrightghost}^{2} + z_{\mathghost} \)?
766
767 In subscripts:
768 \begin{align*}
769 F_{\mathghost+2} &= F_{\mathghost+1} + F_{\mathghost} \\
770 F_{\!\mathrightghost+2} &= F_{\!\mathrightghost+1} + F_{\!\mathrightghost}
771 \end{align*}
772 Another test: \( \mathghost | \mathrightghost | \mathghost | \mathleftghost |
773 \mathghost | \mathrightghost | \mathghost | \mathleftghost | \mathghost \). We
774 should also try this: \( \mathrightghost \mathleftghost \mathrightghost
775 \mathleftghost \).
776
777 Let us now compare ghosts set in normal math
778 \( \mathrightghost \mathleftghost \mathghost \mathrightghost \mathleftghost \)
779 with (a few words to push the bold ghosts to the right)
780 {\bfseries\boldmath ghosts like these
781 \( \mathrightghost \mathleftghost \mathghost \mathrightghost \mathleftghost \),
782 which are set in bold math.}
783
784 \bigbreak
785
786 Extensible arrows:
787 \begin{gather*}
788 A \xrightwitchonbroom[a]{\sumxn} B \xrightwitchonbroom{x+z}
789 C \xrightwitchonbroom{} D \\
790 A \xrightwitchonbroom*[a]{\sumxn} B \xrightwitchonbroom*{x+z}
791 C \xrightwitchonbroom*{} D \\
792 A \xleftwitchonbroom*[a]{\sumxn} B \xleftwitchonbroom*{x+z}
793 C \xleftwitchonbroom*{} D \\
794 A \xleftwitchonbroom[a]{\sumxn} B \xleftwitchonbroom{x+z}
795 C \xleftwitchonbroom{} D
796 \end{gather*}
797 And \( \overrightwitchonbroom*{\sumxn}=0 \) versus \(
798 \overrightwitchonbroom{\sumxn}=0 \); or \( \overleftwitchonbroom*{\sumxn}=0 \)
799 versus \( \overleftwitchonbroom{\sumxn}=0 \).
800
801 \begingroup
802
803 \bfseries \mathversion{bold}
804
805 Now repeat in bold:
806 \begin{gather*}
807 A \xrightwitchonbroom[a]{\sumxn} B \xrightwitchonbroom{x+z}
808 C \xrightwitchonbroom{} D \\
809 A \xrightwitchonbroom*[a]{\sumxn} B \xrightwitchonbroom*{x+z}
810 C \xrightwitchonbroom*{} D \\
811 A \xleftwitchonbroom*[a]{\sumxn} B \xleftwitchonbroom*{x+z}
812 C \xleftwitchonbroom*{} D \\
813 A \xleftwitchonbroom[a]{\sumxn} B \xleftwitchonbroom{x+z}
814 C \xleftwitchonbroom{} D
815 \end{gather*}
816 And \( \overrightwitchonbroom*{\sumxn}=0 \) versus \(
817 \overrightwitchonbroom{\sumxn}=0 \); or \( \overleftwitchonbroom*{\sumxn}=0 \)
818 versus \( \overleftwitchonbroom{\sumxn}=0 \).
819
820 \endgroup
821
822 Hovering ghosts: \( \overrightswishingghost{\sumxn}=0 \). I~wonder whether
823 there is enough space left for the swishing ghost; let's try again:
824 \( \overrightswishingghost{(\sumxn)y}=0 \)! Yes, it looks like there is enough
825 room, although, of course, we cannot help the line spacing going awry. Also try
826 \( \overrightswishingghost{\mathstrut} \).
827 \begin{gather*}
828 A \xrightswishingghost[a]{\sumxn} B \xrightswishingghost{x+z} C
829 \xrightswishingghost{} D \\
830 A \xleftswishingghost[a]{\sumxn} B \xleftswishingghost{x+z} C
831 \xleftswishingghost{} D
832 \end{gather*}
833 Another hovering ghost: \( \overleftswishingghost{\sumxn}=0 \).
834 Lorem ipsum dolor sit amet consectetur adipisci elit. Ulla rutrum, vel sivi sit
835 anismus oret, rubi sitiunt silvae. Let's see how it looks like when the ghost
836 hovers on a taller formula, as in \(
837 \overrightswishingghost{H_{1}\oplus\dots\oplus H_{k}} \). Mmm, it's suboptimal,
838 to say the least.\footnote{We'd better try \(
839 \underleftswishingghost{y_{1}+\dots+y_{n}} \), too; well, this one looks good!}
840
841 Under ``arrow-like'' symbols: \( \underleftswishingghost{\sumxn}=0 \) and \(
842 \underrightswishingghost{x+y+z} \). There are \(
843 \underleftwitchonbroom*{\sumxn}=0 \) and \( \underrightwitchonbroom*{x+y+z} \)
844 as well.
845
846 Compare \( A\xrightswishingghost{\sumxn} B \) with (add a few words to push it
847 to the next line) {\bfseries\boldmath its bold version \(
848 A\xrightswishingghost{\sumxn} B \).}
849
850 \bigbreak
851
852 Bats: $\mathbat${\boldmath $\mathbat$}. We are interested in seeing whether a
853 bat affixed to a letter as an exponent causes the lines of a paragraph to be
854 further apart than usual. Therefore, we now try~$f^{\mathbat}$, also
855 {\bfseries\boldmath in bold~$f^{\mathbat}$,} then we type a few more words (just
856 enough to obtain another typeset line or two) in order to see what happens. We
857 need to look at the transcript file, to check the outcome of the following
858 tracing commands.
859
860 % \begingroup
861 % \showboxbreadth = 1000
862 % \showboxdepth = 0 % show just the lines, not their contents
863 % \showlists
864 % \endgroup
865
866 Asymmetric bats: $\mathleftbat${\boldmath $\mathleftbat$}, and also
867 $\mathrightbat${\boldmath $\mathrightbat$}. Exponents: this is \texttt{normal}
868 math \( x^{\mathleftbat} \pumpkin y^{\mathrightbat} \), while
869 {\bfseries\boldmath this is \texttt{bold} math \( x^{\mathleftbat} \pumpkin
870 y^{\mathrightbat} \).} Do you note the difference? Let's try subscripts, too:
871 \( f_{\mathleftbat} \pumpkin g_{\mathrightbat} \) versus {\bfseries\boldmath
872 bold \( f_{\mathleftbat} \pumpkin g_{\mathrightbat} \).}
873 Now, keep on repeating some silly text, just in order to fill up the paragraph
874 with a sufficient number of lines. Now, keep on repeating some silly text, just
875 in order to fill up the paragraph with a sufficient number of lines. Now, keep
876 on repeating some silly text, just in order to fill up the paragraph with a
877 sufficient number of lines. That's enough!
878
879 Hovering bats: \( \overrightflutteringbat{\sumxn}=0 \). I~wonder whether there
880 is enough space left for the swishing bat; let's try again:
881 \( \overrightflutteringbat{(\sumxn)y}=0 \)! Yes, it looks like there is enough
882 room (with the usual remark abut line spacing). Also try
883 \( \overrightflutteringbat{\mathstrut} \).
884 \begin{gather*}
885 A \xrightflutteringbat[a]{\sumxn} B \xrightflutteringbat{x+z}
886 C \xrightflutteringbat{} D \\
887 A \xleftflutteringbat[a]{\sumxn} B \xleftflutteringbat{x+z} C
888 \xleftflutteringbat{} D
889 \end{gather*}
890 Another hovering bat: \( \overleftflutteringbat{\sumxn}=0 \).
891
892 Under ``arrow-like'' bats: \( \underleftflutteringbat{\sumxn}=0 \) and \(
893 \underrightflutteringbat{x+y+z} \).
894
895 Compare \( A\xrightflutteringbat{\sumxn} B \) with (add a few words to push it
896 to the next line) {\bfseries\boldmath its bold version \(
897 A\xrightflutteringbat{\sumxn} B \).}
898
899 Test for checking the placement of the formulas that go over or under the
900 fluttering bat:
901 \begin{gather*}
902 A \xrightflutteringbat[\text{a long subscript}]{\text{a long superscript}} B
903 \xrightflutteringbat[\text{a long subscript}]{|} C
904 \xrightflutteringbat{|} D \xrightflutteringbat{} E \\
905 A \xleftflutteringbat[\text{a long subscript}]{\text{a long superscript}} B
906 \xleftflutteringbat[\text{a long subscript}]{|} C
907 \xleftflutteringbat{|} D \xleftflutteringbat{} E
908 \end{gather*}
909 I'd say it's now OK\@\ldots
910
911 \bigbreak
912
913 Extensible arrows with pitchfork:
914 \begin{gather*}
915 A \xrightwitchonpitchfork[a]{\sumxn} B \xrightwitchonpitchfork{x+z} C
916 \xrightwitchonpitchfork{} D \\
917 A \xrightwitchonpitchfork*[a]{\sumxn} B \xrightwitchonpitchfork*{x+z} C
918 \xrightwitchonpitchfork*{} D \\
919 A \xleftwitchonpitchfork*[a]{\sumxn} B \xleftwitchonpitchfork*{x+z} C
920 \xleftwitchonpitchfork*{} D \\
921 A \xleftwitchonpitchfork[a]{\sumxn} B \xleftwitchonpitchfork{x+z} C
922 \xleftwitchonpitchfork{} D
923 \end{gather*}
924 And \( \overrightwitchonpitchfork*{\sumxn}=0 \) versus \(
925 \overrightwitchonpitchfork{\sumxn}=0 \); or \(
926 \overleftwitchonpitchfork*{\sumxn}=0 \) versus \(
927 \overleftwitchonpitchfork{\sumxn}=0 \). There are \(
928 \underleftwitchonpitchfork*{\sumxn}=0 \) and \(
929 \underrightwitchonpitchfork*{x+y+z} \) as well.
930
931 \begingroup
932
933 \bfseries \mathversion{bold}
934
935 Now again, but all in boldface:
936 \begin{gather*}
937 A \xrightwitchonpitchfork[a]{\sumxn} B \xrightwitchonpitchfork{x+z} C
938 \xrightwitchonpitchfork{} D \\
939 A \xrightwitchonpitchfork*[a]{\sumxn} B \xrightwitchonpitchfork*{x+z} C
940 \xrightwitchonpitchfork*{} D \\
941 A \xleftwitchonpitchfork*[a]{\sumxn} B \xleftwitchonpitchfork*{x+z} C
942 \xleftwitchonpitchfork*{} D \\
943 A \xleftwitchonpitchfork[a]{\sumxn} B \xleftwitchonpitchfork{x+z} C
944 \xleftwitchonpitchfork{} D
945 \end{gather*}
946 And \( \overrightwitchonpitchfork*{\sumxn}=0 \) versus \(
947 \overrightwitchonpitchfork{\sumxn}=0 \); or \(
948 \overleftwitchonpitchfork*{\sumxn}=0 \) versus \(
949 \overleftwitchonpitchfork{\sumxn}=0 \). There are \(
950 \underleftwitchonpitchfork*{\sumxn}=0 \) and \(
951 \underrightwitchonpitchfork*{x+y+z} \) as well.
952
953 \endgroup
954
955 The big table of the rest:
956 \begin{align*}
957 A &\xrightbroom{\sumxn} B &
958 \overrightbroom {\sumxn} = 0 &&
959 \underrightbroom{\sumxn} = 0 \\
960 &&
961 \overscriptrightbroom {\sumxn} = 0 &&
962 \underscriptrightbroom{\sumxn} = 0 \\
963 A &\xleftbroom{\sumxn} B &
964 \overleftbroom {\sumxn} = 0 &&
965 \underleftbroom{\sumxn} = 0 \\
966 &&
967 \overscriptleftbroom {\sumxn} = 0 &&
968 \underscriptleftbroom{\sumxn} = 0 \\
969 A &\xrightpitchfork{\sumxn} B &
970 \overrightpitchfork {\sumxn} = 0 &&
971 \underrightpitchfork{\sumxn} = 0 \\
972 &&
973 \overscriptrightpitchfork {\sumxn} = 0 &&
974 \underscriptrightpitchfork{\sumxn} = 0 \\
975 A &\xleftpitchfork{\sumxn} B &
976 \overleftpitchfork {\sumxn} = 0 &&
977 \underleftpitchfork{\sumxn} = 0 \\
978 &&
979 \overscriptleftpitchfork {\sumxn} = 0 &&
980 \underscriptleftpitchfork{\sumxn} = 0 \\
981 \end{align*}
982
983 Now in bold\ldots\space No, please, seriously, just the examples for the minimal
984 size: in \texttt{normal} math we show \( A \xrightbroom{} B \) and \( C
985 \xleftpitchfork{} D \) and \( \overscriptrightbroom{} \) and \(
986 \overscriptleftpitchfork{} \), which we now repeat {\bfseries\boldmath in
987 \texttt{bold} math \( A \xrightbroom{} B \) and \( C \xleftpitchfork{} D \) and
988 \( \overscriptrightbroom{} \) and \( \overscriptleftpitchfork{} \).} Mmmh, the
989 minimal size seems way too narrow: is it the same for the standard arrows?
990 Let's see:
991 \begin{align*}
992 A &\xrightarrow{} B & \overrightarrow{} && \overscriptrightarrow{} \\
993 A &\xleftarrow {} B & \overleftarrow {} && \overscriptleftarrow {} \\
994 A &\xrightbroom{} B & \overrightbroom{} && \overscriptrightbroom{} \\
995 A &\xleftbroom {} B & \overleftbroom {} && \overscriptleftbroom {}
996 \end{align*}
997 Well, almost so, but the arrow tip is much more ``discrete''\ldots
998
999 To cope with this problem, \verb|\rightbroom| and siblings have been introduced:
1000 for example, \( X\rightbroom Y \).
1001
1002 A comparative table follows:
1003 \begin{align*}
1004 A &\rightbroom B & C &\hmrightpitchfork D \\
1005 A &\leftbroom B & C &\hmleftpitchfork D \\
1006 A &\longrightarrow B & C &\Longrightarrow D \\
1007 A &\longleftarrow B & C &\Longleftarrow D \\
1008 A &\xrightwitchonbroom{} B & C &\xrightwitchonpitchfork{} D \\
1009 A &\xleftwitchonbroom{} B & C &\xleftwitchonpitchfork{} D \\
1010 \end{align*}
1011
1012 Finally, \( \overbat{y} + \underbat{x} + z = 0 \) versus \( \overbat*{y} +
1013 \underbat*{x} + z = 0 \), and also note that \( {\overbat{x}}_{2} \ne
1014 {\overbat*{x}}_{2} \). Oh, wait, we have to check {\bfseries\boldmath the bold
1015 version \( {\overbat{x}}_{2} \ne {\overbat*{x}}_{2} \)} too!
1016
1017 \bigbreak
1018
1019 We've now gotten to skulls.
1020 \[ A \xrightswishingghost{\mspace{100mu}} B \skull C \]
1021
1022 Skulls are similar to pumpkins, and thus to \verb|\oplus|:
1023 \begin{gather*}
1024 H_{1} \skull \dots \skull H_{n} \\
1025 H_{1} \oplus \dots \oplus H_{n} \\
1026 H_{1} \pumpkin \dots \pumpkin H_{n}
1027 \end{gather*}
1028 As you can see, though, the dimensions differ slightly:
1029 \( {\skull}{\oplus}{\pumpkin} \).
1030 Subscript: \( A_{x\skull y} \).
1031 Now the ``large'' operator version:
1032 \begin{align*}
1033 \bigskull _{i=1}^{n} H_{i} &= H_{1} \skull \dots \skull H_{n} \\
1034 \bigoplus _{i=1}^{n} H_{i} &= H_{1} \oplus \dots \oplus H_{n} \\
1035 \bigpumpkin_{i=1}^{n} H_{i} &= H_{1} \pumpkin \dots \pumpkin H_{n}
1036 \end{align*}
1037 In-line: \( \bigskull_{i=1}^{n} H_{i} = H_{1}\skull\dots\skull H_{n} \).
1038 Example of close comparison: \( \bigoplus\bigskull\bigpumpkin X \).
1039 {\bfseries\boldmath Now repeat in bold: \( \bigskull_{i=1}^{n} H_{i} =
1040 H_{1}\skull\dots\skull H_{n} \).}
1041
1042 Skulls look much gloomier than pumpkins: compare \( P\pumpkin U\pumpkin M = P \)
1043 with \( S\skull K\skull U = L\odot L \). Why did~I ever outline such a grim and
1044 dreary picture? The ``large operator'' variant, then, is truly dreadful! How
1045 could anybody write a formula like \( \bigskull_{i}\bigskull_{j} A_{i}\otimes
1046 B_{j} \)? How much cheerer is \( \bigpumpkin_{i}\bigpumpkin_{j} A_{i}\otimes
1047 B_{j} \)? And look at the displayed version:
1048 \[
1049 \bigskull_{i=1}^{m}\bigskull_{j=1}^{n} A_{i}\otimes B_{j} \neq
1050 \bigpumpkin_{i=1}^{m}\bigpumpkin_{j=1}^{n} A_{i}\otimes B_{j}
1051 \]
1052
1053 Comparison between math versions: $x\skull y$ is normal math,
1054 {\bfseries\boldmath whereas $x\skull y$ is bold.} Similarly, \(
1055 \bigskull_{i-1}^{n} K_{i} = L \) is normal, {\bfseries\boldmath but \(
1056 \bigskull_{i-1}^{n} K_{i} = L \) is bold.} And now the displays: normal
1057 \[
1058 \bigskull_{i=1}^{m}\bigskull_{j=1}^{n} A_{i}\otimes B_{j} \neq
1059 \bigpumpkin_{i=1}^{m}\bigpumpkin_{j=1}^{n} A_{i}\otimes B_{j}
1060 \]
1061 versus {\bfseries\boldmath bold
1062 \[
1063 \bigskull_{i=1}^{m}\bigskull_{j=1}^{n} A_{i}\otimes B_{j} \neq
1064 \bigpumpkin_{i=1}^{m}\bigpumpkin_{j=1}^{n} A_{i}\otimes B_{j}
1065 \]
1066 math.} Back to the normal font.
1067
1068 \end{document}