| 1 |
% \iffalse |
| 2 |
% (This is a META-COMMENT.) |
| 3 |
% |
| 4 |
% This is file `halloweenmath.dtx'. |
| 5 |
% |
| 6 |
% This file is part of a work named "halloweenmath package". |
| 7 |
% |
| 8 |
% Copyright (C) 2019 by Gustavo MEZZETTI. |
| 9 |
% |
| 10 |
% This file may be distributed and/or modified under the conditions |
| 11 |
% of the LaTeX Project Public License, either version 1.3 of this |
| 12 |
% license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% http://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 16 |
% version 2005/12/01 or later. |
| 17 |
% |
| 18 |
% The halloweenmath package has the LPPL maintenance status |
| 19 |
% "author-maintained". |
| 20 |
% |
| 21 |
% The file `manifest.txt' that comes along with this file specifies what the |
| 22 |
% halloweenmath package consists of; more precisely, it explains how the |
| 23 |
% locutions "Work" and "Compiled Work", used in the LaTeX Project Public |
| 24 |
% License, are to be interpreted in the case of this work. |
| 25 |
% |
| 26 |
% Note that the distribution of this file alone is "distribution of |
| 27 |
% only part of the Work" in the sense of the LaTeX Project Public |
| 28 |
% License, and should be avoided (see the LaTeX Project Public |
| 29 |
% Licence for details). |
| 30 |
% |
| 31 |
% (End of the META-COMMENT.) |
| 32 |
% \fi |
| 33 |
% |
| 34 |
% \def\filename{halloweenmath.dtx} |
| 35 |
% \def\fileversion{0.11} |
| 36 |
% \def\filedate{2019/11/01} |
| 37 |
% \def\docdate {2019/11/01} |
| 38 |
% \def\doclongdate{November~1, 2019} |
| 39 |
% |
| 40 |
% \CheckSum{2262} |
| 41 |
% |
| 42 |
% \changes{0.01}{2017 Jan 06}{First writing of the code} |
| 43 |
% \changes{0.10}{2017 Apr 16}{Changed the look of the broom in the extensible |
| 44 |
% ``arrow-like'' symbols, but retained the old one in newly added pitchforks} |
| 45 |
% \changes{0.10}{2017 Apr 16}{Added bats (ordinary symbols and extensible |
| 46 |
% ``arrow-like'' series)} |
| 47 |
% \changes{0.10}{2017 Apr 16}{Added skulls (binary operators and ``large'' |
| 48 |
% operators)} |
| 49 |
% \changes{0.10}{2017 Apr 16}{Added ``unwitched'' extensible brooms and |
| 50 |
% pitchforks} |
| 51 |
% \changes{0.10}{2017 Apr 16}{Added ``Boo'' options} |
| 52 |
% |
| 53 |
%% \CharacterTable |
| 54 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 55 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 56 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 57 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 58 |
%% Dollar \$ Percent \% Ampersand \& |
| 59 |
%% Acute accent \' Left paren \( Right paren \) |
| 60 |
%% Asterisk \* Plus \+ Comma \, |
| 61 |
%% Minus \- Point \. Solidus \/ |
| 62 |
%% Colon \: Semicolon \; Less than \< |
| 63 |
%% Equals \= Greater than \> Question mark \? |
| 64 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 65 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 66 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 67 |
%% Right brace \} Tilde \~} |
| 68 |
% |
| 69 |
% \MakeShortVerb{\"} |
| 70 |
% \DeleteShortVerb{\|} |
| 71 |
% |
| 72 |
% \DoNotIndex{\begin,\end,\def,\let,\else,\fi,\@ifdefinable,\@empty} |
| 73 |
% \DoNotIndex{\newcommand,\renewcommand} |
| 74 |
% \DoNotIndex{\newenvironment,\renewenvironment} |
| 75 |
% \DoNotIndex{\z@,\z@skip,\p@,\@ne,\tw@,\thr@@,\@m,\@M,\m@ne} |
| 76 |
% \DoNotIndex{\setlength,\setcounter,\addtolength} |
| 77 |
% \DoNotIndex{\expandafter,\do,\relax,\advance,\multiply,\divide} |
| 78 |
% \DoNotIndex{\DeclareOption,\ExecuteOptions,\ProcessOptions} |
| 79 |
% \DoNotIndex{\",\.,\@} |
| 80 |
% \DoNotIndex{\-,\+} |
| 81 |
% |
| 82 |
% \IndexPrologue{ |
| 83 |
% \section{\indexname} |
| 84 |
% Numbers in italics refer to the page where the corresponding entry |
| 85 |
% is described, the ones underlined to the code line of the |
| 86 |
% definition, the rest to the code lines where the entry is used. |
| 87 |
% } |
| 88 |
% \setcounter{IndexColumns}{2} |
| 89 |
% |
| 90 |
% \GlossaryPrologue{\section{Change History}} |
| 91 |
% |
| 92 |
% \setcounter{StandardModuleDepth}{1} |
| 93 |
% |
| 94 |
% \setlength{\unitlength}{1cm} |
| 95 |
% \definecolor{guidelines}{rgb}{0,.5,1} |
| 96 |
% \definecolor{coverwitch}{rgb}{.1,.4,.5} |
| 97 |
% |
| 98 |
% \newcommand*{\DS}{\textsf{DocStrip}} |
| 99 |
% \newcommand*{\TikZ}{Ti\emph{k}Z} |
| 100 |
% \renewcommand*{\partname}{Part} |
| 101 |
% \newcommand*{\halloweenmath}{halloweenmath} |
| 102 |
% \newcommand*{\amsmath}{amsmath} |
| 103 |
% \newcommand*{\picttwoe}{pict2e} |
| 104 |
% \newcommand*{\textoken}[1]{\(\langle\mbox{\normalfont #1}\rangle\)} |
| 105 |
% \makeatletter |
| 106 |
% \newcommand*{\myspecialindex}[2] |
| 107 |
% {\special@index{#1\actualchar#2\encapchar main}} |
| 108 |
% \newcounter{paramlist} |
| 109 |
% \renewcommand*{\theparamlist}{^^A |
| 110 |
% \ifnum \value{paramlist}>\z@ |
| 111 |
% \ifnum \value{paramlist}<10 |
| 112 |
% \arabic{paramlist}^^A |
| 113 |
% \else |
| 114 |
% \@ctrerr |
| 115 |
% \fi |
| 116 |
% \fi |
| 117 |
% } |
| 118 |
% \newenvironment*{paramlist}{^^A |
| 119 |
% \setcounter{paramlist}\z@ |
| 120 |
% \@beginparpenalty \@M \relax |
| 121 |
% \setlength\topsep{\z@}^^A |
| 122 |
% \tabbing |
| 123 |
% \(\mbox{\#0}\leftarrow {\,}\)\=\kill |
| 124 |
% }{^^A |
| 125 |
% \endtabbing |
| 126 |
% } |
| 127 |
% \newcommand*{\param}{^^A |
| 128 |
% \stepcounter{paramlist}^^A |
| 129 |
% \(\mbox{\#\theparamlist}\leftarrow{}\)\>^^A |
| 130 |
% } |
| 131 |
% \newenvironment*{tightitemize}{^^A |
| 132 |
% \itemize |
| 133 |
% \setlength\topsep{\p@ \@plus\p@}^^A |
| 134 |
% \setlength\partopsep{\z@}^^A |
| 135 |
% \setlength\itemsep{\p@}^^A |
| 136 |
% \setlength\parsep{\z@ \@plus\p@}^^A |
| 137 |
% \setlength\parskip{\parsep}^^A |
| 138 |
% \setlength\@topsepadd{\topsep}^^A |
| 139 |
% \setlength\@topsep{\@topsepadd}^^A |
| 140 |
% }{\enditemize} |
| 141 |
% \newcommand{\@no@imp@StopEventually}[1]{#1\endinput} |
| 142 |
% \newcommand*{\IfImplementation}{% |
| 143 |
% \ifx \StopEventually \@no@imp@StopEventually |
| 144 |
% \expandafter\@secondoftwo |
| 145 |
% \else |
| 146 |
% \expandafter\@firstoftwo |
| 147 |
% \fi |
| 148 |
% } |
| 149 |
% \makeatother |
| 150 |
% \newcommand*{\counterindex}[1]{\myspecialindex{#1}{{\string\ttfamily |
| 151 |
% \space #1} (counter)}\index{counters:\levelchar{\protect\ttfamily |
| 152 |
% #1}\encapchar usage}} |
| 153 |
% \newcommand*{\optuseindex}[1]{\SortIndex{#1}{\protect\opt{#1} |
| 154 |
% (option)\encapchar usage}\index{options:\levelchar |
| 155 |
% \protect\opt{#1}\encapchar usage}} |
| 156 |
% ^^A REMEMBER: "\DeclareTextFontCommand" can be used only in preamble! |
| 157 |
% \DeclareRobustCommand*{\packlass}[1]{{\normalfont\sffamily #1}} |
| 158 |
% \DeclareRobustCommand*{\filedir} [1]{{\normalfont\ttfamily #1}} |
| 159 |
% \DeclareRobustCommand*{\env}[1]{{\normalfont\ttfamily #1}} |
| 160 |
% ^^A \DeclareRobustCommand*{\ctr}[]{{\normalfont\ttfamily #1}} |
| 161 |
% \DeclareRobustCommand*{\opt}[1]{{\normalfont\ttfamily #1}} |
| 162 |
% \newcommand*{\sopt}[1]{\mbox{\opt{#1}}\optuseindex{#1}} |
| 163 |
% \newcommand*{\binvert}{\mathbin{|}} |
| 164 |
% \DeclareRobustCommand*{\TeXSXFullName}{^^A |
| 165 |
% \TeX \kern .13333em --\,\LaTeX\ Stack Exchange^^A |
| 166 |
% } |
| 167 |
% \DeclareRobustCommand*{\TeXSXAbbrev}{\TeX.SX\@} |
| 168 |
% \DeclareRobustCommand*{\TeXSXuser}[1]{{\normalfont\sffamily #1}} |
| 169 |
% \DeclareRobustCommand*{\TeXtok}[1]{\mbox{$\langle$#1\/$\rangle$}} |
| 170 |
% \newcommand*{\cfr}{\TeXSXuser{cfr}} |
| 171 |
% \newcommand*{\eg}{\emph{e.g.}, } ^^A note the space at the end |
| 172 |
% |
| 173 |
% \providecommand*{\href}[3][]{#3} |
| 174 |
% \providecommand*{\pdfbookmark}[3][]{} |
| 175 |
% \providecommand*{\nolinkurl}[1]{\url{#1}} ^^A if hyperref isn't loades, |
| 176 |
% ^^A hand over to url package |
| 177 |
% \providecommand*{\hypersetup}{} |
| 178 |
% |
| 179 |
% \addtolength{\marginparwidth}{2pt} |
| 180 |
% |
| 181 |
% \newcommand*{\magicstar}[1]{^^A |
| 182 |
% \begingroup |
| 183 |
% \setlength\unitlength{#1\unitlength}^^A |
| 184 |
% \begin{picture}(0,0)^^A |
| 185 |
% \polygon*(0,1)(-.225,.309)(-.951,.309)(-.363,-.118)(-.588,-.809)^^A |
| 186 |
% (0,-.382)(.588,-.809)(.363,-.118)(.951,.309)(.225,.309)^^A |
| 187 |
% \end{picture}^^A |
| 188 |
% \endgroup |
| 189 |
% } |
| 190 |
% |
| 191 |
% |
| 192 |
% |
| 193 |
% \title{ |
| 194 |
% The \packlass{\halloweenmath} package:\\ |
| 195 |
% scary and creepy math symbols\\ |
| 196 |
% with \texorpdfstring{\hologo{AmSLaTeX}}{AMS-LaTeX}\ |
| 197 |
% integration\thanks{This file has |
| 198 |
% version~\fileversion, release date \filedate; |
| 199 |
% last documentation update: \docdate. |
| 200 |
% Copyright \copyright~2019 by G.~Mezzetti |
| 201 |
% (see page~\pageref{S:Copy}).} |
| 202 |
% } |
| 203 |
% \author{G. Mezzetti} |
| 204 |
% \date{\doclongdate} |
| 205 |
% |
| 206 |
% \hypersetup{ |
| 207 |
% pdftitle = {The halloweenmath package: |
| 208 |
% scary and creepy math symbols |
| 209 |
% with AMS-LaTeX integration}, |
| 210 |
% pdfauthor = {G. Mezzetti}, |
| 211 |
% pdfsubject = {Documentation of the halloweenmath package}, |
| 212 |
% pdfkeywords = {Halloween, math, scary mathematical symbols}, |
| 213 |
% pdfcreationdate = {D:20191101120000}, |
| 214 |
% pdfmoddate = {D:20191101120000}, |
| 215 |
% bookmarksopen, |
| 216 |
% bookmarksopenlevel = 1 |
| 217 |
% } |
| 218 |
% |
| 219 |
% \pdfbookmark[0]{Front Matter}{FrontMatter} |
| 220 |
% \maketitle |
| 221 |
% |
| 222 |
% \begin{abstract} |
| 223 |
% This document describes a \LaTeX\ package that originates from a question |
| 224 |
% asked for enjoyment on |
| 225 |
% \href{https://tex.stackexchange.com/}{\emph{\TeXSXFullName}} |
| 226 |
% (see~\cite{bib:cfr}) by the user |
| 227 |
% \href{https://tex.stackexchange.com/users/39222/cfr}{\cfr}; this package |
| 228 |
% defines a handful of commands for typesetting mathematical symbols of |
| 229 |
% various kinds (including ``large'' operators, extensible arrow-like |
| 230 |
% relations, and growing arrow-like math accents) that all draw from the |
| 231 |
% classic Halloween-related iconography (pumpkins, witches, ghosts, cats, and |
| 232 |
% so on) while being, at the same time, seamlessly integrated within the rest |
| 233 |
% of the mathematics produced by \hologo{LaTeX}\slash\hologo{AmSLaTeX}. |
| 234 |
% \end{abstract} |
| 235 |
% |
| 236 |
% \vfil |
| 237 |
% |
| 238 |
% \begin{center} |
| 239 |
% \color{coverwitch} |
| 240 |
% \begin{picture}(0,8)(0,-4) |
| 241 |
% \roundcap |
| 242 |
% \linethickness{4pt} |
| 243 |
% \Line(-2,-2)(6,2) |
| 244 |
% \linethickness{2pt} |
| 245 |
% \Line(-2,-2)(-5,-2.5) |
| 246 |
% \Line(-2,-2)(-4.85,-2.95) |
| 247 |
% \Line(-2,-2)(-4.6,-3.3) |
| 248 |
% \Line(-2,-2)(-4.35,-3.65) |
| 249 |
% \Line(-2,-2)(-4,-4) |
| 250 |
% \put(-3,-1.2){\magicstar{.4}} |
| 251 |
% \put(-4.1,-.8){\magicstar{.8}} |
| 252 |
% \put(-5.4,-1.8){\magicstar{.6}} |
| 253 |
% \Line(0,1.8)(-.2,1.4) |
| 254 |
% \polyline(.6,3.2)(.8,3)(1.5,3) |
| 255 |
% \put(1.6,3){\oval(.2,.2)[tl]} |
| 256 |
% \put(1.6,3){\oval(.2,.2)[r]} |
| 257 |
% \polyline(1.6,2.9)(1.8,2.4)(1.2,2.4)(1,2.5)(1,2.3) |
| 258 |
% (1.2,2)(1.6,1.8)(1.7,1.8)(1.7,1.6)(1.4,1.5) |
| 259 |
% (0,1.8)(-.2,2) |
| 260 |
% \Line(.2,2.8)(.6,3) |
| 261 |
% \polygon*(-1,2)(-2,0)(-2,-1)(-1.5,-2)(1,-2) |
| 262 |
% (0,-3.6)(.4,-3.8)(.6,-3.4)(.8,-4)(2,-4) |
| 263 |
% (1,-3.6)(1,-3)(1.6,-3.2)(2,-1.5)(0,-1) |
| 264 |
% (0,-.6)(1.4,-.6)(1.8,-.4)(2,0)(0,0) |
| 265 |
% (0,1.4) |
| 266 |
% \polygon*(-3,2)(-2.8,3)(-2,4)(-1.5,4.1)(-1,4)(0,3.5) |
| 267 |
% (1,3.8)(2.5,3.5)(3,3.3)(2,3.4)(0,3)(-1,2)(-2,1.6) |
| 268 |
% (-2.7,2)(-2,2)(-1,3)(-2,3.5)(-2.6,3) |
| 269 |
% \linethickness{.4pt} |
| 270 |
% \Line(1.7,1.6)(2,1.6) |
| 271 |
% \Line(1.7,1.6)(1.9,1.4) |
| 272 |
% \Line(1.7,1.6)(1.7,1.3) |
| 273 |
% ^^A |
| 274 |
% ^^A The cat: |
| 275 |
% \put(3.6,1){\circle*{1.2}} |
| 276 |
% \put(4.2,1.4){\circle*{1}} |
| 277 |
% \put(4.5,2){\circle*{.8}} |
| 278 |
% \polygon*(4.1,2)(4.1,2.5)(4.5,2.2)(4.9,2.5)(4.9,2) |
| 279 |
% \linethickness{4pt} |
| 280 |
% \cbezier(3.2,.6)(2,0)(4.2,-.4)(3,-1) |
| 281 |
% \buttcap |
| 282 |
% \linethickness{.4pt} |
| 283 |
% \Line(3.8,2.1)(5.2,1.9) |
| 284 |
% \Line(3.8,2)(5.2,2) |
| 285 |
% \Line(3.8,1.9)(5.2,2.1) |
| 286 |
% \end{picture} |
| 287 |
% \end{center} |
| 288 |
% |
| 289 |
% \newpage |
| 290 |
% \tableofcontents |
| 291 |
% \IfImplementation{\listoffigures}{} |
| 292 |
% |
| 293 |
% \newpage |
| 294 |
% \begingroup |
| 295 |
% |
| 296 |
% \setlength{\parskip}{\medskipamount} |
| 297 |
% \setlength{\parindent}{0pt} |
| 298 |
% |
| 299 |
% \section*{Copyright notice} |
| 300 |
% \label{S:Copy} |
| 301 |
% \vspace{-\parskip} |
| 302 |
% |
| 303 |
% Copyright \copyright~2019 by Gustavo \textsc{Mezzetti}. |
| 304 |
% All rights are reserved, except as noted below. |
| 305 |
% |
| 306 |
% This document has been produced by feeding to a \LaTeX\ typesetting engine |
| 307 |
% the file \filedir{\filename} version \fileversion\ (\docdate). This file |
| 308 |
% is part of a work named ``\packlass{\halloweenmath} package'', and may be |
| 309 |
% distributed and/or modified only as a part thereof. |
| 310 |
% Subsection~\ref{sS:License} on page~\pageref{sS:License} explains the |
| 311 |
% conditions under which the \packlass{\halloweenmath} package may be |
| 312 |
% distributed and/or modified. |
| 313 |
% |
| 314 |
% The \packlass{\halloweenmath} package has the following LPPL maintenance |
| 315 |
% status:\\ |
| 316 |
% ``author-maintained''. |
| 317 |
% |
| 318 |
% Permission is granted to make new printed copies of this document, by any |
| 319 |
% means (\emph{e.g.}, photocopying, direct printing from the electronic |
| 320 |
% version, and so on). |
| 321 |
% |
| 322 |
% Note, though, that distribution of this document alone is ``distribution of |
| 323 |
% only part of the Work'' in the sense of the \LaTeX\ Project Public License, |
| 324 |
% and should therefore be avoided: please distribute, in addition, the source |
| 325 |
% file \filedir{\halloweenmath.dtx} together with all other files listed in |
| 326 |
% \filedir{manifest.txt}, as explained as well in Subsection~\ref{sS:License} |
| 327 |
% and in the file \filedir{manifest.txt} itself. |
| 328 |
% |
| 329 |
% \section*{Author's addresses} |
| 330 |
% \label{S:MyAddresses} |
| 331 |
% \vspace{-\parskip} |
| 332 |
% |
| 333 |
% The recommended way to contact the author is by e-mail; his address is: |
| 334 |
% |
| 335 |
% \begin{list}{\setlength{\topsep}{0pt}}\item\relax |
| 336 |
% gustavo dot mezzetti at istruzione dot it |
| 337 |
% \end{list} |
| 338 |
% |
| 339 |
% Please include the \emph{exact} phrase \verb*|halloweenmath package| in the |
| 340 |
% \emph{subject} of your message; otherwise, your message could be |
| 341 |
% thrown away by a mail filter. In this regard, the weakness of the |
| 342 |
% laws concerning the protection of privacy forces me to explicitly |
| 343 |
% forbid the use of the above address for any kind of advertising, |
| 344 |
% marketing, polling, or similar commercial or statistical contact. |
| 345 |
% |
| 346 |
% If you have no e-mail access, write to: |
| 347 |
% |
| 348 |
% \begin{list}{\setlength{\topsep}{0pt}}\item\relax |
| 349 |
% Gustavo \textsc{Mezzetti}\\ |
| 350 |
% L.~S.~U. ``A.~di Savoia Duca d'Aosta''\\ |
| 351 |
% Via del Santo, 57\\ |
| 352 |
% I--35123\quad PADOVA\quad PD\\ |
| 353 |
% Italy |
| 354 |
% \end{list} |
| 355 |
% |
| 356 |
% \endgroup |
| 357 |
% |
| 358 |
% |
| 359 |
% |
| 360 |
% \setcounter{secnumdepth}{0} |
| 361 |
% |
| 362 |
% |
| 363 |
% |
| 364 |
% \clearpage |
| 365 |
% \section{Introduction} |
| 366 |
% |
| 367 |
% On October~31, 2016, around 3 in the morning (GMT\@), user |
| 368 |
% \href{https://tex.stackexchange.com/users/39222/cfr}{\cfr} asked a |
| 369 |
% question~\cite{bib:cfr} on the |
| 370 |
% \href{https://tex.stackexchange.com/}{\emph{\TeXSXFullName} network}, |
| 371 |
% challenging other users to contribute \LaTeX\ documents that showcased |
| 372 |
% ``the spookiest, creepiest images'' ever possible. I~was aware of a |
| 373 |
% method---well known, nonetheless---to integrate arbitrary pictures into |
| 374 |
% math formulas as though they were mathematical symbols, so, on the pretext |
| 375 |
% ``that, since \hologo{(La)TeX} is a language primarily designed to handle |
| 376 |
% text with math, the lack of a `math-flavored' |
| 377 |
% answer~\ldots\linebreak[0]\,was a gap that ought to be filled'', I~wrote an |
| 378 |
% answer implementing a command that drew a (not particularly spooky or |
| 379 |
% creepy) little witch astride of her broom, but with the silly distinctive |
| 380 |
% feature of being seen by \LaTeX\ as a mathematical ``large'' operator like |
| 381 |
% "\sum", "\prod", "\int", or "\bigcup"; this first command was named |
| 382 |
% "\mathwitch" and was ``intended for denoting the operation of applying |
| 383 |
% black magic to the ensuing subformula''. |
| 384 |
% |
| 385 |
% I~subsequently added an extensible math accent similar to |
| 386 |
% "\overrightarrow", but with the arrow replaced by a broom carrying the same |
| 387 |
% witch and a black cat, and my answer ended up winning the contest (the |
| 388 |
% presence of the cat turned out to be a decisive factor); besides, some |
| 389 |
% users were so enthusiast of the new commands that they requested that they |
| 390 |
% were re-implemented as a new, stand-alone package. Well, here it is. |
| 391 |
% |
| 392 |
% In the writing of the package, more features, and creatures, have been |
| 393 |
% added. Also available now are: |
| 394 |
% \begin{itemize} |
| 395 |
% \item |
| 396 |
% ghosts, both still and hovering (or, if you prefer, acting both as ordinary |
| 397 |
% symbols and as math accents similar to "\overrightarrow"); |
| 398 |
% \item |
| 399 |
% a "\pumpkin" binary operator, with an associated ``large'' operator named |
| 400 |
% "\bigpumpkin"\footnote{\cs{greatpumpkin} is available as a synonym, in |
| 401 |
% homage to Linus van Pelt.} (cf.~"\cup" vs.\ "\bigcup", "\cap" vs.\ |
| 402 |
% "\bigcap", "\vee" vs.\ "\bigvee", "\oplus" vs.\ "\bigoplus",\,\ldots); |
| 403 |
% \item |
| 404 |
% extensible ``arrow-like'' brooms that act as relation symbols; |
| 405 |
% \item |
| 406 |
% clouds, for denoting unscrutable subformulas (this one is even sensible!); |
| 407 |
% \item |
| 408 |
% fluttering bats, skulls, and more. |
| 409 |
% \end{itemize} |
| 410 |
% All the above are available for the \texttt{bold} math version as well as |
| 411 |
% for the \texttt{normal} one. |
| 412 |
% The symbols provided should prove sufficient for preparing lecture notes, |
| 413 |
% slides, tests, or even exams to amuse~(?\@) your students with during the |
| 414 |
% Halloween period. Of course, any suggestion for additions and/or |
| 415 |
% improvements are most welcome: you can find my addresses on |
| 416 |
% page~\pageref{S:MyAddresses}. |
| 417 |
% |
| 418 |
% As for the name of this new package, \cfr\ initially |
| 419 |
% \href{https://tex.stackexchange.com/questions/336768/seasonal-challenge-contributions-from-texing-dead-welcome#comment828307_337719}{proposed} |
| 420 |
% \packlass{mathwitch} (from the name of the main command); |
| 421 |
% \href{https://tex.stackexchange.com/users/81905/guilherme-zanotelli}{\TeXSXuser{Guilherme |
| 422 |
% Zanotelli}} then |
| 423 |
% \href{https://tex.stackexchange.com/questions/336768/seasonal-challenge-contributions-from-texing-dead-welcome#comment828796_337719}{suggested} |
| 424 |
% \packlass{mathemagics} (a truly befitting pun!); but in the end I~decided |
| 425 |
% to choose \packlass{\halloweenmath} because (1)~it instantly and clearly |
| 426 |
% communicates the context in which the package arose, as well as the purpose |
| 427 |
% for which it was written, and (2)~it is 13~characters long. |
| 428 |
% |
| 429 |
% This work is dedicated to \cfr, without whom it would have never seen the |
| 430 |
% light, and to whom I~am offering it ``as an Epiphany present''---or rather, |
| 431 |
% as one would say in Italian, ``\emph{come regalo per la Befana}'', where |
| 432 |
% the last word bears not-so-subtle connections with the world of |
| 433 |
% witches\ldots\footnote{Indeed, the first version of this package was |
| 434 |
% released on January~6, 2017.} |
| 435 |
% |
| 436 |
% \subsection{Disclaimer} |
| 437 |
% |
| 438 |
% Although a \LaTeX\ package is a piece of software that executes in a |
| 439 |
% rather protected environment and should therefore be relatively |
| 440 |
% incapable of doing serious damages, no warranty is given, as usual with |
| 441 |
% computer software, that this code will work properly, or even that it |
| 442 |
% will work at all. To be on the safe side, be aware that using this |
| 443 |
% code can even result in loss of data and/or damages to your disks and |
| 444 |
% your storage media. If you use this code, you do so exclusively at |
| 445 |
% your own risk! |
| 446 |
% |
| 447 |
% See Subsection~\ref{sS:License} and the \LaTeX\ Project Public |
| 448 |
% Licence for more information. |
| 449 |
% |
| 450 |
% \subsection{About this document} |
| 451 |
% |
| 452 |
% This document, like many documentation files distributed for \LaTeX, is |
| 453 |
% divided into two parts. |
| 454 |
% |
| 455 |
% The first part, \emph{User's Manual}, contains all the documentation you |
| 456 |
% need to be able to \emph{use} the \packlass{\halloweenmath} package. Every |
| 457 |
% user of this package will probably want to read this part. |
| 458 |
% |
| 459 |
% The second part, \emph{Implementation}, can be omitted if you |
| 460 |
% want (explanations on how to omit it are given at the beginning |
| 461 |
% of the part itself), and contains information that concerns only |
| 462 |
% ``hackers'' who want to learn how the package that this document |
| 463 |
% presents is \emph{implemented}. Actually, this part contains the |
| 464 |
% complete listing of the \LaTeX\ code that implements the macros, |
| 465 |
% in the usual \DS\ format; if you are not a \LaTeX\ hacker, this |
| 466 |
% part will probably have little meaning to you. |
| 467 |
% |
| 468 |
% In this release too, alas, I~have to ask to be excused for not having |
| 469 |
% completed the comments in the \emph{Implementation} part. Some~35\% of the |
| 470 |
% code is still uncommented, and, as I~had already said in the |
| 471 |
% \emph{Introduction} to version~0.01, at present I~cannot yet make any |
| 472 |
% reliable guess as to when (or even if!\@) I'll be able to finish the work. |
| 473 |
% It is precisely for this reason that I~decided to release it in this |
| 474 |
% incomplete form, to avoid deferring indefinitely the availability of the |
| 475 |
% new, horrifying features that this version introduces. |
| 476 |
% |
| 477 |
% |
| 478 |
% |
| 479 |
% \setcounter{secnumdepth}{3} |
| 480 |
% |
| 481 |
% |
| 482 |
% |
| 483 |
% \clearpage |
| 484 |
% \part{User's Manual} |
| 485 |
% |
| 486 |
% \section{About this part} |
| 487 |
% |
| 488 |
% This part tells you how to use the \packlass{\halloweenmath} package. It |
| 489 |
% also contains detailed instructions on how to install it and how to |
| 490 |
% generate this same documentation, but normally you need not bother reading |
| 491 |
% this information, either because your \TeX\ distribution already includes |
| 492 |
% both the package code and its documentation, or because package |
| 493 |
% installation is implicitly dealt with by the automatic update mechanism |
| 494 |
% provided by the distribution itself. |
| 495 |
% |
| 496 |
% \section{How to use the \packlass{\halloweenmath} package} |
| 497 |
% \label{S:Usage} |
| 498 |
% |
| 499 |
% This section explains everything you need to know in order to be able to |
| 500 |
% use the \packlass{\halloweenmath} package. However, to keep this document |
| 501 |
% independent of the package itself, the output produced by the various |
| 502 |
% commands is not shown here: for this, you are referred to |
| 503 |
% \cite{bib:manual}. |
| 504 |
% |
| 505 |
% \subsection{Package loading} |
| 506 |
% |
| 507 |
% The usual "\usepackage" declaration is used, as in |
| 508 |
% \begin{verbatim}\usepackage{halloweenmath}\end{verbatim} It should be |
| 509 |
% noted, however, that the \packlass{\halloweenmath} package requires the |
| 510 |
% \packlass{\amsmath} package, and loads it (without specifying any option) |
| 511 |
% if it is not already loaded. If you want to pass options to |
| 512 |
% \packlass{\amsmath}, load it before \packlass{\halloweenmath}. |
| 513 |
% |
| 514 |
% The \packlass{\halloweenmath} package defines no options by itself; |
| 515 |
% nevertheless, it does honor the [\opt{no}]\opt{sumlimits} options from the |
| 516 |
% \packlass{\amsmath} package (see below). |
| 517 |
% |
| 518 |
% \subsection{Scary symbols} |
| 519 |
% |
| 520 |
% This package defines some commands \emph{for use in mathematical mode}, |
| 521 |
% which provide a handful of symbols, all of which honor the \texttt{bold} |
| 522 |
% math version, when in force. They can be loosely grouped as follows. |
| 523 |
% |
| 524 |
% \subsubsection{Pumpkins} |
| 525 |
% \label{ssS:Pumpkins} |
| 526 |
% |
| 527 |
% \DescribeMacro{\pumpkin} |
| 528 |
% \DescribeMacro{\bigpumpkin} |
| 529 |
% \DescribeMacro{\greatpumpkin} |
| 530 |
% It is even too obvious to begin with pumpinks. In this regard, the package |
| 531 |
% provides two interrelated commands: |
| 532 |
% \begin{itemize} |
| 533 |
% \item |
| 534 |
% "\pumpkin" yields a binary operator symbol in the shape of a (little) |
| 535 |
% pumpkin; |
| 536 |
% \item |
| 537 |
% "\bigpumpkin" is the ``large'' operator that is to "\pumpkin" as |
| 538 |
% "\bigoplus" is to "\oplus"; it typesets a somewhat bigger pumpkin in |
| 539 |
% in-line formulas, which becomes significantly larger in displayed formulas. |
| 540 |
% \end{itemize} |
| 541 |
% The [\opt{no}]\opt{sumlimits} options from the \packlass{\amsmath} package |
| 542 |
% also affect the "\bigpumpkin" command. As a homage to Linus van Pelt, |
| 543 |
% "\greatpumpkin" is available as a perfect synonym for "\bigpumpkin". |
| 544 |
% |
| 545 |
% \subsubsection{Witches, brooms, and black cats} |
| 546 |
% \label{ssS:Witches} |
| 547 |
% |
| 548 |
% All this arose from a witch. |
| 549 |
% |
| 550 |
% \DescribeMacro{\mathwitch} \DescribeMacro{\reversemathwich} |
| 551 |
% The "\mathwitch" command yields a ``large'' operator symbol, similar to |
| 552 |
% "\sum", representing a witch astride of a broom (in my answers |
| 553 |
% to~\cite{bib:cfr}, I~claimed that this symbol denotes the operation of |
| 554 |
% applying black magic to the ensuing subformula, a fundamental operation in |
| 555 |
% so many mathematical proofs\ldots). There is also a "\reversemathwich" |
| 556 |
% command, which produces an operator that looks like a mirror image of the |
| 557 |
% above, for denoting the inverse operation of undoing the black magic. Both |
| 558 |
% commands honor the [\opt{no}]\opt{sumlimits} options from the |
| 559 |
% \packlass{\amsmath} package. |
| 560 |
% |
| 561 |
% \DescribeMacro{\xrightwitchonbroom} |
| 562 |
% \DescribeMacro{\xleftwitchonbroom} |
| 563 |
% Witches infest the field of extensible ``arrow-like'' symbols too: the |
| 564 |
% commands "\xrightwitchonbroom" and "\xleftwitchonbroom" are syntactically |
| 565 |
% identical to, \eg "\xrightarrow", but produce an extensible broom with a |
| 566 |
% witch sitting on it. That is to say, the syntax for "\xrightwitchonbroom" |
| 567 |
% is as follows |
| 568 |
% \begin{flushleft} |
| 569 |
% \cmd{\xrightwitchonbroom}\oarg{under text}\marg{over text} |
| 570 |
% \end{flushleft} |
| 571 |
% and "\xleftwitchonbroom" is similar. |
| 572 |
% |
| 573 |
% \DescribeMacro{\xrightwitchonpitchfork} |
| 574 |
% \DescribeMacro{\xleftwitchonpitchfork} |
| 575 |
% In version~0.01 of this package, the "\x"$\,*\,$"witchonbroom" commands |
| 576 |
% drew under the witch a ``broom'' that, actually, looked more like a |
| 577 |
% pitchfork (\TeXSXuser{cfr} had already complained about this in |
| 578 |
% \href{https://tex.stackexchange.com/questions/336768/seasonal-challenge-contributions-from-texing-dead-welcome#comment829686_337719}{one |
| 579 |
% of her comments} to my original answer on \TeXSXAbbrev); in the present |
| 580 |
% version this has been corrected, but the output produced by the first |
| 581 |
% version (which I~liked) can still be obtained by means of these two |
| 582 |
% commands, whose name is, indeed, more appropriate to the look of the |
| 583 |
% symbols they yield. Obviously, their syntax remains identical, \eg |
| 584 |
% \begin{flushleft} |
| 585 |
% \cmd{\xleftwitchonpitchfork}\oarg{under text}\marg{over text} |
| 586 |
% \end{flushleft} |
| 587 |
% |
| 588 |
% \DescribeMacro{\overrightwitchonbroom} |
| 589 |
% \DescribeMacro{\overleftwitchonbroom} |
| 590 |
% \DescribeMacro{\underrightwitchonbroom} |
| 591 |
% \DescribeMacro{\underleftwitchonbroom} |
| 592 |
% Finally, the four commands |
| 593 |
% \begin{flushleft} |
| 594 |
% "\overrightwitchonbroom "\marg{subformula} \\ |
| 595 |
% "\overleftwitchonbroom "\marg{subformula} \\ |
| 596 |
% "\underrightwitchonbroom"\marg{subformula} \\ |
| 597 |
% "\underleftwitchonbroom "\marg{subformula} |
| 598 |
% \end{flushleft} |
| 599 |
% are similar to, \eg "\overrightarrow", and typeset a broom, with a witch |
| 600 |
% sitting on it, over or under the subformula specified in their |
| 601 |
% argument.\footnote{It should be noted that, in my answers |
| 602 |
% to~\cite{bib:cfr}, only the command that now corresponds to |
| 603 |
% \cmd{\overrightwitchonbroom} was provided, but under the different name |
| 604 |
% \cmd{\overrightbroom}.} |
| 605 |
% \DescribeMacro{\overrightwitchonpitchfork} |
| 606 |
% \DescribeMacro{\overleftwitchonpitchfork} |
| 607 |
% \DescribeMacro{\underrightwitchonpitchfork} |
| 608 |
% \DescribeMacro{\underleftwitchonpitchfork} |
| 609 |
% Also in this case, the look of the symbols they draw has changed since |
| 610 |
% version~0.01 of this package, but the old shapes have been kept available |
| 611 |
% under different, and more appropriate, names: just use |
| 612 |
% \begin{flushleft} |
| 613 |
% "\overrightwitchonpitchfork "\marg{subformula} \\ |
| 614 |
% "\overleftwitchonpitchfork "\marg{subformula} \\ |
| 615 |
% "\underrightwitchonpitchfork"\marg{subformula} \\ |
| 616 |
% "\underleftwitchonpitchfork "\marg{subformula} |
| 617 |
% \end{flushleft} |
| 618 |
% instead of the above. |
| 619 |
% |
| 620 |
% \paragraph*{Important note:} |
| 621 |
% All the commands described in this subsection have a \mbox{$*$-form} that |
| 622 |
% adds a black cat on the broomstick. The syntax should be easy to remember, |
| 623 |
% since the additional asterisk can be thought of as reminiscent of the cat. |
| 624 |
% |
| 625 |
% \subsubsection{Ghosts} |
| 626 |
% |
| 627 |
% Of course, on Halloween, ghosts cannot be missing either. |
| 628 |
% |
| 629 |
% \DescribeMacro{\mathghost} |
| 630 |
% \DescribeMacro{\mathrightghost} |
| 631 |
% \DescribeMacro{\mathleftghost} |
| 632 |
% There are three similar commands (without arguments) that produce ordinary |
| 633 |
% symbols, that is, symbols that are treated like letters: the "\mathghost" |
| 634 |
% command yield a symbol resembling a ghost standing upfront; the |
| 635 |
% "\mathrightghost" (resp., "\mathleftghost") command gives a symbol that |
| 636 |
% looks like a ghost moving toward the right (resp., the left). |
| 637 |
% |
| 638 |
% \DescribeMacro{\xrightswishingghost} |
| 639 |
% \DescribeMacro{\xleftswishingghost} |
| 640 |
% Once again, ghosts too haunt the region of extensible ``arrow-like'' |
| 641 |
% symbols: |
| 642 |
% \begin{flushleft} |
| 643 |
% "\xrightswishingghost"\oarg{under text}\marg{over text} \\ |
| 644 |
% "\xleftswishingghost "\oarg{under text}\marg{over text} |
| 645 |
% \end{flushleft} |
| 646 |
% are analogous to, \eg "\xrightarrow", but, in place of the arrow, draw a |
| 647 |
% ghost swishing, respectively, toward the right and toward the left. |
| 648 |
% |
| 649 |
% \DescribeMacro{\overrightswishingghost} |
| 650 |
% \DescribeMacro{\overleftswishingghost} |
| 651 |
% \DescribeMacro{\underrightswishingghost} |
| 652 |
% \DescribeMacro{\underleftswishingghost} |
| 653 |
% It is now easy to guess what the following four commands do: |
| 654 |
% \begin{flushleft} |
| 655 |
% "\overrightswishingghost "\marg{subformula} \\ |
| 656 |
% "\overleftswishingghost "\marg{subformula} \\ |
| 657 |
% "\underrightswishingghost"\marg{subformula} \\ |
| 658 |
% "\underleftswishingghost "\marg{subformula} |
| 659 |
% \end{flushleft} |
| 660 |
% |
| 661 |
% \subsubsection{Bats} |
| 662 |
% |
| 663 |
% For some people, bats are even more horrifying than ghosts. The |
| 664 |
% \packlass{\halloweenmath} package provides a collection of commands for |
| 665 |
% drawing bat-like symbols that are closely analogous to the ghost-related |
| 666 |
% ones. |
| 667 |
% |
| 668 |
% \DescribeMacro{\mathbat} |
| 669 |
% \DescribeMacro{\mathrightbat} |
| 670 |
% \DescribeMacro{\mathleftbat} |
| 671 |
% You can get an ordinary symbol resembling a bat flying, respectively, |
| 672 |
% toward you, toward the right, and toward the left with the three |
| 673 |
% argumentless commands "\mathbat", "\mathrightbat", and "\mathleftbat". The |
| 674 |
% height of these symbols has intentionally been made pretty small, to |
| 675 |
% facilitate their use in superscripts. |
| 676 |
% |
| 677 |
% \DescribeMacro{\xrightflutteringbat} |
| 678 |
% \DescribeMacro{\xleftflutteringbat} |
| 679 |
% You can get extensible ``arrow-like'' relation symbols that depict a |
| 680 |
% fluttering bat by means of the following constructs: |
| 681 |
% \begin{flushleft} |
| 682 |
% "\xrightflutteringbat"\oarg{under text}\marg{over text} \\ |
| 683 |
% "\xleftflutteringbat "\oarg{under text}\marg{over text} |
| 684 |
% \end{flushleft} |
| 685 |
% \DescribeMacro{\overrightflutteringbat} |
| 686 |
% \DescribeMacro{\overleftflutteringbat} |
| 687 |
% \DescribeMacro{\underrightflutteringbat} |
| 688 |
% \DescribeMacro{\underleftflutteringbat} |
| 689 |
% And these are the associated ``over\mbox{-}\slash under-arrow-like'' |
| 690 |
% commands: |
| 691 |
% \begin{flushleft} |
| 692 |
% "\overrightflutteringbat "\marg{subformula} \\ |
| 693 |
% "\overleftflutteringbat "\marg{subformula} \\ |
| 694 |
% "\underrightflutteringbat"\marg{subformula} \\ |
| 695 |
% "\underleftflutteringbat "\marg{subformula} |
| 696 |
% \end{flushleft} |
| 697 |
% |
| 698 |
% \DescribeMacro{\overbat} |
| 699 |
% \DescribeMacro{\underbat} |
| 700 |
% There are, finally, two more commands that have no parallel in the |
| 701 |
% collection of ghostly symbols (because ghost are to tall!): they are |
| 702 |
% \begin{flushleft} |
| 703 |
% "\overbat "$*$\marg{subformula} \\ |
| 704 |
% "\underbat"$*$\marg{subformula} |
| 705 |
% \end{flushleft} |
| 706 |
% where $*$ indicates an optional "*" denoting, as usual, their |
| 707 |
% \mbox{$*$-form}. These constructs typeset \meta{subformula} respectively |
| 708 |
% surmounted by the bat produced by "\mathbat", or with that symbol |
| 709 |
% underneath. The normal (\emph{i.e.}, unstarred) form pretends that the bat |
| 710 |
% has zero width (but some height), so that, say, "$x+\overbat{y}+z$" has the |
| 711 |
% same horizontal spacing as "$x+y+z$"; if you prefer that the actual width |
| 712 |
% of the bat be taken into account instead, then use the starred variants. |
| 713 |
% |
| 714 |
% \subsubsection{Skulls} |
| 715 |
% |
| 716 |
% \DescribeMacro{\skull} |
| 717 |
% \DescribeMacro{\bigskull} |
| 718 |
% For skulls, I~imagined a r\^{o}le very similar to that of |
| 719 |
% \hyperref[ssS:Pumpkins]{pumpkins}. Indeed, anything that is shaped like a |
| 720 |
% human head reminds me of symbols like "\oplus"~($\oplus$) and |
| 721 |
% "\otimes"~($\otimes$), so that my fantasy immediately goes to a binary |
| 722 |
% operator and its associated ``large'' operator. In this case, we have: |
| 723 |
% \begin{itemize} |
| 724 |
% \item |
| 725 |
% "\skull", which is the binary operator (similar to "\oplus"); |
| 726 |
% \item |
| 727 |
% "\bigskull", which is the ``large'' operator (similar to "\bigoplus") and |
| 728 |
% which, like all symbols of this kind, becomes significantly larger in |
| 729 |
% displayed math. |
| 730 |
% \end{itemize} |
| 731 |
% As for all ``large'' operators defined by this package, the |
| 732 |
% [\opt{no}]\opt{sumlimits} options from the \packlass{\amsmath} package |
| 733 |
% affect the "\bigskull" command too. |
| 734 |
% |
| 735 |
% \subsubsection{Other symbols} |
| 736 |
% |
| 737 |
% The \packlass{\halloweenmath} package implements one more symbol that could |
| 738 |
% loosely be connected with the world of witches. |
| 739 |
% |
| 740 |
% \DescribeMacro{\mathcloud} \DescribeMacro{\reversemathcloud} |
| 741 |
% Mathemagicians often deal with unscrutable formulas. To represent them, |
| 742 |
% the "\mathcloud" command (without arguments) is available, which produces a |
| 743 |
% symbol, with the form of a cloud, that behaves to a certain extent like a |
| 744 |
% fraction, in that it is typeset in a significantly larger size in displayed |
| 745 |
% formulas than in in-line ones. The companion command "\reversemathcloud" |
| 746 |
% yields a mirror image of the same symbol. |
| 747 |
% |
| 748 |
% \subsection{More \textquotedblleft arrow-like\textquotedblright\ symbols |
| 749 |
% (these don\textquoteright t scare!)} |
| 750 |
% |
| 751 |
% If designing the first symbol, the "\mathwitch", could be relatively |
| 752 |
% entertaining, the implementation of the other operators and ordinary |
| 753 |
% symbols like "\pumpkin", "\mathghost", "\mathcloud", or "\bigskull" soon |
| 754 |
% became a rather dull and repetitive task, that essentialy consisted of |
| 755 |
% nothing more than placing lots of dots on a grid. The part related to the |
| 756 |
% extensible ``arrow-like'' commands was a bit more amusing, since it |
| 757 |
% involved dealing with at least a few typical \TeX nical aspects. Probably, |
| 758 |
% it was for this reason that this field grew so much in passing from the |
| 759 |
% first release of the package to the second. |
| 760 |
% |
| 761 |
% \subsubsection{Script-style version of standard over\protect\slash under |
| 762 |
% arrows} |
| 763 |
% \label{ssS:StandardArrows} |
| 764 |
% |
| 765 |
% In order to implement our over\slash under ``arrow-like'' symbols, we had |
| 766 |
% to develop an extension of some internal macros of the \packlass{\amsmath} |
| 767 |
% package. These extensions can be applied to produce variants of the |
| 768 |
% standard over\slash under arrows too. |
| 769 |
% |
| 770 |
% \DescribeMacro{\overscriptrightarrow} |
| 771 |
% \DescribeMacro{\overscriptleftarrow} |
| 772 |
% \DescribeMacro{\overscriptleftrightarrow} |
| 773 |
% \DescribeMacro{\underscriptrightarrow} |
| 774 |
% \DescribeMacro{\underscriptleftarrow} |
| 775 |
% \DescribeMacro{\underscriptleftrightarrow} |
| 776 |
% The following six commands are analogous to their standard counterparts |
| 777 |
% whose names do not contain the "script" substring, but the arrows they put |
| 778 |
% above or below the given subformulas are typeset in their relative script |
| 779 |
% style, instead of in the same style as the subformulas themselves (as the |
| 780 |
% standard commands do): |
| 781 |
% \begin{flushleft} |
| 782 |
% "\overscriptrightarrow "\marg{subformula} \\ |
| 783 |
% "\overscriptleftarrow "\marg{subformula} \\ |
| 784 |
% "\overscriptleftrightarrow "\marg{subformula} \\ |
| 785 |
% "\underscriptrightarrow "\marg{subformula} \\ |
| 786 |
% "\underscriptleftarrow "\marg{subformula} \\ |
| 787 |
% "\underscriptleftrightarrow"\marg{subformula} |
| 788 |
% \end{flushleft} |
| 789 |
% |
| 790 |
% \subsubsection{\textquotedblleft Unwitched\textquotedblright\ brooms |
| 791 |
% and pitchforks} |
| 792 |
% |
| 793 |
% In the last years, the use of unmanned aircrafts has become increasingly |
| 794 |
% important, and it has in parallel become more and more common to see flying |
| 795 |
% devices of this kind even across the skies of our cities (just think of |
| 796 |
% drones and of how they tend to be employed ubiquitously for the most |
| 797 |
% heterogeneous kinds of jobs and services). Needless to say, it was |
| 798 |
% inevitable that this aeronautical revolution propagated even to an |
| 799 |
% inherently conservative world like that of sorcery, and it should come as |
| 800 |
% no great surprise to learn that the \packlass{\halloweenmath} package now |
| 801 |
% features ``unwitched'' versions of all the ``arrow-like'' extensible |
| 802 |
% symbols too, both of those that depict brooms and of those which stick to |
| 803 |
% the original pitchfork-like shape. The useful side of these is that the |
| 804 |
% absence of the witch allows for a reduction of the vertical space they take |
| 805 |
% up. |
| 806 |
% |
| 807 |
% \DescribeMacro{\xrightbroom} |
| 808 |
% \DescribeMacro{\xleftbroom} |
| 809 |
% To begin with, we have the extensible ``arrow-like'' relations, those |
| 810 |
% modeled after "\xrightarrow": they are |
| 811 |
% \begin{flushleft} |
| 812 |
% "\xrightbroom"\oarg{under text}\marg{over text} \\ |
| 813 |
% "\xleftbroom "\oarg{under text}\marg{over text} \\ |
| 814 |
% \end{flushleft} |
| 815 |
% and produce extensible brooms \emph{without} a witch sitting on them. |
| 816 |
% \DescribeMacro{\xrightpitchfork} |
| 817 |
% \DescribeMacro{\xleftpitchfork} |
| 818 |
% The commands |
| 819 |
% \begin{flushleft} |
| 820 |
% "\xrightpitchfork"\oarg{under text}\marg{over text} \\ |
| 821 |
% "\xleftpitchfork "\oarg{under text}\marg{over text} |
| 822 |
% \end{flushleft} |
| 823 |
% are almost identical, only they yield pitchforks instead of brooms---or, if |
| 824 |
% you prefer, brooms with the shape that was used in version~0.01 of this |
| 825 |
% package. |
| 826 |
% |
| 827 |
% \DescribeMacro{\rightbroom} |
| 828 |
% \DescribeMacro{\leftbroom} |
| 829 |
% When both the \meta{under text} and the \meta{over text} are void, the |
| 830 |
% "\xrightbroom"\,\ldots\linebreak[0]"\xleftpitchfork" commands yield a |
| 831 |
% symbol that is, on purpose, more or less as large as what "\xrightarrow{}" |
| 832 |
% yields (\emph{i.e.},~$\xrightarrow{}$); but it turns out that such a short |
| 833 |
% broom (or pitchfork) completely lacks the broomstick. For this reason, the |
| 834 |
% two (argumentless) commands "\rightbroom" and "\leftbroom" has been |
| 835 |
% provided too: they typeset a broom the same length of a |
| 836 |
% "\longrightarrow"\slash "\longleftarrow" ($\longrightarrow$\slash |
| 837 |
% $\longleftarrow$). |
| 838 |
% \DescribeMacro{\hmrightpitchfork} |
| 839 |
% \DescribeMacro{\hmleftpitchfork} |
| 840 |
% It would now seem logical to infer that the two companion commands that |
| 841 |
% typeset pitchforks should be named "\rightpitchfork" and "\leftpitchfork"; |
| 842 |
% unfortunately, these names already denote two different (albeit vaguely |
| 843 |
% similar) symbols supplied by the \packlass{MnSymbol} package. Because of |
| 844 |
% this potential name clash, we have chosen instead to call them |
| 845 |
% "\hmrightpitchfork" and "\hmleftpitchfork", respectively (the |
| 846 |
% \texttt{hm}~prefix, of course, stands for ``Halloween math''). |
| 847 |
% |
| 848 |
% Before getting to the group of the ``over\mbox{-}\slash under-arrow-like'' |
| 849 |
% extensible brooms, a preliminary statement needs to be made. For the |
| 850 |
% ``witched'' version of all these, we had chosen to typeset them in the |
| 851 |
% relative script style associated to the style of the affected subformula. |
| 852 |
% For example, in a construct like |
| 853 |
% \begin{verbatim}$W_{\overrightwitchonbroom{x_{1}+\dots+x_{n}}}$\end{verbatim} |
| 854 |
% the subformula "x_{1}+\dots+x_{n}", argument of the |
| 855 |
% "\overrightwitchonbroom" command, is set in script style, therefore the |
| 856 |
% style applied to the covering broom (and witch) will be the scriptscript |
| 857 |
% style. We already remarked in Subsection~\ref{ssS:StandardArrows} that |
| 858 |
% this is not what the standard ``over\mbox{-}\slash under-arrow'' commands |
| 859 |
% do: instead, they use for the arrow the same style as that in which the |
| 860 |
% argument gets typeset. The reason for this different behavior was that, |
| 861 |
% with the same style of the affected subformula, the witch would have looked |
| 862 |
% too large; but when the witch isn't there, both solutions are viable, and |
| 863 |
% we do provide both. |
| 864 |
% |
| 865 |
% ^^A \paragraph{Brooms\slash pitchforks in the same relative style.} |
| 866 |
% We have, in the first place, a set of commands for placing brooms or |
| 867 |
% pitchforks (a.k.a.\ version-0.01-styled brooms) over or under a subformula, |
| 868 |
% setting them in the same style as the subformula itself. |
| 869 |
% \DescribeMacro{\overrightbroom} |
| 870 |
% \DescribeMacro{\overleftbroom} |
| 871 |
% \DescribeMacro{\underrightbroom} |
| 872 |
% \DescribeMacro{\underleftbroom} |
| 873 |
% There are four ``over\mbox{-}\slash under-arrow-like'' extensible |
| 874 |
% brooms\ldots |
| 875 |
% \begin{flushleft} |
| 876 |
% "\overrightbroom "\marg{subformula} \\ |
| 877 |
% "\overleftbroom "\marg{subformula} \\ |
| 878 |
% "\underrightbroom"\marg{subformula} \\ |
| 879 |
% "\underleftbroom "\marg{subformula} |
| 880 |
% \end{flushleft} |
| 881 |
% \DescribeMacro{\overrightpitchfork} |
| 882 |
% \DescribeMacro{\overleftpitchfork} |
| 883 |
% \DescribeMacro{\underrightpitchfork} |
| 884 |
% \DescribeMacro{\underleftpitchfork} |
| 885 |
% \ldots and four corresponding ``over\mbox{-}\slash under-arrow-like'' |
| 886 |
% extensible pitchforks: |
| 887 |
% \begin{flushleft} |
| 888 |
% "\overrightpitchfork "\marg{subformula} \\ |
| 889 |
% "\overleftpitchfork "\marg{subformula} \\ |
| 890 |
% "\underrightpitchfork"\marg{subformula} \\ |
| 891 |
% "\underleftpitchfork "\marg{subformula} |
| 892 |
% \end{flushleft} |
| 893 |
% |
| 894 |
% ^^A \paragraph{Brooms\slash pitchforks in relative script style.} |
| 895 |
% Then, for each of the commands just listed, a corresponding variant is |
| 896 |
% provided that sets the broom, or the pitchfork, in the relative script |
| 897 |
% style of the style applied to \meta{subformula}, and which is named |
| 898 |
% following the same convention we already used for the commands of |
| 899 |
% Subsection~\ref{ssS:StandardArrows}, that is, inserting the "script" |
| 900 |
% substring. |
| 901 |
% \DescribeMacro{\overscriptrightbroom} |
| 902 |
% \DescribeMacro{\overscriptleftbroom} |
| 903 |
% \DescribeMacro{\underscriptrightbroom} |
| 904 |
% \DescribeMacro{\underscriptleftbroom} |
| 905 |
% Thus, again, we find four ``over\mbox{-}\slash under-arrow-like'' |
| 906 |
% extensible brooms\ldots |
| 907 |
% \begin{flushleft} |
| 908 |
% "\overscriptrightbroom "\marg{subformula} \\ |
| 909 |
% "\overscriptleftbroom "\marg{subformula} \\ |
| 910 |
% "\underscriptrightbroom"\marg{subformula} \\ |
| 911 |
% "\underscriptleftbroom "\marg{subformula} |
| 912 |
% \end{flushleft} |
| 913 |
% \DescribeMacro{\overscriptrightpitchfork} |
| 914 |
% \DescribeMacro{\overscriptleftpitchfork} |
| 915 |
% \DescribeMacro{\underscriptrightpitchfork} |
| 916 |
% \DescribeMacro{\underscriptleftpitchfork} |
| 917 |
% \ldots and four matching ``over\mbox{-}\slash under-arrow-like'' extensible |
| 918 |
% pitchforks: |
| 919 |
% \begin{flushleft} |
| 920 |
% "\overscriptrightpitchfork "\marg{subformula} \\ |
| 921 |
% "\overscriptleftpitchfork "\marg{subformula} \\ |
| 922 |
% "\underscriptrightpitchfork"\marg{subformula} \\ |
| 923 |
% "\underscriptleftpitchfork "\marg{subformula} |
| 924 |
% \end{flushleft} |
| 925 |
% |
| 926 |
% \paragraph*{Please note:} |
| 927 |
% Since all of the commands listed in this subsection omit the witch, none |
| 928 |
% of them has got a \mbox{$*$-form} for adding a cat (the cat can only go |
| 929 |
% with the witch: no witch, no cat). |
| 930 |
% |
| 931 |
% \subsubsection{Summary of the naming scheme} |
| 932 |
% |
| 933 |
% It is worth noting that the commands for the extensible brooms\slash |
| 934 |
% pitchforks follow a consistent naming scheme: the name is of the form |
| 935 |
% \begin{center} |
| 936 |
% \texttt{\bslash}\meta{x-over-under}\meta{opt-script}^^A |
| 937 |
% \meta{left-right}\meta{opt-witch}\meta{broom-pitchf} |
| 938 |
% \end{center} |
| 939 |
% where |
| 940 |
% \begin{flalign*} |
| 941 |
% \meta{x-over-under} &\longrightarrow |
| 942 |
% \texttt{x}\binvert\texttt{over}\binvert\texttt{under} & |
| 943 |
% \meta{opt-script} &\longrightarrow |
| 944 |
% \meta{empty}\binvert\texttt{script} \\ |
| 945 |
% \meta{left-right} &\longrightarrow |
| 946 |
% \texttt{left}\binvert\texttt{right} & |
| 947 |
% \meta{opt-witch} &\longrightarrow |
| 948 |
% \meta{empty}\binvert\texttt{witchon} \\ |
| 949 |
% \meta{broom-pitchf} &\longrightarrow |
| 950 |
% \texttt{broom}\binvert\texttt{pitchfork} |
| 951 |
% \end{flalign*} |
| 952 |
% with the constraint that \meta{opt-script} must be \meta{empty} if either \( \meta{x-over-under} = |
| 953 |
% \texttt{x} \) or \( \meta{opt-witch} \neq \meta{empty} \). |
| 954 |
% |
| 955 |
% \section |
| 956 |
% [Installing the pacakge code and documentation] |
| 957 |
% {Installing the package code and documentation\footnote{^^A |
| 958 |
% Recall that you need to read this section only in the unusual case that you |
| 959 |
% have to carry out a manual installation from the sources; normally, you'll |
| 960 |
% be using a prepackaged \TeX\ distribution like |
| 961 |
% \href{https://www.tug.org/texlive/}{\TeX~Live} or |
| 962 |
% \href{https://miktex.org/}{MiK\TeX}, which can automatically manage |
| 963 |
% installation as well as updates.^^A |
| 964 |
% }} |
| 965 |
% |
| 966 |
% As usual for \LaTeX\ distributions, the \packlass{\halloweenmath} |
| 967 |
% package is distributed in the form of a \filedir{.dtx} file, |
| 968 |
% namely \filedir{\halloweenmath.dtx}, and an accompanying |
| 969 |
% \filedir{.ins} file, namely \filedir{\halloweenmath.ins}. |
| 970 |
% |
| 971 |
% \subsection{Installation} |
| 972 |
% |
| 973 |
% To extract the code, run \LaTeX\ (or plain \TeX) once on the |
| 974 |
% file \filedir{\halloweenmath.ins}. This will generate the following |
| 975 |
% \LaTeX\ input file: |
| 976 |
% \begin{quote} |
| 977 |
% \ttfamily |
| 978 |
% \halloweenmath.sty |
| 979 |
% \end{quote} |
| 980 |
% To finish the installation, move it to a \LaTeX\ input directory. The |
| 981 |
% above listing of the files you need to move is also displayed on the |
| 982 |
% terminal at the end of the run of the file \filedir{\halloweenmath.ins}. |
| 983 |
% The documentation of your \TeX\ installation should tell you how to find |
| 984 |
% the \LaTeX\ input directory/ies, and probably also how to create new |
| 985 |
% \LaTeX\ input directories reserved to contain your personal packages. |
| 986 |
% The accepted TDS-compliant directory where the above file should be put is |
| 987 |
% \begin{quote} |
| 988 |
% \filedir{\$TEXMF/tex/latex/halloweenmath/} |
| 989 |
% \end{quote} |
| 990 |
% |
| 991 |
% Please note: before using the \packlass{\halloweenmath} package you |
| 992 |
% must read its license (see Subsection~\ref{sS:License}) to see whether its |
| 993 |
% terms are acceptable for you, especially for what concerns the lack of any |
| 994 |
% warranty; if they are not, don't use it. |
| 995 |
% |
| 996 |
% \subsection{Documentation} |
| 997 |
% |
| 998 |
% To produce this documentation, run \LaTeX\ three times (for the ToC to get |
| 999 |
% right) on the file \filedir{\halloweenmath.dtx}. This won't give you the |
| 1000 |
% index and the change history, though: for those, you should run |
| 1001 |
% \emph{MakeIndex} on the files \filedir{\halloweenmath.idx} and |
| 1002 |
% \filedir{\halloweenmath.glo}, obtained during the last of the aforesaid |
| 1003 |
% three \LaTeX\ runs, with styles \filedir{gind.ist} and \filedir{gglo.ist}, |
| 1004 |
% respectively (which are part of the standard \LaTeX\ distribution); then |
| 1005 |
% pass \filedir{\halloweenmath.dtx} through \LaTeX\ twice more. |
| 1006 |
% |
| 1007 |
% The documentation produced by default includes the \emph{Implementation} |
| 1008 |
% part too; see the beginning of this part for instructions on how to omit |
| 1009 |
% it. |
| 1010 |
% |
| 1011 |
% \subsection{The makefile} |
| 1012 |
% \label{sS:Makefile} |
| 1013 |
% |
| 1014 |
% A (quite trivial!\@) makefile, named \filedir{Makefile}, that ``knows'' how |
| 1015 |
% to carry out the installation, is offered along with the package. Although |
| 1016 |
% it is not a required part of the distribution (as per LPPL\@), you may find |
| 1017 |
% that some distributors supply it all the same (I~hope the CTAN\@ sites will |
| 1018 |
% do so). With this makefile in the same directory as the two source files |
| 1019 |
% \filedir{\filename} and \filedir{\halloweenmath.ins}, the simple shell |
| 1020 |
% command, given inside that same directory, |
| 1021 |
% \begin{quote} |
| 1022 |
% \ttfamily |
| 1023 |
% make |
| 1024 |
% \end{quote} |
| 1025 |
% will \emph{both} extract the code file \emph{and} typeset the full |
| 1026 |
% documentation (in~PDF\@). Type |
| 1027 |
% \begin{quote} |
| 1028 |
% \ttfamily |
| 1029 |
% make help |
| 1030 |
% \end{quote} |
| 1031 |
% for more information. |
| 1032 |
% |
| 1033 |
% \subsection{License} |
| 1034 |
% \label{sS:License} |
| 1035 |
% |
| 1036 |
% The \packlass{\halloweenmath} package is \emph{not} in the public |
| 1037 |
% domain: its author, Gustavo \textsc{Mezzetti}, owns the |
| 1038 |
% copyright, and in general retains all the rights therein; but as |
| 1039 |
% a special exception, the author grants you the permissions |
| 1040 |
% indicated below. |
| 1041 |
% |
| 1042 |
% \subsubsection{Distribution and/or modification} |
| 1043 |
% |
| 1044 |
% The \packlass{\halloweenmath} package may be distributed and/or |
| 1045 |
% modified under the conditions of the \LaTeX\ Project Public |
| 1046 |
% License, either version~1.3 of this license or (at your option) |
| 1047 |
% any later version. The latest version of this license is in |
| 1048 |
% \begin{quote} |
| 1049 |
% \ttfamily |
| 1050 |
% http://www.latex-project.org/lppl.txt |
| 1051 |
% \end{quote} |
| 1052 |
% and version~1.3 or later is part of all distributions of \LaTeX\ |
| 1053 |
% version 2005/12/01 or later. |
| 1054 |
% |
| 1055 |
% The \packlass{\halloweenmath} package has the LPPL maintenance status |
| 1056 |
% ``author-maintained''. |
| 1057 |
% |
| 1058 |
% The file \filedir{manifest.txt} included along with this file |
| 1059 |
% specifies what the \packlass{\halloweenmath} package consists of; more |
| 1060 |
% precisely, it explains how the locutions ``Work'' and ``Compiled |
| 1061 |
% Work'', used in the \LaTeX\ Project Public License, are to be |
| 1062 |
% interpreted in the case of this work. |
| 1063 |
% |
| 1064 |
% \subsubsection{Use} |
| 1065 |
% |
| 1066 |
% The use of the \packlass{\halloweenmath} package is unrestricted, |
| 1067 |
% provided that you accept the terms and conditions of the \LaTeX\ |
| 1068 |
% Project Public License and of the following subsection for what |
| 1069 |
% concerns the absence of any warranty. |
| 1070 |
% |
| 1071 |
% \subsubsection{No warranty} |
| 1072 |
% |
| 1073 |
% There is absolutely no warranty for the \packlass{\halloweenmath} |
| 1074 |
% package. The Copyright Holder provides the \packlass{\halloweenmath} |
| 1075 |
% package ``as is'', without warranty of any kind, either expressed |
| 1076 |
% or implied, including, but not limited to, the implied warranties |
| 1077 |
% of merchantability and fitness for a particular purpose. The |
| 1078 |
% entire risk as to the quality and performance of the |
| 1079 |
% \packlass{\halloweenmath} package is with you. Should the |
| 1080 |
% \packlass{\halloweenmath} package prove defective, you assume the cost |
| 1081 |
% of all necessary servicing, repair, or correction. |
| 1082 |
% |
| 1083 |
% In no event will The Copyright Holder, or any other party who may |
| 1084 |
% distribute and/or modify the \packlass{\halloweenmath} package as |
| 1085 |
% permitted by the \LaTeX\ Project Public License, be liable to you |
| 1086 |
% for damages, including any general, special, incidental or |
| 1087 |
% consequential damages arising out of any use of the |
| 1088 |
% \packlass{\halloweenmath} package or out of inability to use it |
| 1089 |
% (including, but not limited to, loss of data, data being rendered |
| 1090 |
% inaccurate, or losses sustained by anyone as a result of any |
| 1091 |
% failure of the \packlass{\halloweenmath} package to operate with any |
| 1092 |
% other programs), even if The Copyright Holder or said other party |
| 1093 |
% has been advised of the possibility of such damages. |
| 1094 |
% |
| 1095 |
% \StopEventually{ |
| 1096 |
% \setcounter{secnumdepth}{0} |
| 1097 |
% \providecommand*\bysame{\leavevmode\hbox to3em{\hrulefill}\thinspace} |
| 1098 |
% |
| 1099 |
% \clearpage |
| 1100 |
% \pdfbookmark[0]{Back Matter}{BackMatter} |
| 1101 |
% \begin{thebibliography}{9} |
| 1102 |
% \addcontentsline{toc}{section}{\refname} |
| 1103 |
% |
| 1104 |
% \bibitem{bib:cfr} |
| 1105 |
% \emph{Seasonal Challenge (Contributions from \TeX ing Dead |
| 1106 |
% Welcome)},\\ |
| 1107 |
% \url{https://tex.stackexchange.com/q/336768/69818} |
| 1108 |
% |
| 1109 |
% \bibitem{bib:manual} |
| 1110 |
% \emph{User's manual for the \packlass{\halloweenmath} package}, included |
| 1111 |
% in the documentation of the \packlass{\halloweenmath} package,\\ |
| 1112 |
% \href{file:halloweenmath-man.pdf} |
| 1113 |
% {\nolinkurl{$TEXMF/doc/latex/halloweenmath/halloweenmath-man.pdf}} |
| 1114 |
% |
| 1115 |
% \IfImplementation{ |
| 1116 |
% \bibitem{bib:diffs-m} |
| 1117 |
% File \filedir{diffs-m.txt}, which is part of the standard |
| 1118 |
% \hologo{AmSLaTeX} distribution,\\ |
| 1119 |
% \nolinkurl{$TEXMF/doc/latex/amsmath/diffs-m.txt} |
| 1120 |
% |
| 1121 |
% \bibitem{bib:std} |
| 1122 |
% \emph{Why does the \packlass{\amsmath} package define |
| 1123 |
% \textnormal{\cs{std@minus}} and \textnormal{\cs{std@equal}}?},\\ |
| 1124 |
% \url{https://tex.stackexchange.com/q/352043} |
| 1125 |
% }{} |
| 1126 |
% |
| 1127 |
% \end{thebibliography} |
| 1128 |
% } |
| 1129 |
% |
| 1130 |
% |
| 1131 |
% |
| 1132 |
% \clearpage |
| 1133 |
% \part{Implementation} |
| 1134 |
% |
| 1135 |
% \section{About this part} |
| 1136 |
% |
| 1137 |
% This part is of interest only to \LaTeX\ hackers; to avoid |
| 1138 |
% having this part printed, look in the file \filedir{\filename} |
| 1139 |
% for a line that looks \emph{exactly} like this |
| 1140 |
% \begin{verbatim}%% \OnlyDescription % uncomment to discard Implementation part\end{verbatim} |
| 1141 |
% and remove the two leading percent signs ("%%"). |
| 1142 |
% |
| 1143 |
% \section{A driver for this document} |
| 1144 |
% |
| 1145 |
% This part of the file is \emph{not} included in any generated file: |
| 1146 |
% it is simply the driver. |
| 1147 |
% \begin{macrocode} |
| 1148 |
%<*driver> |
| 1149 |
% \end{macrocode} |
| 1150 |
% |
| 1151 |
% To begin with, we load the \packlass{ltxdoc} class |
| 1152 |
% and the packages we require. |
| 1153 |
% \begin{macrocode} |
| 1154 |
\documentclass{ltxdoc} |
| 1155 |
\usepackage{amsmath,color,pict2e,hologo} |
| 1156 |
\usepackage{hypdoc} |
| 1157 |
% \end{macrocode} |
| 1158 |
% We now set a few typesetting options. |
| 1159 |
% First of all, we want a history listing and a full index, the latter |
| 1160 |
% organized by line numbers. |
| 1161 |
% \begin{macrocode} |
| 1162 |
\RecordChanges |
| 1163 |
\EnableCrossrefs |
| 1164 |
\CodelineIndex |
| 1165 |
% \end{macrocode} |
| 1166 |
% If you don't want to include the second part of this document, |
| 1167 |
% \emph{Implementation}, uncomment the line containing the command |
| 1168 |
% "\OnlyDescription". |
| 1169 |
% \begin{macrocode} |
| 1170 |
%% \OnlyDescription % uncomment to discard Implementation part |
| 1171 |
% \end{macrocode} |
| 1172 |
% Finally, setting "\hfuzz" and "\vfuzz" to 0~points is only one |
| 1173 |
% of the many neurotic symptoms of the author! |
| 1174 |
% \begin{macrocode} |
| 1175 |
\hfuzz = 0pt |
| 1176 |
\vfuzz = 0pt |
| 1177 |
% \end{macrocode} |
| 1178 |
% Now input this same file, using \DS\ conventions. |
| 1179 |
% \begin{macrocode} |
| 1180 |
\begin{document} |
| 1181 |
\DocInput{halloweenmath.dtx} |
| 1182 |
% \end{macrocode} |
| 1183 |
% Then print the change list and the index. We put these commands in |
| 1184 |
% the driver, rather than in the comments of this file, because |
| 1185 |
% producing the change list and the index is somewhat cumbersome, and some |
| 1186 |
% users could prefer to omit them: such users should simply use a |
| 1187 |
% different driver. |
| 1188 |
% \begin{macrocode} |
| 1189 |
% \clearpage % attach Change history below References |
| 1190 |
\PrintChanges |
| 1191 |
\clearpage \PrintIndex |
| 1192 |
% \end{macrocode} |
| 1193 |
% When this file is read directly by \LaTeX\ without the intervention |
| 1194 |
% of \DS, the following line will make \TeX\ stop |
| 1195 |
% reading. |
| 1196 |
% \begin{macrocode} |
| 1197 |
\end{document} |
| 1198 |
% \end{macrocode} |
| 1199 |
% End of driver module. |
| 1200 |
% \begin{macrocode} |
| 1201 |
%</driver> |
| 1202 |
% \end{macrocode} |
| 1203 |
% |
| 1204 |
% \section{The code for the \packlass{\halloweenmath} package} |
| 1205 |
% |
| 1206 |
% This part of the file goes into \filedir{\halloweenmath.sty}. |
| 1207 |
% \begin{macrocode} |
| 1208 |
%<*halloweenmath> |
| 1209 |
% \end{macrocode} |
| 1210 |
% |
| 1211 |
% \subsection{Identification} |
| 1212 |
% |
| 1213 |
% No particular reason for asking for a particular release of \LaTeXe; but at |
| 1214 |
% least, let us specify a date on which the \packlass{\picttwoe} package was |
| 1215 |
% likely to exist. |
| 1216 |
% \begin{macrocode} |
| 1217 |
\NeedsTeXFormat{LaTeX2e}[2004/06/01] % LaTeX2e is required! |
| 1218 |
% \end{macrocode} |
| 1219 |
% The usual identification: |
| 1220 |
% \begin{macrocode} |
| 1221 |
\ProvidesPackage{halloweenmath} |
| 1222 |
[2019/11/01 v0.11 (development)] |
| 1223 |
% \end{macrocode} |
| 1224 |
% |
| 1225 |
% \subsection{Initial code} |
| 1226 |
% |
| 1227 |
% \begin{macro}{\@HwM@say@BOO} |
| 1228 |
% Of course, to make this anything even vaguely resembling an ``Easter egg'', |
| 1229 |
% I~should at least pretend to try to obfuscate the code; but too much time |
| 1230 |
% has already been wasted on this huge and ridicolous heap of foolishness. |
| 1231 |
% \begin{macrocode} |
| 1232 |
\newcommand*\@HwM@say@BOO{% |
| 1233 |
\begingroup |
| 1234 |
\escapechar \m@ne |
| 1235 |
\def~{\string\\}% |
| 1236 |
\def\-{\space\space}% |
| 1237 |
\def\+{\space\space\space\space}% |
| 1238 |
\def\={\+\+\+\+}% |
| 1239 |
\def\*{****}% |
| 1240 |
\typeout{}% |
| 1241 |
\typeout{\+ _-==-_ \+ /~/~/~}% |
| 1242 |
\typeout{\+|\-\-\-|\+< BOO! >\+\+\+\today...}% |
| 1243 |
\typeout{\+|(.)(.)|\+/~/~/~/}% |
| 1244 |
\typeout{\++--/~--+\- /\=\*\*\*\*\*\*\*}% |
| 1245 |
\typeout{\+ [::::] __/ \= ... This is HALLOWEENMATH!}% |
| 1246 |
\typeout{\+\-----\-\+\=\*\*\*\*\*\*\*}% |
| 1247 |
\typeout{}% |
| 1248 |
\endgroup |
| 1249 |
} |
| 1250 |
% \end{macrocode} |
| 1251 |
% \end{macro} |
| 1252 |
% |
| 1253 |
% \begin{macro}{\@HwM@opt@say@BOO} |
| 1254 |
% Well, at least do not add comments to what is already crystal clear by |
| 1255 |
% itself\ldots |
| 1256 |
% \begin{macrocode} |
| 1257 |
\newcommand*\@HwM@opt@say@BOO{} |
| 1258 |
% \end{macrocode} |
| 1259 |
% \end{macro} |
| 1260 |
% |
| 1261 |
% \subsection{Declaration of options} |
| 1262 |
% |
| 1263 |
% Hidden options. Note that they are later processed in the order in which |
| 1264 |
% they are declared here. |
| 1265 |
% \begin{macrocode} |
| 1266 |
\DeclareOption{silent}{% |
| 1267 |
\let \@HwM@opt@say@BOO \@empty |
| 1268 |
} |
| 1269 |
\DeclareOption{boo}{% |
| 1270 |
\let \@HwM@opt@say@BOO \@HwM@say@BOO |
| 1271 |
} |
| 1272 |
\DeclareOption{boo-10-31}{% |
| 1273 |
\ifnum\month=10 |
| 1274 |
\ifnum\day=31 |
| 1275 |
\let \@HwM@opt@say@BOO \@HwM@say@BOO |
| 1276 |
\else |
| 1277 |
\let \@HwM@opt@say@BOO \@empty |
| 1278 |
\fi |
| 1279 |
\else |
| 1280 |
\let \@HwM@opt@say@BOO \@empty |
| 1281 |
\fi |
| 1282 |
} |
| 1283 |
% \end{macrocode} |
| 1284 |
% |
| 1285 |
% \subsection{Option processing} |
| 1286 |
% |
| 1287 |
% Note that, at the end, at least we release the memory taken up by this |
| 1288 |
% piece of buffoonery. |
| 1289 |
% \begin{macrocode} |
| 1290 |
\ExecuteOptions{boo-10-31} |
| 1291 |
\ProcessOptions\relax |
| 1292 |
\@HwM@opt@say@BOO |
| 1293 |
\let \@HwM@say@BOO = \@undefined |
| 1294 |
\let \@HwM@opt@say@BOO = \@undefined |
| 1295 |
% \end{macrocode} |
| 1296 |
% |
| 1297 |
% \subsection{Package loading} |
| 1298 |
% |
| 1299 |
% Besides the \packlass{\picttwoe} package, that we need to draw the |
| 1300 |
% pictures, we also require the \packlass{\amsmath} package. |
| 1301 |
% \begin{macrocode} |
| 1302 |
\RequirePackage{amsmath,pict2e} |
| 1303 |
% \end{macrocode} |
| 1304 |
% |
| 1305 |
% \subsection{Main code} |
| 1306 |
% |
| 1307 |
% Let's begin with an important remark. It would be pretty easy to fulfill |
| 1308 |
% the purpose of this package using \TikZ; this has been deliberately |
| 1309 |
% avoided. This package has been written for fun, and part of this fun lay |
| 1310 |
% in the constraint of using only the means provided by the \env{picture} |
| 1311 |
% environment, albeit with the \packlass{\picttwoe} extensions. Please |
| 1312 |
% accept this fact without arguing about it. |
| 1313 |
% |
| 1314 |
% The names of all the macros defined in this package start with the prefix |
| 1315 |
% "\@HwM@" (``namespace'' prefix). |
| 1316 |
% |
| 1317 |
% \subsubsection{Preliminary macros} |
| 1318 |
% |
| 1319 |
% We begin with defining some macros that provide basic functionality. |
| 1320 |
% |
| 1321 |
% \begin{macro}{\@HwM@tempa} |
| 1322 |
% Temporary scratch macro reserved for this package. Here we just check |
| 1323 |
% that the name can be used, while, at the same time, reserving it. |
| 1324 |
% \begin{macrocode} |
| 1325 |
\@ifdefinable\@HwM@tempa{} |
| 1326 |
% \end{macrocode} |
| 1327 |
% \end{macro} |
| 1328 |
% |
| 1329 |
% \begin{macro}{\@HwM@thickness@units@for} |
| 1330 |
% The unit of measure we are going to use for line thicknesses; since it is |
| 1331 |
% defined in term of the ``default-rule-thickness'' "\fontdimen", it will |
| 1332 |
% automatically scale with the font size. The suffix "for" at the end of the |
| 1333 |
% names reminds that a font selector like "\textfont" must follow and will be |
| 1334 |
% absorbed as argument~\#1. |
| 1335 |
% \begin{macrocode} |
| 1336 |
\newcommand*\@HwM@thickness@units@for[1]{\fontdimen 8 #1\thr@@} |
| 1337 |
% \end{macrocode} |
| 1338 |
% \end{macro} |
| 1339 |
% |
| 1340 |
% \begin{macro}{\@HwM@right@or@left} |
| 1341 |
% \changes{0.11}{2019 Nov 01}{Corrected bug: \cs{@HwM@right@or@left} |
| 1342 |
% now defaults to \cs{@gobbletwo}} |
| 1343 |
% Used to pass information about the orientation of left\slash right |
| 1344 |
% symmetric figures. More precisely, it is a switch that selects |
| 1345 |
% between two branches according to the current orientation. Here we |
| 1346 |
% set the global default (no current orientation defined) so that it |
| 1347 |
% ignores \emph{both} branches, thus correcting a bug in versions |
| 1348 |
% prior to 0.11. |
| 1349 |
% \begin{macrocode} |
| 1350 |
\@ifdefinable\@HwM@right@or@left{\let \@HwM@right@or@left=\@gobbletwo} |
| 1351 |
% \end{macrocode} |
| 1352 |
% \end{macro} |
| 1353 |
% |
| 1354 |
% \begin{macro}{\@HwM@set@right@dir} |
| 1355 |
% Causes the following left\slash right symmetric figure to face to the |
| 1356 |
% right. |
| 1357 |
% \begin{macrocode} |
| 1358 |
\newcommand*\@HwM@set@right@dir{% |
| 1359 |
\let \@HwM@right@or@left \@firstoftwo |
| 1360 |
} |
| 1361 |
% \end{macrocode} |
| 1362 |
% \end{macro} |
| 1363 |
% |
| 1364 |
% \begin{macro}{\@HwM@set@left@dir} |
| 1365 |
% Causes the following left\slash right symmetric figure to face to the left. |
| 1366 |
% \begin{macrocode} |
| 1367 |
\newcommand*\@HwM@set@left@dir{% |
| 1368 |
\let \@HwM@right@or@left \@secondoftwo |
| 1369 |
} |
| 1370 |
% \end{macrocode} |
| 1371 |
% \end{macro} |
| 1372 |
% |
| 1373 |
% \begin{environment}{@HwM@math@picture} |
| 1374 |
% Customized \env{picture} environment for our ``math pictures'', makes some |
| 1375 |
% initializations that are always needed (local to its group). Arguments: |
| 1376 |
% \begin{paramlist} |
| 1377 |
% \param |
| 1378 |
% bounding box height, in coordinate units;\\ |
| 1379 |
% \param |
| 1380 |
% $y$-coordinate of lower left corner of bounding box;\\ |
| 1381 |
% \param |
| 1382 |
% additional code to be executed during initialization;\\ |
| 1383 |
% \param |
| 1384 |
% font selector (\eg "\textfont");\\ |
| 1385 |
% \param |
| 1386 |
% bounding box width, in coordinate units;\\ |
| 1387 |
% \param |
| 1388 |
% $x$-coordinate of lower left corner of bounding box. |
| 1389 |
% \end{paramlist} |
| 1390 |
% \begin{macrocode} |
| 1391 |
\newenvironment*{@HwM@math@picture}[6]{% |
| 1392 |
\setlength\unitlength{\fontdimen 22 #4\tw@}% |
| 1393 |
#3% |
| 1394 |
\@HwM@right@or@left{% |
| 1395 |
\def\+{+}% |
| 1396 |
\def\-{-}% |
| 1397 |
}{% |
| 1398 |
\def\+{-}% |
| 1399 |
\def\-{+}% |
| 1400 |
}% |
| 1401 |
\picture(#5,#1)(#6,#2)% |
| 1402 |
}{\endpicture} |
| 1403 |
% \end{macrocode} |
| 1404 |
% \end{environment} |
| 1405 |
% |
| 1406 |
% \begin{macro}{\@HwM@short@circuited@vphant} |
| 1407 |
% ``Short-circuited'' version of "\vphantom". |
| 1408 |
% \begin{macrocode} |
| 1409 |
\newcommand*\@HwM@short@circuited@vphant{\v@true\h@false\mathph@nt} |
| 1410 |
% \end{macrocode} |
| 1411 |
% \end{macro} |
| 1412 |
% |
| 1413 |
% \begin{macro}{\@HwM@oplus@strut} |
| 1414 |
% \changes{0.10}{2017 Apr 16}{Corrected bug: the size of the strut used to |
| 1415 |
% be that of \cs{bigoplus}} |
| 1416 |
% Vertical phantom the size of "\oplus". Arguments: |
| 1417 |
% \begin{paramlist} |
| 1418 |
% \param |
| 1419 |
% style selector (\eg "\scriptstyle"). |
| 1420 |
% \end{paramlist} |
| 1421 |
% \begin{macrocode} |
| 1422 |
\newcommand*\@HwM@oplus@strut[1]{% |
| 1423 |
\@HwM@short@circuited@vphant #1\oplus |
| 1424 |
} |
| 1425 |
% \end{macrocode} |
| 1426 |
% \end{macro} |
| 1427 |
% |
| 1428 |
% \begin{macro}{\@HwM@bigoplus@strut} |
| 1429 |
% \changes{0.10}{2017 Apr 16}{Added this macro} |
| 1430 |
% Vertical phantom the size of "\bigoplus". Arguments: |
| 1431 |
% \begin{paramlist} |
| 1432 |
% \param |
| 1433 |
% style selector (\eg "\displaystyle"). |
| 1434 |
% \end{paramlist} |
| 1435 |
% \begin{macrocode} |
| 1436 |
\newcommand*\@HwM@bigoplus@strut[1]{% |
| 1437 |
\@HwM@short@circuited@vphant #1\bigoplus@ |
| 1438 |
} |
| 1439 |
% \end{macrocode} |
| 1440 |
% \end{macro} |
| 1441 |
% |
| 1442 |
% \begin{macro}{\@HwM@d@pict@strut} |
| 1443 |
% Inserts a ``depth-only half-strut'' (the~"d" in the name is for ``depth''), |
| 1444 |
% \#1~is its size in picture units. |
| 1445 |
% \begin{macrocode} |
| 1446 |
\newcommand*\@HwM@d@pict@strut[1]{% |
| 1447 |
\vrule \@width\z@ \@height\z@ \@depth #1\unitlength |
| 1448 |
} |
| 1449 |
% \end{macrocode} |
| 1450 |
% \end{macro} |
| 1451 |
% |
| 1452 |
% \begin{macro}{\@HwM@large@picture} |
| 1453 |
% \begin{macro}{\end@HwM@large@picture} |
| 1454 |
% This is actually a definition of an environment. The environment beign |
| 1455 |
% defined, namely \env{@HwM@large@picture}, is simply syntactic sugar for a |
| 1456 |
% typical invocation of the \env{@HwM@math@picture} environment, for a |
| 1457 |
% picture of ``large'' size (\( \mbox{height}=5 \), \( \mbox{depth}=3 \), |
| 1458 |
% with the baseline running at \( y=-1 \)), suitable for the display-style |
| 1459 |
% version of a large operator. Supplies arguments \#1--\#4 of |
| 1460 |
% \env{@HwM@math@picture}, with \#4 being "\textfont"; the caller must supply |
| 1461 |
% the remaining ones. |
| 1462 |
% \begin{macrocode} |
| 1463 |
\newcommand*\@HwM@large@picture{% |
| 1464 |
\@HwM@math@picture{5}{-1}{\@HwM@d@pict@strut\thr@@}\textfont |
| 1465 |
} |
| 1466 |
\let\end@HwM@large@picture = \end@HwM@math@picture |
| 1467 |
% \end{macrocode} |
| 1468 |
% \end{macro} |
| 1469 |
% \end{macro} |
| 1470 |
% |
| 1471 |
% \begin{macro}{\@HwM@small@picture} |
| 1472 |
% \begin{macro}{\end@HwM@small@picture} |
| 1473 |
% This is actually a definition of an environment. The environment beign |
| 1474 |
% defined, namely \env{@HwM@small@picture}, is simply syntactic sugar for a |
| 1475 |
% typical invocation of the \env{@HwM@math@picture} environment, for a |
| 1476 |
% picture of ``small'' size (\( \mbox{height}=3 \), \( \mbox{depth}=1 \), |
| 1477 |
% with the baseline running at \( y=-1 \)), suitable for the |
| 1478 |
% non-display-style version of a large operator. Supplies arguments \#1--\#3 |
| 1479 |
% of \env{@HwM@math@picture}; the caller must supply the remaining ones, |
| 1480 |
% \emph{including} argument~\#4. |
| 1481 |
% \begin{macrocode} |
| 1482 |
\newcommand*\@HwM@small@picture{% |
| 1483 |
\@HwM@math@picture{3}{-1}{\@HwM@d@pict@strut\@ne}% |
| 1484 |
} |
| 1485 |
\let\end@HwM@small@picture = \end@HwM@math@picture |
| 1486 |
% \end{macrocode} |
| 1487 |
% \end{macro} |
| 1488 |
% \end{macro} |
| 1489 |
% |
| 1490 |
% \begin{macro}{\@HwM@bigop@picture} |
| 1491 |
% \begin{macro}{\end@HwM@bigop@picture} |
| 1492 |
% This is actually a definition of an environment. The environment beign |
| 1493 |
% defined, namely \env{@HwM@bigop@picture}, is simply syntactic sugar for a |
| 1494 |
% typical invocation of the \env{@HwM@math@picture} environment, for a |
| 1495 |
% picture having the vertical size of a "\bigoplus", with baseline running at |
| 1496 |
% \( y=-1 \). Supplies arguments \#1--\#3 of \env{@HwM@math@picture}; the |
| 1497 |
% caller must supply the others, \emph{including} argument~\#4, immediately |
| 1498 |
% after the single argument to this environment, which is |
| 1499 |
% \begin{paramlist} |
| 1500 |
% \param |
| 1501 |
% style selector (\eg "\displaystyle"). |
| 1502 |
% \end{paramlist} |
| 1503 |
% \begin{macrocode} |
| 1504 |
\newcommand*\@HwM@bigop@picture[1]{% |
| 1505 |
\@HwM@math@picture{0}{-1}{\@HwM@bigoplus@strut #1}% |
| 1506 |
} |
| 1507 |
\let\end@HwM@bigop@picture = \end@HwM@math@picture |
| 1508 |
% \end{macrocode} |
| 1509 |
% \end{macro} |
| 1510 |
% \end{macro} |
| 1511 |
% |
| 1512 |
% \begin{macro}{\@HwM@oplus@picture} |
| 1513 |
% \begin{macro}{\end@HwM@oplus@picture} |
| 1514 |
% This is actually a definition of an environment. The environment beign |
| 1515 |
% defined, namely \env{@HwM@oplus@picture}, is simply syntactic sugar for a |
| 1516 |
% typical invocation of the \env{@HwM@math@picture} environment, for a |
| 1517 |
% picture having the vertical size of an "\oplus", with baseline running at |
| 1518 |
% \( y=-1 \). Supplies arguments \#1--\#3 of \env{@HwM@math@picture}; the |
| 1519 |
% caller must supply the others, \emph{including} argument~\#4, immediately |
| 1520 |
% after the single argument to this environment, which is |
| 1521 |
% \begin{paramlist} |
| 1522 |
% \param |
| 1523 |
% style selector (\eg "\scriptstyle"). |
| 1524 |
% \end{paramlist} |
| 1525 |
% \begin{macrocode} |
| 1526 |
\newcommand*\@HwM@oplus@picture[1]{% |
| 1527 |
\@HwM@math@picture{0}{-1}{\@HwM@oplus@strut #1}% |
| 1528 |
} |
| 1529 |
\let\end@HwM@oplus@picture = \end@HwM@math@picture |
| 1530 |
% \end{macrocode} |
| 1531 |
% \end{macro} |
| 1532 |
% \end{macro} |
| 1533 |
% |
| 1534 |
% \paragraph*{Comment added in version~0.10:} |
| 1535 |
% After all, I~think I'd better recap what the full argument lists for the |
| 1536 |
% ``specialized'' math picture environments are. |
| 1537 |
% |
| 1538 |
% \medskip |
| 1539 |
% Full argument list for \env{@HwM@large@picture}: |
| 1540 |
% \begin{paramlist} |
| 1541 |
% \param |
| 1542 |
% bounding box width, in coordinate units;\\ |
| 1543 |
% \param |
| 1544 |
% $x$-coordinate of lower left corner of bounding box. |
| 1545 |
% \end{paramlist} |
| 1546 |
% |
| 1547 |
% \medskip |
| 1548 |
% Full argument list for \env{@HwM@small@picture}: |
| 1549 |
% \begin{paramlist} |
| 1550 |
% \param |
| 1551 |
% font selector (\eg "\textfont");\\ |
| 1552 |
% \param |
| 1553 |
% bounding box width, in coordinate units;\\ |
| 1554 |
% \param |
| 1555 |
% $x$-coordinate of lower left corner of bounding box. |
| 1556 |
% \end{paramlist} |
| 1557 |
% |
| 1558 |
% \medskip |
| 1559 |
% Full argument list for both \env{@HwM@bigop@picture} and |
| 1560 |
% \env{@HwM@oplus@picture}: |
| 1561 |
% \begin{paramlist} |
| 1562 |
% \param |
| 1563 |
% style selector (\eg "\scriptstyle");\\ |
| 1564 |
% \param |
| 1565 |
% font selector (\eg "\scriptfont");\\ |
| 1566 |
% \param |
| 1567 |
% bounding box width, in coordinate units;\\ |
| 1568 |
% \param |
| 1569 |
% $x$-coordinate of lower left corner of bounding box. |
| 1570 |
% \end{paramlist} |
| 1571 |
% |
| 1572 |
% \begin{macro}{\if@HwM@cat@} |
| 1573 |
% Switch that tells whether a witch that is about to be drawn should be |
| 1574 |
% accompanied by her cat or not. |
| 1575 |
% \begin{macrocode} |
| 1576 |
\@ifdefinable\if@HwM@cat@{\newif\if@HwM@cat@} |
| 1577 |
% \end{macrocode} |
| 1578 |
% \end{macro} |
| 1579 |
% |
| 1580 |
% \begin{macro}{\@HwM@bold@version@name} |
| 1581 |
% In version~0.01 of this package, the definition of the "\@HwM@if@bold@math" |
| 1582 |
% macro (see below) used to be |
| 1583 |
% \begin{verbatim}\newcommand*\@HwM@if@bold@math{% |
| 1584 |
% \def\@tempa{bold}% |
| 1585 |
% \ifx\math@version\@tempa |
| 1586 |
% \expandafter\@firstoftwo |
| 1587 |
% \else |
| 1588 |
% \expandafter\@secondoftwo |
| 1589 |
% \fi |
| 1590 |
%}\end{verbatim} |
| 1591 |
% We have now decided to set the comparison string (\texttt{bold}) here, once |
| 1592 |
% and for all: this allows the following macro to be purely expandable, a |
| 1593 |
% feature we'll now need. |
| 1594 |
% \begin{macrocode} |
| 1595 |
\newcommand*\@HwM@bold@version@name{bold} |
| 1596 |
% \end{macrocode} |
| 1597 |
% \end{macro} |
| 1598 |
% |
| 1599 |
% \begin{macro}{\@HwM@if@bold@math} |
| 1600 |
% \changes{0.10}{2017 Apr 16}{Made purely expandable} |
| 1601 |
% \LaTeX-style conditional: if the math version is currently \texttt{bold}, |
| 1602 |
% executes the code in the first argument, otherwise the code in the second |
| 1603 |
% argument. Now made purely expandable (see above). |
| 1604 |
% \begin{macrocode} |
| 1605 |
\newcommand*\@HwM@if@bold@math{% |
| 1606 |
\ifx\math@version\@HwM@bold@version@name |
| 1607 |
\expandafter\@firstoftwo |
| 1608 |
\else |
| 1609 |
\expandafter\@secondoftwo |
| 1610 |
\fi |
| 1611 |
} |
| 1612 |
% \end{macrocode} |
| 1613 |
% \end{macro} |
| 1614 |
% |
| 1615 |
% \begin{macro}{\@HwM@choose@thicknesses} |
| 1616 |
% Shuffles arguments according to the current math version. Now purely |
| 1617 |
% expandable. |
| 1618 |
% \begin{macrocode} |
| 1619 |
\newcommand*\@HwM@choose@thicknesses[3]{% |
| 1620 |
\@HwM@if@bold@math{#1#3}{#1#2} |
| 1621 |
} |
| 1622 |
% \end{macrocode} |
| 1623 |
% The typical use of this macro is as follows: suppose you have a macro |
| 1624 |
% \cmd{\CS} with, say, five arguments, and suppose you want to invoke it |
| 1625 |
% passing different values for some of the arguments, depending on the |
| 1626 |
% current math version; more precisely, let's say that you want the following |
| 1627 |
% call to be made |
| 1628 |
% \begin{flushleft} |
| 1629 |
% \small |
| 1630 |
% "\CS{"\meta{fixed-value1}"}{"\meta{fixed-value2}"}{"^^A |
| 1631 |
% \meta{bold-value3}"}{"\meta{bold-value4}"}{"^^A |
| 1632 |
% \meta{bold-value5}"}" |
| 1633 |
% \end{flushleft} |
| 1634 |
% if the current math version is \texttt{bold}, but that you want, instead, |
| 1635 |
% to call |
| 1636 |
% \begin{flushleft} |
| 1637 |
% \small |
| 1638 |
% "\CS{"\meta{fixed-value1}"}{"\meta{fixed-value2}"}{"^^A |
| 1639 |
% \meta{nrml-value3}"}{"\meta{nrml-value4}"}{"^^A |
| 1640 |
% \meta{nrml-value5}"}" |
| 1641 |
% \end{flushleft} |
| 1642 |
% if it is not; then you would say |
| 1643 |
% \begin{flushleft} |
| 1644 |
% \small |
| 1645 |
% "\@HwM@choose@thicknesses{\CS{"\meta{fixed-value1}"}{"^^A |
| 1646 |
% \meta{fixed-value2}"}}"\\ |
| 1647 |
% " {{"\meta{normal-value3}"}{"\meta{normal-value4}"}{"^^A |
| 1648 |
% \meta{normal-value5}"}}"\\ |
| 1649 |
% " {{"\meta{bold-value3}"}{"\meta{bold-value4}"}{"^^A |
| 1650 |
% \meta{bold-value5}"}}" |
| 1651 |
% \end{flushleft} |
| 1652 |
% Note the inner pairs of braces; as usual, they can be omitted if they |
| 1653 |
% surround a single token, \eg |
| 1654 |
% \begin{verbatim}\@HwM@choose@thicknesses{\CS{FFF1}\textfont} |
| 1655 |
% {\thr@@{4.0}{5.0}} |
| 1656 |
% {{BBB3}{BBB4}\@empty}\end{verbatim} |
| 1657 |
% \end{macro} |
| 1658 |
% |
| 1659 |
% \begin{macro}{\@HwM@magic@star} |
| 1660 |
% Draws a star; argument~\#1 is a scale factor. |
| 1661 |
% \begin{macrocode} |
| 1662 |
\newcommand*{\@HwM@magic@star}[1]{% |
| 1663 |
\begingroup |
| 1664 |
\setlength\unitlength{#1\unitlength}% |
| 1665 |
\picture(0,0)% |
| 1666 |
\polygon*(0,1)(-.225,.309)(-.951,.309)(-.363,-.118)(-.588,-.809)% |
| 1667 |
(0,-.382)(.588,-.809)(.363,-.118)(.951,.309)(.225,.309)% |
| 1668 |
\endpicture |
| 1669 |
\endgroup |
| 1670 |
} |
| 1671 |
% \end{macrocode} |
| 1672 |
% \end{macro} |
| 1673 |
% |
| 1674 |
% \paragraph*{General remark:} |
| 1675 |
% In all of the following drawings, the thickness of most of the lines |
| 1676 |
% depends on the current math version. On the other hand, some pictures are |
| 1677 |
% made up of smaller reusable pieces that are shared among more than one |
| 1678 |
% drawing. As a matter of mental order, I~prefer to confine the lookup for |
| 1679 |
% the current version to a single place for each picture, and pass the |
| 1680 |
% appropriate thicknesses down to the macros that draw the single pieces as |
| 1681 |
% parameters. Nonetheless, the interface toward the rest of the code |
| 1682 |
% requires macros that can draw a picture without requiring the caller to |
| 1683 |
% specify thickness arguments. This means that some drawing macros must |
| 1684 |
% exist in two variants: |
| 1685 |
% \begin{itemize} |
| 1686 |
% \item |
| 1687 |
% a ``private'' variant that requires the caller to specify thickness |
| 1688 |
% parameters; |
| 1689 |
% \item |
| 1690 |
% a ``public'' variant that doesn't require such parameters, but uses, |
| 1691 |
% instead, the "\@HwM@choose@thicknesses" macro to find out the |
| 1692 |
% appropriate thickness values by itself. |
| 1693 |
% \end{itemize} |
| 1694 |
% To make it clear when two macros are actually two such variants of the same |
| 1695 |
% conceptual function, we shall consistently adhere to the following naming |
| 1696 |
% convention: |
| 1697 |
% \begin{itemize} |
| 1698 |
% \item |
| 1699 |
% the name of the``private'' private variant will be made up of words |
| 1700 |
% separated by "@"~characters, and each of those word will \emph{not} be |
| 1701 |
% capitalized (for example, "\@HwM@large@witch"); |
| 1702 |
% \item |
| 1703 |
% the name of the ``public'' variant will be composed by exactly the same |
| 1704 |
% words, again separated by "@"~characters, \emph{but} with each word |
| 1705 |
% being also capitalized (for example, "\@HwM@Large@Witch"). |
| 1706 |
% \end{itemize} |
| 1707 |
% Note, though, that the ``public'' variant of a macro will typically (but |
| 1708 |
% not always) require the caller to specify a font selector like "\textfont"; |
| 1709 |
% we'll see that, from the point of view of the other parts of the code, this |
| 1710 |
% is an acceptable requirement for the interface. |
| 1711 |
% |
| 1712 |
% \subsubsection{Drawing the witch (and the cat)} |
| 1713 |
% |
| 1714 |
% The following macros are responsible for the bulk of the task of drawing |
| 1715 |
% the witch (with an optional cat). Figure~\ref{fig:witch} shows a sketch of |
| 1716 |
% this drawing. |
| 1717 |
% |
| 1718 |
% \begin{figure}[tp] |
| 1719 |
% \centering |
| 1720 |
% The small variant:\\*[\bigskipamount] |
| 1721 |
% \begin{picture}(6,4)(-3,-2) |
| 1722 |
% \linethickness{.1pt} |
| 1723 |
% \color{guidelines} |
| 1724 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 1725 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 1726 |
% \color{black} |
| 1727 |
% \linethickness{3pt} |
| 1728 |
% \roundcap |
| 1729 |
% \Line(-1,-1)(3,1) |
| 1730 |
% \linethickness{1.5pt} |
| 1731 |
% \Line(-1,-1)(-2.5,-1.25) |
| 1732 |
% \Line(-1,-1)(-2.4,-1.5) |
| 1733 |
% \Line(-1,-1)(-2.25,-1.75) |
| 1734 |
% \Line(-1,-1)(-2,-2) |
| 1735 |
% \put(-1.7,-.4){\magicstar{.4}} |
| 1736 |
% \put(-2.7,-.8){\magicstar{.25}} |
| 1737 |
% \Line(0,.9)(-.1,.7) |
| 1738 |
% \polyline(.3,1.6)(.4,1.5)(.75,1.5)(.9,1.2)(.5,1.2) |
| 1739 |
% (.6,1)(.8,.9)(.7,.75)(0,.9)(-.1,1) |
| 1740 |
% \Line(.1,1.4)(.3,1.5) |
| 1741 |
% \polygon*(-.5,1)(-1,0)(-1,-.5)(-.75,-1)(.5,-1) |
| 1742 |
% (0,-1.8)(.2,-1.9)(.3,-1.7)(.4,-2)(1,-2) |
| 1743 |
% (.5,-1.8)(.5,-1.5)(.8,-1.6)(1,-.75)(0,-.5) |
| 1744 |
% (0,-.3)(.7,-.3)(.9,-.2)(1,0)(0,0) |
| 1745 |
% (0,.7) |
| 1746 |
% \polygon*(-1.5,1)(-1.4,1.5)(-1,2)(-.5,2)(0,1.75) |
| 1747 |
% (.5,1.9)(1.25,1.75)(0,1.5)(-.5,1)(-1,.8) |
| 1748 |
% (-1.2,1)(-1,1)(-.5,1.5)(-1,1.75)(-1.3,1.5) |
| 1749 |
% ^^A |
| 1750 |
% ^^A The cat: |
| 1751 |
% \put(1.8,.5){\circle*{.6}} |
| 1752 |
% \put(2.1,.7){\circle*{.5}} |
| 1753 |
% \put(2.25,1){\circle*{.4}} |
| 1754 |
% \polygon*(2.05,1)(2.05,1.25)(2.25,1.1)(2.45,1.25)(2.45,1) |
| 1755 |
% \linethickness{3pt} |
| 1756 |
% \cbezier(1.6,.3)(1,0)(2.1,-.2)(1.5,-.5) |
| 1757 |
% \end{picture} |
| 1758 |
% |
| 1759 |
% \bigskip\bigskip\bigskip |
| 1760 |
% |
| 1761 |
% The large variant:\\*[\bigskipamount] |
| 1762 |
% \begin{picture}(12,8)(-6,-4) |
| 1763 |
% \linethickness{.1pt} |
| 1764 |
% \color{guidelines} |
| 1765 |
% \multiput(-6,-4)(1,0){13}{\line(0,1){8}} |
| 1766 |
% \multiput(-6,-4)(0,1) {9}{\line(1,0){12}} |
| 1767 |
% \color{black} |
| 1768 |
% \roundcap |
| 1769 |
% \linethickness{4pt} |
| 1770 |
% \Line(-2,-2)(6,2) |
| 1771 |
% \linethickness{2pt} |
| 1772 |
% \Line(-2,-2)(-5,-2.5) |
| 1773 |
% \Line(-2,-2)(-4.85,-2.95) |
| 1774 |
% \Line(-2,-2)(-4.6,-3.3) |
| 1775 |
% \Line(-2,-2)(-4.35,-3.65) |
| 1776 |
% \Line(-2,-2)(-4,-4) |
| 1777 |
% \put(-3,-1.2){\magicstar{.4}} |
| 1778 |
% \put(-4.1,-.8){\magicstar{.8}} |
| 1779 |
% \put(-5.4,-1.8){\magicstar{.6}} |
| 1780 |
% \Line(0,1.8)(-.2,1.4) |
| 1781 |
% \polyline(.6,3.2)(.8,3)(1.5,3) |
| 1782 |
% \put(1.6,3){\oval(.2,.2)[tl]} |
| 1783 |
% \put(1.6,3){\oval(.2,.2)[r]} |
| 1784 |
% \polyline(1.6,2.9)(1.8,2.4)(1.2,2.4)(1,2.5)(1,2.3) |
| 1785 |
% (1.2,2)(1.6,1.8)(1.7,1.8)(1.7,1.6)(1.4,1.5) |
| 1786 |
% (0,1.8)(-.2,2) |
| 1787 |
% \Line(.2,2.8)(.6,3) |
| 1788 |
% \polygon*(-1,2)(-2,0)(-2,-1)(-1.5,-2)(1,-2) |
| 1789 |
% (0,-3.6)(.4,-3.8)(.6,-3.4)(.8,-4)(2,-4) |
| 1790 |
% (1,-3.6)(1,-3)(1.6,-3.2)(2,-1.5)(0,-1) |
| 1791 |
% (0,-.6)(1.4,-.6)(1.8,-.4)(2,0)(0,0) |
| 1792 |
% (0,1.4) |
| 1793 |
% \polygon*(-3,2)(-2.8,3)(-2,4)(-1.5,4.1)(-1,4)(0,3.5) |
| 1794 |
% (1,3.8)(2.5,3.5)(3,3.3)(2,3.4)(0,3)(-1,2)(-2,1.6) |
| 1795 |
% (-2.7,2)(-2,2)(-1,3)(-2,3.5)(-2.6,3) |
| 1796 |
% \linethickness{.4pt} |
| 1797 |
% \Line(1.7,1.6)(2,1.6) |
| 1798 |
% \Line(1.7,1.6)(1.9,1.4) |
| 1799 |
% \Line(1.7,1.6)(1.7,1.3) |
| 1800 |
% ^^A |
| 1801 |
% ^^A The cat: |
| 1802 |
% \put(3.6,1){\circle*{1.2}} |
| 1803 |
% \put(4.2,1.4){\circle*{1}} |
| 1804 |
% \put(4.5,2){\circle*{.8}} |
| 1805 |
% \polygon*(4.1,2)(4.1,2.5)(4.5,2.2)(4.9,2.5)(4.9,2) |
| 1806 |
% \linethickness{4pt} |
| 1807 |
% \cbezier(3.2,.6)(2,0)(4.2,-.4)(3,-1) |
| 1808 |
% \buttcap |
| 1809 |
% \linethickness{.4pt} |
| 1810 |
% \Line(3.8,2.1)(5.2,1.9) |
| 1811 |
% \Line(3.8,2)(5.2,2) |
| 1812 |
% \Line(3.8,1.9)(5.2,2.1) |
| 1813 |
% \end{picture} |
| 1814 |
% |
| 1815 |
% \caption{Sketches of the witch} |
| 1816 |
% \label{fig:witch} |
| 1817 |
% \end{figure} |
| 1818 |
% |
| 1819 |
% \begin{macro}{\@HwM@large@witch} |
| 1820 |
% This is the macro that draws the ``large'' version of the witch (for |
| 1821 |
% "\displaystyle"). This is the ``private'' variant, with the following |
| 1822 |
% parameters: |
| 1823 |
% \begin{paramlist} |
| 1824 |
% \param |
| 1825 |
% "l"~for a right-facing witch, "r"~for a left-facing one;\\ |
| 1826 |
% \param |
| 1827 |
% "r"~for a right-facing witch, "l"~for a left-facing one;\\ |
| 1828 |
% \param |
| 1829 |
% main drawing thickn., in units of the default-rule-thickness |
| 1830 |
% "\fontdimen";\\ |
| 1831 |
% \param |
| 1832 |
% thickness of the broomstick and of the cat's tail, in the same units;\\ |
| 1833 |
% \param |
| 1834 |
% thickness of hair (beard, whiskers), in points~(\texttt{pt}). |
| 1835 |
% \end{paramlist} |
| 1836 |
% \begin{macrocode} |
| 1837 |
\newcommand*\@HwM@large@witch[5]{% |
| 1838 |
\begin{@HwM@large@picture}{12}{-6}% |
| 1839 |
\roundcap |
| 1840 |
\linethickness{#4\@HwM@thickness@units@for \textfont}% |
| 1841 |
\Line(\-2,-2)(\+6,2)% |
| 1842 |
\linethickness{#3\@HwM@thickness@units@for \textfont}% |
| 1843 |
\Line(\-2,-2)(\-5,-2.5)% |
| 1844 |
\Line(\-2,-2)(\-4.85,-2.95)% |
| 1845 |
\Line(\-2,-2)(\-4.6,-3.3)% |
| 1846 |
\Line(\-2,-2)(\-4.35,-3.65)% |
| 1847 |
\Line(\-2,-2)(\-4,-4)% |
| 1848 |
\put(\-3,-1.2){\@HwM@magic@star{.4}}% |
| 1849 |
\put(\-4.1,-.8){\@HwM@magic@star{.8}}% |
| 1850 |
\put(\-5.4,-1.8){\@HwM@magic@star{.6}}% |
| 1851 |
\Line(0,1.8)(\-.2,1.4)% |
| 1852 |
\polyline(\+.6,3.2)(\+.8,3)(\+1.5,3)% |
| 1853 |
\put(\+1.6,3){\oval(.2,.2)[t#1]}% |
| 1854 |
\put(\+1.6,3){\oval(.2,.2)[#2]}% |
| 1855 |
\polyline(\+1.6,2.9)(\+1.8,2.4)(\+1.2,2.4)(\+1,2.5)(\+1,2.3)% |
| 1856 |
(\+1.2,2)(\+1.6,1.8)(\+1.7,1.8)(\+1.7,1.6)(\+1.4,1.5)% |
| 1857 |
(0,1.8)(\-.2,2)% |
| 1858 |
\polygon*(\-1,2)(\-2,0)(\-2,-1)(\-1.5,-2)(\+1,-2)% |
| 1859 |
(0,-3.6)(\+.4,-3.8)(\+.6,-3.4)(\+.8,-4)(\+2,-4)% |
| 1860 |
(\+1,-3.6)(\+1,-3)(\+1.6,-3.2)(\+2,-1.5)(0,-1)% |
| 1861 |
(0,-.6)(\+1.4,-.6)(\+1.8,-.4)(\+2,0)(0,0)% |
| 1862 |
(0,1.4)% |
| 1863 |
\polygon*(\-3,2)(\-2.8,3)(\-2,4)(\-1.5,4.1)(\-1,4)(0,3.5)% |
| 1864 |
(\+1,3.8)(\+2.5,3.5)(\+3,3.3)(\+2,3.4)(0,3)(\-1,2)% |
| 1865 |
(\-2,1.6)(\-2.7,2)(\-2,2)(\-1,3)(\-2,3.5)(\-2.6,3)% |
| 1866 |
\buttcap |
| 1867 |
% \end{macrocode} |
| 1868 |
% The witch's eye: |
| 1869 |
% \begin{macrocode} |
| 1870 |
\Line(\+.2,2.8)(\+.6,3)% |
| 1871 |
% \end{macrocode} |
| 1872 |
% Rest of the code: |
| 1873 |
% \begin{macrocode} |
| 1874 |
\linethickness{#5\p@}% |
| 1875 |
\Line(\+1.7,1.6)(\+2,1.6)% |
| 1876 |
\Line(\+1.7,1.6)(\+1.9,1.4)% |
| 1877 |
\Line(\+1.7,1.6)(\+1.7,1.3)% |
| 1878 |
\if@HwM@cat@ |
| 1879 |
\Line(\+3.8,2.1)(\+5.2,1.9)% |
| 1880 |
\Line(\+3.8,2)(\+5.2,2)% |
| 1881 |
\Line(\+3.8,1.9)(\+5.2,2.1)% |
| 1882 |
\roundcap |
| 1883 |
\linethickness{#4\@HwM@thickness@units@for \textfont}% |
| 1884 |
\put(\+3.6,1){\circle*{1.2}}% |
| 1885 |
\put(\+4.2,1.4){\circle*{1}}% |
| 1886 |
\put(\+4.5,2){\circle*{.8}}% |
| 1887 |
\polygon*(\+4.1,2)(\+4.1,2.5)(\+4.5,2.2)(\+4.9,2.5)(\+4.9,2)% |
| 1888 |
\cbezier(\+3.2,.6)(\+2,0)(\+4.2,-.4)(\+3,-1)% |
| 1889 |
\fi |
| 1890 |
\end{@HwM@large@picture}% |
| 1891 |
} |
| 1892 |
% \end{macrocode} |
| 1893 |
% \end{macro} |
| 1894 |
% |
| 1895 |
% \begin{macro}{\@HwM@Large@Witch} |
| 1896 |
% The ``public'' variant of the above, with the following parameters: |
| 1897 |
% \begin{paramlist} |
| 1898 |
% \param |
| 1899 |
% "l"~for a right-facing witch, "r"~for a left-facing one;\\ |
| 1900 |
% \param |
| 1901 |
% "r"~for a right-facing witch, "l"~for a left-facing one. |
| 1902 |
% \end{paramlist} |
| 1903 |
% \begin{macrocode} |
| 1904 |
\newcommand*\@HwM@Large@Witch[2]{% |
| 1905 |
\@HwM@choose@thicknesses{\@HwM@large@witch #1#2}% |
| 1906 |
{{.4}{1.8}{.1}}% |
| 1907 |
{{.8}{2.7}{.15}}% |
| 1908 |
} |
| 1909 |
% \end{macrocode} |
| 1910 |
% \end{macro} |
| 1911 |
% |
| 1912 |
% \begin{macro}{\@HwM@common@small@body} |
| 1913 |
% The macros that draw the ``small'' version of the witch (for styles others |
| 1914 |
% than "\displaystyle") are more complex, because some parts of the drawing |
| 1915 |
% are shared also by the extensible brooms ("\xrightwicthonbroom", |
| 1916 |
% "\overrightwitchonbroom", and the like). The following macro draws the |
| 1917 |
% parts that are common to all such constructions. This is the ``private'' |
| 1918 |
% variant, with the following parameters: |
| 1919 |
% \begin{paramlist} |
| 1920 |
% \param |
| 1921 |
% font selector (\eg "\textfont");\\ |
| 1922 |
% \param |
| 1923 |
% line thickness for the witch's face, in relative units. |
| 1924 |
% \end{paramlist} |
| 1925 |
% \begin{macrocode} |
| 1926 |
\newcommand*\@HwM@common@small@body[2]{% |
| 1927 |
\linethickness{#2\@HwM@thickness@units@for #1}% |
| 1928 |
\buttcap |
| 1929 |
% \end{macrocode} |
| 1930 |
% The witch's eye: |
| 1931 |
% \begin{macrocode} |
| 1932 |
\Line(\+.1,1.4)(\+.3,1.5)% |
| 1933 |
% \end{macrocode} |
| 1934 |
% Rest of the code: |
| 1935 |
% \begin{macrocode} |
| 1936 |
\roundcap |
| 1937 |
\Line(0,.9)(\-.1,.7)% |
| 1938 |
\polyline(\+.3,1.6)(\+.4,1.5)(\+.75,1.5)(\+.9,1.2)(\+.5,1.2)% |
| 1939 |
(\+.6,1)(\+.8,.9)(\+.7,.75)(0,.9)(\-.1,1)% |
| 1940 |
\polygon*(\-.5,1)(\-1,0)(\-1,-.5)(\-.75,-1)(\+.5,-1)% |
| 1941 |
(0,-1.8)(\+.2,-1.9)(\+.3,-1.7)(\+.4,-2)(\+1,-2)% |
| 1942 |
(\+.5,-1.8)(\+.5,-1.5)(\+.8,-1.6)(\+1,-.75)(0,-.5)% |
| 1943 |
(0,.7)% |
| 1944 |
\polygon*(\-1.5,1)(\-1.4,1.5)(\-1,2)(\-.5,2)(0,1.75)% |
| 1945 |
(\+.5,1.9)(\+1.25,1.75)(0,1.5)(\-.5,1)(\-1,.8)% |
| 1946 |
(\-1.2,1)(\-1,1)(\-.5,1.5)(\-1,1.75)(\-1.3,1.5)% |
| 1947 |
} |
| 1948 |
% \end{macrocode} |
| 1949 |
% \end{macro} |
| 1950 |
% |
| 1951 |
% \begin{macro}{\@HwM@Common@Small@Body} |
| 1952 |
% The ``public'' variant of the above; parameters: |
| 1953 |
% \begin{paramlist} |
| 1954 |
% \param |
| 1955 |
% font selector (\eg "\textfont"). |
| 1956 |
% \end{paramlist} |
| 1957 |
% \begin{macrocode} |
| 1958 |
\newcommand*\@HwM@Common@Small@Body[1]{% |
| 1959 |
\@HwM@choose@thicknesses {\@HwM@common@small@body #1}{{.35}}{{.7}}% |
| 1960 |
} |
| 1961 |
% \end{macrocode} |
| 1962 |
% \end{macro} |
| 1963 |
% |
| 1964 |
% \begin{macro}{\@HwM@common@small@cat} |
| 1965 |
% Draws the part of the cat that is shared also by the extensible brooms; |
| 1966 |
% ``private'' variant, parameters are as follows: |
| 1967 |
% \begin{paramlist} |
| 1968 |
% \param |
| 1969 |
% font selector (\eg "\textfont");\\ |
| 1970 |
% \param |
| 1971 |
% line thickness for the cat's tail, in relative units. |
| 1972 |
% \end{paramlist} |
| 1973 |
% \begin{macrocode} |
| 1974 |
\newcommand*\@HwM@common@small@cat[2]{% |
| 1975 |
\roundcap |
| 1976 |
\linethickness{#2\@HwM@thickness@units@for #1}% |
| 1977 |
\if@HwM@cat@ |
| 1978 |
\put(\+1.8,.5){\circle*{.6}}% |
| 1979 |
\put(\+2.1,.7){\circle*{.5}}% |
| 1980 |
\put(\+2.25,1){\circle*{.4}}% |
| 1981 |
\polygon*(\+2.05,1)(\+2.05,1.25)(\+2.25,1.1)(\+2.45,1.25) |
| 1982 |
(\+2.45,1)% |
| 1983 |
\cbezier(\+1.8,.4)(\+1.2,.1)(\+2,-.1)(\+1.4,-.4)% |
| 1984 |
\fi |
| 1985 |
} |
| 1986 |
% \end{macrocode} |
| 1987 |
% \end{macro} |
| 1988 |
% |
| 1989 |
% \begin{macro}{\@HwM@Common@Small@Cat} |
| 1990 |
% The ``public'' variant of the above; parameters: |
| 1991 |
% \begin{paramlist} |
| 1992 |
% \param |
| 1993 |
% font selector (\eg "\textfont"). |
| 1994 |
% \end{paramlist} |
| 1995 |
% \begin{macrocode} |
| 1996 |
\newcommand*\@HwM@Common@Small@Cat[1]{% |
| 1997 |
\@HwM@choose@thicknesses {\@HwM@common@small@cat #1}{{}}{{2}}% |
| 1998 |
} |
| 1999 |
% \end{macrocode} |
| 2000 |
% \end{macro} |
| 2001 |
% |
| 2002 |
% \begin{macro}{\@HwM@Small@Witch} |
| 2003 |
% This is the macro that draws the complete ``small'' variant of the witch |
| 2004 |
% (for styles other than "\displaystyle"). This one exists only in the |
| 2005 |
% ``public'' variant, with the following arguments: |
| 2006 |
% \begin{paramlist} |
| 2007 |
% \param |
| 2008 |
% style selector (\eg "\scriptstyle");\\ |
| 2009 |
% \param |
| 2010 |
% font selector (\eg "\scriptfont"). |
| 2011 |
% \end{paramlist} |
| 2012 |
% The first parameter is imposed by the interface toward other parts of the |
| 2013 |
% code, because other macros that share the same interface might need it, but |
| 2014 |
% isn't actually used in this case. |
| 2015 |
% \begin{macrocode} |
| 2016 |
\newcommand*\@HwM@Small@Witch[2]{% |
| 2017 |
\begin{@HwM@small@picture}#2{6}{-3}% |
| 2018 |
\@HwM@Common@Small@Cat #2% |
| 2019 |
\Line(\-1,-1)(\+3,1)% |
| 2020 |
\@HwM@Common@Small@Body #2% |
| 2021 |
\Line(\-1,-1)(\-2.5,-1.25)% |
| 2022 |
\Line(\-1,-1)(\-2.4,-1.5)% |
| 2023 |
\Line(\-1,-1)(\-2.25,-1.75)% |
| 2024 |
\Line(\-1,-1)(\-2,-2)% |
| 2025 |
\put(\-1.7,-.4){\@HwM@magic@star{.4}}% |
| 2026 |
\put(\-2.7,-.8){\@HwM@magic@star{.25}}% |
| 2027 |
\polygon*(0,-.3)(\+.7,-.3)(\+.9,-.2)(\+1,0)(0,0)% |
| 2028 |
\end{@HwM@small@picture}% |
| 2029 |
} |
| 2030 |
% \end{macrocode} |
| 2031 |
% \end{macro} |
| 2032 |
% |
| 2033 |
% \begin{macro}{\@HwM@Small@Witch@Wo@Broom} |
| 2034 |
% Draws the small witch w/o the broom. This one exists only in the |
| 2035 |
% ``public'' variant, with the following argument: |
| 2036 |
% \begin{paramlist} |
| 2037 |
% \param |
| 2038 |
% font selector (\eg "\textfont"). |
| 2039 |
% \end{paramlist} |
| 2040 |
% \begin{macrocode} |
| 2041 |
\newcommand*\@HwM@Small@Witch@Wo@Broom[1]{% |
| 2042 |
\begin{@HwM@math@picture}{4}{-2}{}#1{0}{\+1}% |
| 2043 |
\@HwM@Common@Small@Body #1% |
| 2044 |
\polygon*(\-.1,.4)(\+1,-.9)(\+1,-1.2)(\+.8,-1.2)(\-.1,0)% |
| 2045 |
\end{@HwM@math@picture}% |
| 2046 |
} |
| 2047 |
% \end{macrocode} |
| 2048 |
% \end{macro} |
| 2049 |
% |
| 2050 |
% \begin{macro}{\@HwM@Small@Cat@On@Hori@Broom} |
| 2051 |
% Draws a small cat on a horizontal broomstick. This one exists only in the |
| 2052 |
% ``public'' variant, with the following argument: |
| 2053 |
% \begin{paramlist} |
| 2054 |
% \param |
| 2055 |
% font selector (\eg "\textfont"). |
| 2056 |
% \end{paramlist} |
| 2057 |
% \begin{macrocode} |
| 2058 |
\newcommand*\@HwM@Small@Cat@On@Hori@Broom[1]{% |
| 2059 |
\begin{@HwM@math@picture}{0}{-.6}{}#1{0}{\+2.5}% |
| 2060 |
\@HwM@Common@Small@Cat #1% |
| 2061 |
\Line(\+2.2,.8)(\+2.4,.4)% |
| 2062 |
\end{@HwM@math@picture}% |
| 2063 |
} |
| 2064 |
% \end{macrocode} |
| 2065 |
% \end{macro} |
| 2066 |
% |
| 2067 |
% \subsubsection{Drawing the pumpkins} |
| 2068 |
% |
| 2069 |
% Here we group the macros that take care of drawing the pumpkins. |
| 2070 |
% Figure~\ref{fig:pumpkins} shows a sketch of the relevant drawings. |
| 2071 |
% |
| 2072 |
% \begin{figure}[tp] |
| 2073 |
% \newcommand*{\PumpkinSmallMouth}[7]{^^A |
| 2074 |
% \polygon*^^A |
| 2075 |
% (-#1)(-#2)(-#3)(0,#4)(#3)(#2)(#1)^^A |
| 2076 |
% (#5)(#6)(0,#7)(-#6)(-#5)^^A |
| 2077 |
% } |
| 2078 |
% \newcommand*{\PumpkinLargeMouth}[9]{^^A |
| 2079 |
% \polygon*^^A |
| 2080 |
% (-#1)(-#2)(-#3)(-#4)(0,#5)(#4)(#3)(#2)(#1)^^A |
| 2081 |
% (#6)(#7)(#8)(0,#9)(-#8)(-#7)(-#6)^^A |
| 2082 |
% } |
| 2083 |
% |
| 2084 |
% \centering |
| 2085 |
% |
| 2086 |
% The binary operator variant:\\*[\medskipamount] |
| 2087 |
% \begin{picture}(3.2,4)(-1.6,-2) |
| 2088 |
% \linethickness{.1pt} |
| 2089 |
% \color{guidelines} |
| 2090 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 2091 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 2092 |
% \color{black} |
| 2093 |
% \roundcap |
| 2094 |
% \linethickness{1.3pt} |
| 2095 |
% \Line(-.1,1)(-.15,1.4)(.15,1.4)(.1,1) |
| 2096 |
% \Line(-.1,-1)(.1,-1) |
| 2097 |
% \newcommand*{\PumpkinProfile}[1]{% |
| 2098 |
% \cbezier(#1.1,1)(#11.2,1.7)(#11.6,.8)(#11.6,0)% |
| 2099 |
% \cbezier(#1.1,-1)(#11,-1.5)(#11.6,-.8)(#11.6,0)% |
| 2100 |
% \put(#1.6,.5){\circle*{.4}}% |
| 2101 |
% } |
| 2102 |
% \PumpkinProfile- |
| 2103 |
% \PumpkinProfile+ |
| 2104 |
% \PumpkinSmallMouth{1,-.1}{.7,-.5}{.4,-.4} |
| 2105 |
% {-.7} |
| 2106 |
% {.6,-.3}{.3,-.2} |
| 2107 |
% {-.4} |
| 2108 |
% \end{picture} |
| 2109 |
% |
| 2110 |
% \bigskip\bigskip |
| 2111 |
% |
| 2112 |
% The small variant:\\*[\medskipamount] |
| 2113 |
% \begin{picture}(4.5,4)(-2.25,-2) |
| 2114 |
% \linethickness{.1pt} |
| 2115 |
% \color{guidelines} |
| 2116 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 2117 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 2118 |
% \color{black} |
| 2119 |
% \roundcap |
| 2120 |
% \linethickness{2pt} |
| 2121 |
% \Line(-.1,1.5)(-.15,2)(.15,2)(.1,1.5) |
| 2122 |
% \Line(-.1,-1.8)(.1,-1.8) |
| 2123 |
% \newcommand*{\PumpkinProfile}[1]{% |
| 2124 |
% \cbezier(#1.1,1.5)(#11.75,2.5)(#12.25,1)(#12.25,0)% |
| 2125 |
% \cbezier(#1.1,-1.8)(#11.6,-2.4)(#12.25,-1)(#12.25,0)% |
| 2126 |
% \put(#1.75,.75){\circle*{.5}}% |
| 2127 |
% } |
| 2128 |
% \PumpkinProfile- |
| 2129 |
% \PumpkinProfile+ |
| 2130 |
% \polygon*(0,.2)(-.2,-.2)(.2,-.2) |
| 2131 |
% \PumpkinSmallMouth{1.3,-.3}{.8,-.8}{.5,-.7} |
| 2132 |
% {-1} |
| 2133 |
% {.7,-.6}{.4,-.5} |
| 2134 |
% {-.7} |
| 2135 |
% \end{picture} |
| 2136 |
% |
| 2137 |
% \bigskip\bigskip |
| 2138 |
% |
| 2139 |
% The large variant:\\*[\medskipamount] |
| 2140 |
% \begin{picture}(9,8)(-4.5,-4) |
| 2141 |
% \linethickness{.1pt} |
| 2142 |
% \color{guidelines} |
| 2143 |
% \multiput(-5,-4)(1,0){11}{\line(0,1) {8}} |
| 2144 |
% \multiput(-5,-4)(0,1) {9}{\line(1,0){10}} |
| 2145 |
% \color{black} |
| 2146 |
% \roundcap |
| 2147 |
% \linethickness{3pt} |
| 2148 |
% \Line(-.15,2.25)(-.3,3)(.3,3)(.15,2.25) |
| 2149 |
% \Line(-.15,-2.7)(.15,-2.7) |
| 2150 |
% \newcommand*{\PumpkinProfile}[1]{% |
| 2151 |
% \cbezier(#1.15,2.25)(#12.63,3.75)(#13.38,1.5)(#13.38,0)% |
| 2152 |
% \cbezier(#1.15,-2.7)(#12.4,-3.6)(#13.38,-1.5)(#13.38,0)% |
| 2153 |
% \put(#11.13,1.13){\circle*{.8}}% |
| 2154 |
% } |
| 2155 |
% \PumpkinProfile- |
| 2156 |
% \PumpkinProfile+ |
| 2157 |
% \polygon*(0,.35)(-.35,-.35)(.35,-.35) |
| 2158 |
% \PumpkinLargeMouth{2,-.5}{1.3,-1.4}{.8,-1.3}{.5,-1.6} |
| 2159 |
% {-1.5} |
| 2160 |
% {1.2,-1.1}{.7,-1}{.45,-1.1} |
| 2161 |
% {-1} |
| 2162 |
% \end{picture} |
| 2163 |
% |
| 2164 |
% \caption{Sketches of the pumpkins} |
| 2165 |
% \label{fig:pumpkins} |
| 2166 |
% \end{figure} |
| 2167 |
% |
| 2168 |
% As you can see in figure~\ref{fig:pumpkins}, pumpkins come in three |
| 2169 |
% variants: a binary operator and the two versions (both for display and |
| 2170 |
% nondisplay math) of a ``large'' operator. Below, the macros for each |
| 2171 |
% version are preceded by one or two useful ``subroutines'', that draw some |
| 2172 |
% patterns that appear more than once in the picture. |
| 2173 |
% |
| 2174 |
% \begin{macro}{\@HwM@large@pumpkin@profile} |
| 2175 |
% Subroutine that draws the outline of the pumpkin and one eye, for a |
| 2176 |
% ``large'' operator in display style. Argument~\#1 is either \texttt{-} |
| 2177 |
% or~\texttt{+}, depending on which half of the pumpkin you want to draw. |
| 2178 |
% \begin{macrocode} |
| 2179 |
\newcommand*\@HwM@large@pumpkin@profile[1]{% |
| 2180 |
\cbezier(#1.15,2.25)(#12.63,3.75)(#13.38,1.5)(#13.38,0)% |
| 2181 |
\cbezier(#1.15,-2.7)(#12.4,-3.6)(#13.38,-1.5)(#13.38,0)% |
| 2182 |
\put(#11.13,1.13){\circle*{.8}}% |
| 2183 |
} |
| 2184 |
% \end{macrocode} |
| 2185 |
% \end{macro} |
| 2186 |
% |
| 2187 |
% \begin{macro}{\@HwM@large@pumpkin@mouth} |
| 2188 |
% This subroutine draws the variant of the mouth that is used by the display |
| 2189 |
% version of the ``large'' operator. The parameters are suitable point |
| 2190 |
% coordinates. |
| 2191 |
% \begin{macrocode} |
| 2192 |
\newcommand*\@HwM@large@pumpkin@mouth[9]{% |
| 2193 |
\polygon*% |
| 2194 |
% \end{macrocode} |
| 2195 |
% Lower lip: |
| 2196 |
% \begin{macrocode} |
| 2197 |
(-#1)(-#2)(-#3)(-#4)(0,#5)(#4)(#3)(#2)(#1)% |
| 2198 |
% \end{macrocode} |
| 2199 |
% Upper lip: |
| 2200 |
% \begin{macrocode} |
| 2201 |
(#6)(#7)(#8)(0,#9)(-#8)(-#7)(-#6)% |
| 2202 |
} |
| 2203 |
% \end{macrocode} |
| 2204 |
% \end{macro} |
| 2205 |
% |
| 2206 |
% \begin{macro}{\@HwM@large@pumpkin} |
| 2207 |
% Private version of the macro that draws the pumpkin correspondng to a |
| 2208 |
% ``large'' operator used in display math mode. Argument: |
| 2209 |
% \begin{paramlist} |
| 2210 |
% \param |
| 2211 |
% drawing thickness, in units of the default-rule-thickness "\fontdimen". |
| 2212 |
% \end{paramlist} |
| 2213 |
% \begin{macrocode} |
| 2214 |
\newcommand*\@HwM@large@pumpkin[1]{% |
| 2215 |
\begin{@HwM@bigop@picture}\displaystyle \textfont {7.5}{-3.75}% |
| 2216 |
\roundcap |
| 2217 |
\linethickness{#1\@HwM@thickness@units@for \textfont}% |
| 2218 |
\Line(-.15,2.25)(-.3,3)(.3,3)(.15,2.25)% |
| 2219 |
\Line(-.15,-2.7)(.15,-2.7)% |
| 2220 |
\@HwM@large@pumpkin@profile-% |
| 2221 |
\@HwM@large@pumpkin@profile+% |
| 2222 |
\polygon*(0,.35)(-.35,-.35)(.35,-.35)% |
| 2223 |
\@HwM@large@pumpkin@mouth{2,-.5}{1.3,-1.4}{.8,-1.3}{.5,-1.6}% |
| 2224 |
{-1.5}% |
| 2225 |
{1.2,-1.1}{.7,-1}{.45,-1.1}% |
| 2226 |
{-1}% |
| 2227 |
\end{@HwM@bigop@picture}% |
| 2228 |
} |
| 2229 |
% \end{macrocode} |
| 2230 |
% \end{macro} |
| 2231 |
% |
| 2232 |
% \begin{macro}{\@HwM@Large@Pumpkin} |
| 2233 |
% Public version of the above; requires no parameters. |
| 2234 |
% \begin{macrocode} |
| 2235 |
\newcommand*\@HwM@Large@Pumpkin{% |
| 2236 |
\@HwM@choose@thicknesses \@HwM@large@pumpkin |
| 2237 |
{{1.8}}% |
| 2238 |
{{2.2}}% |
| 2239 |
} |
| 2240 |
% \end{macrocode} |
| 2241 |
% \end{macro} |
| 2242 |
% |
| 2243 |
% \begin{macro}{\@HwM@small@pumpkin@profile} |
| 2244 |
% Subroutine that draws the outline of the pumpkin and one eye, for a |
| 2245 |
% ``large'' operator \emph{not} in display style. Argument~\#1 is either |
| 2246 |
% \texttt{-} or~\texttt{+}, depending on which half of the pumpkin you want |
| 2247 |
% to draw. |
| 2248 |
% \begin{macrocode} |
| 2249 |
\newcommand*\@HwM@small@pumpkin@profile[1]{% |
| 2250 |
\cbezier(#1.1,1.5)(#11.75,2.5)(#12.25,1)(#12.25,0)% |
| 2251 |
\cbezier(#1.1,-1.8)(#11.6,-2.4)(#12.25,-1)(#12.25,0)% |
| 2252 |
\put(#1.75,.75){\circle*{.5}}% |
| 2253 |
} |
| 2254 |
% \end{macrocode} |
| 2255 |
% \end{macro} |
| 2256 |
% |
| 2257 |
% \begin{macro}{\@HwM@small@pumpkin@mouth} |
| 2258 |
% This subroutine draws the variant of the mouth that is shared between the |
| 2259 |
% binary operator and the nondisplay version of the ``large'' operator. The |
| 2260 |
% parameters are suitable point coordinates. |
| 2261 |
% \begin{macrocode} |
| 2262 |
\newcommand*\@HwM@small@pumpkin@mouth[7]{% |
| 2263 |
\polygon*% |
| 2264 |
% \end{macrocode} |
| 2265 |
% Lower lip: |
| 2266 |
% \begin{macrocode} |
| 2267 |
(-#1)(-#2)(-#3)(0,#4)(#3)(#2)(#1)% |
| 2268 |
% \end{macrocode} |
| 2269 |
% Upper lip: |
| 2270 |
% \begin{macrocode} |
| 2271 |
(#5)(#6)(0,#7)(-#6)(-#5)% |
| 2272 |
} |
| 2273 |
% \end{macrocode} |
| 2274 |
% \end{macro} |
| 2275 |
% |
| 2276 |
% \begin{macro}{\@HwM@small@pumpkin} |
| 2277 |
% Private version of the macro that draws the pumpkin correspondng to a |
| 2278 |
% ``large'' operator used in nondisplay math mode. Arguments: |
| 2279 |
% \begin{paramlist} |
| 2280 |
% \param |
| 2281 |
% style selector (\eg "\scriptstyle");\\ |
| 2282 |
% \param |
| 2283 |
% font selector (\eg "\scriptfont");\\ |
| 2284 |
% \param |
| 2285 |
% drawing thickness, in units of the default-rule-thickness "\fontdimen". |
| 2286 |
% \end{paramlist} |
| 2287 |
% \begin{macrocode} |
| 2288 |
\newcommand*\@HwM@small@pumpkin[3]{% |
| 2289 |
\begin{@HwM@bigop@picture}#1#2{5}{-2.5}% |
| 2290 |
\roundcap |
| 2291 |
\linethickness{#3\@HwM@thickness@units@for #2}% |
| 2292 |
\Line(-.1,1.5)(-.15,2)(.15,2)(.1,1.5)% |
| 2293 |
\Line(-.1,-1.8)(.1,-1.8)% |
| 2294 |
\@HwM@small@pumpkin@profile-% |
| 2295 |
\@HwM@small@pumpkin@profile+% |
| 2296 |
\polygon*(0,.2)(-.2,-.2)(.2,-.2)% |
| 2297 |
\@HwM@small@pumpkin@mouth{1.3,-.3}{.8,-.8}{.5,-.7}% |
| 2298 |
{-1}% |
| 2299 |
{.7,-.6}{.4,-.5}% |
| 2300 |
{-.7}% |
| 2301 |
\end{@HwM@bigop@picture}% |
| 2302 |
} |
| 2303 |
% \end{macrocode} |
| 2304 |
% \end{macro} |
| 2305 |
% |
| 2306 |
% \begin{macro}{\@HwM@Small@Pumpkin} |
| 2307 |
% Public version of the above, with the following arguments: |
| 2308 |
% \begin{paramlist} |
| 2309 |
% \param |
| 2310 |
% style selector (\eg "\scriptstyle");\\ |
| 2311 |
% \param |
| 2312 |
% font selector (\eg "\scriptfont"). |
| 2313 |
% \end{paramlist} |
| 2314 |
% \begin{macrocode} |
| 2315 |
\newcommand*\@HwM@Small@Pumpkin[2]{% |
| 2316 |
\@HwM@choose@thicknesses{\@HwM@small@pumpkin #1#2}% |
| 2317 |
{{}}% |
| 2318 |
{{1.5}}% |
| 2319 |
} |
| 2320 |
% \end{macrocode} |
| 2321 |
% \end{macro} |
| 2322 |
% |
| 2323 |
% \begin{macro}{\@HwM@binop@pumpkin@profile} |
| 2324 |
% Subroutine that draws the outline of the pumpkin and one eye, for a binary |
| 2325 |
% operator (in whatever style). Argument~\#1 is either \texttt{-} |
| 2326 |
% or~\texttt{+}, depending on which half of the pumpkin you want to draw. |
| 2327 |
% \begin{macrocode} |
| 2328 |
\newcommand*\@HwM@binop@pumpkin@profile[1]{% |
| 2329 |
\cbezier(#1.1,1)(#11.2,1.7)(#11.6,.8)(#11.6,0)% |
| 2330 |
\cbezier(#1.1,-1)(#11,-1.5)(#11.6,-.8)(#11.6,0)% |
| 2331 |
\put(#1.6,.5){\circle*{.4}}% |
| 2332 |
} |
| 2333 |
% \end{macrocode} |
| 2334 |
% \end{macro} |
| 2335 |
% |
| 2336 |
% \begin{macro}{\@HwM@binop@pumpkin} |
| 2337 |
% Private version of the macro that draws the pumpkin correspondng to a |
| 2338 |
% binary operator. Arguments: |
| 2339 |
% \begin{paramlist} |
| 2340 |
% \param |
| 2341 |
% style selector (\eg "\textstyle");\\ |
| 2342 |
% \param |
| 2343 |
% font selector (\eg "\textfont");\\ |
| 2344 |
% \param |
| 2345 |
% drawing thickness, in units of the default-rule-thickness "\fontdimen". |
| 2346 |
% \end{paramlist} |
| 2347 |
% \begin{macrocode} |
| 2348 |
\newcommand*\@HwM@binop@pumpkin[3]{% |
| 2349 |
\begin{@HwM@oplus@picture}#1#2{3.6}{-1.8}% |
| 2350 |
\roundcap |
| 2351 |
\linethickness{#3\@HwM@thickness@units@for #2}% |
| 2352 |
\Line(-.1,1)(-.15,1.4)(.15,1.4)(.1,1)% |
| 2353 |
\Line(-.1,-1)(.1,-1)% |
| 2354 |
\@HwM@binop@pumpkin@profile-% |
| 2355 |
\@HwM@binop@pumpkin@profile+% |
| 2356 |
\@HwM@small@pumpkin@mouth{1,-.1}{.7,-.5}{.4,-.4}% |
| 2357 |
{-.7}% |
| 2358 |
{.6,-.3}{.3,-.2}% |
| 2359 |
{-.4}% |
| 2360 |
\end{@HwM@oplus@picture}% |
| 2361 |
} |
| 2362 |
% \end{macrocode} |
| 2363 |
% \end{macro} |
| 2364 |
% |
| 2365 |
% \begin{macro}{\@HwM@Binop@Pumpkin} |
| 2366 |
% Public version of the above, with the following arguments: |
| 2367 |
% \begin{paramlist} |
| 2368 |
% \param |
| 2369 |
% style selector (\eg "\textstyle");\\ |
| 2370 |
% \param |
| 2371 |
% font selector (\eg "\textfont"). |
| 2372 |
% \end{paramlist} |
| 2373 |
% \begin{macrocode} |
| 2374 |
\newcommand*\@HwM@Binop@Pumpkin[2]{% |
| 2375 |
\@HwM@choose@thicknesses{\@HwM@binop@pumpkin #1#2}% |
| 2376 |
{{.6}}% |
| 2377 |
{{1.2}}% |
| 2378 |
} |
| 2379 |
% \end{macrocode} |
| 2380 |
% \end{macro} |
| 2381 |
% |
| 2382 |
% \subsubsection{Drawing the skulls} |
| 2383 |
% |
| 2384 |
% Now it's the turn of the macros that take care of drawing the skulls. |
| 2385 |
% Figure~\ref{fig:skulls} shows a sketch of the relevant drawings. |
| 2386 |
% |
| 2387 |
% \begin{figure}[tp] |
| 2388 |
% \newcommand*{\binaryskullnose}[8]{^^A |
| 2389 |
% \moveto(0,-.#1)^^A |
| 2390 |
% \curveto(-.#2,-.#1)(-.#3,-.#4)(-.#5,-.#6)^^A |
| 2391 |
% \curveto(-.#7,-.#8)(.#7,-.#8)(.#5,-.#6)^^A |
| 2392 |
% \curveto(.#3,-.#4)(.#2,-.#1)(0,-.#1)^^A |
| 2393 |
% \fillpath |
| 2394 |
% } |
| 2395 |
% \newcommand*{\semibinaryskullcontour}[1]{^^A |
| 2396 |
% \moveto(#1.15,0)^^A |
| 2397 |
% \curveto(#1.15,.1)(#1.15,.21)(#1.4,.2)^^A |
| 2398 |
% \curveto(#1.6,.19)(#1.69,.1)(#1.7,0)^^A |
| 2399 |
% \curveto(#1.71,-.1)(#1.6,-.3)(#1.5,-.3)^^A |
| 2400 |
% \curveto(#1.4,-.3)(#1.15,-.2)(#1.15,0)^^A |
| 2401 |
% \fillpath |
| 2402 |
% \cbezier(0,1.333336)(#11,1.333336)(#11.2,0.5)(#11,0)^^A |
| 2403 |
% \cbezier(#11,0)(#11.05,-.9)(#1.5,-.3)(#1.5,-.65)^^A |
| 2404 |
% } |
| 2405 |
% \newcommand*{\semibinaryskullteeth}[2]{^^A |
| 2406 |
% \moveto(#1.5,-.7)^^A |
| 2407 |
% \curveto(#1.45,-.6)(#1.4,-.6)(#1.35,-.7)^^A |
| 2408 |
% \curveto(#1.4,-1.2)(#1.5,-1.2)(#1.5,-.7)^^A |
| 2409 |
% \strokepath |
| 2410 |
% \moveto(#1.33,-.7)^^A |
| 2411 |
% \curveto(#1.3,-.6)(#1.22,-.6)(#1.19,-.75)^^A |
| 2412 |
% \curveto(#1.15,-.9)(#1.38,-.9)(#1.33,-.7)^^A |
| 2413 |
% \strokepath |
| 2414 |
% \moveto(#1.17,-.75)^^A |
| 2415 |
% \curveto(#1.13,-.65)(#1.05,-.62)(#1.02,-.75)^^A |
| 2416 |
% \curveto(#2.03,-.95)(#1.22,-.95)(#1.17,-.75)^^A |
| 2417 |
% \strokepath |
| 2418 |
% } |
| 2419 |
% |
| 2420 |
% \newcommand*{\semismallskullcontour}[1]{^^A |
| 2421 |
% \moveto(#1.225,0)^^A |
| 2422 |
% \curveto(#1.225,.15)(#1.225,.315)(#1.6,.3)^^A |
| 2423 |
% \curveto(#1.9,.285)(#11.035,.15)(#11.05,0)^^A |
| 2424 |
% \curveto(#11.065,-.15)(#1.9,-.45)(#1.75,-.45)^^A |
| 2425 |
% \curveto(#1.6,-.45)(#1.225,-.3)(#1.225,0)^^A |
| 2426 |
% \fillpath |
| 2427 |
% \cbezier(0,2)(#11.5,2)(#11.8,0.75)(#11.5,0)^^A |
| 2428 |
% \cbezier(#11.5,0)(#11.575,-1.35)(#1.75,-.45)(#1.75,-1)^^A |
| 2429 |
% } |
| 2430 |
% \newcommand*{\semismallskulljaw}[1]{^^A |
| 2431 |
% \moveto(#11.25,-.9)^^A |
| 2432 |
% \curveto(#11.24,-1.2)(#11.2,-1)(#11.1,-1.3)^^A |
| 2433 |
% \curveto(#11,-1.6)(#11,-1.8)(#1.75,-1.9)^^A |
| 2434 |
% \curveto(0,-2.1)(#1.3,-2)(0,-2)^^A |
| 2435 |
% \strokepath |
| 2436 |
% } |
| 2437 |
% \newcommand*{\semismallskullinnerjaw}[1]{^^A |
| 2438 |
% \moveto(#11,-.9)^^A |
| 2439 |
% \curveto(#1.9,-1)(#11,-1.5)(#1.75,-1.5)^^A |
| 2440 |
% \strokepath |
| 2441 |
% } |
| 2442 |
% \newcommand*{\semismallskullteeth}[2]{^^A |
| 2443 |
% \moveto(#1.75,-1)^^A |
| 2444 |
% \curveto(#1.65,-.9)(#1.6,-.9)(#1.5,-1)^^A |
| 2445 |
% \curveto(#1.6,-2)(#1.7,-2)(#1.75,-1)^^A |
| 2446 |
% \strokepath |
| 2447 |
% \moveto(#1.45,-1)^^A |
| 2448 |
% \curveto(#1.4,-.9)(#1.3,-.9)(#1.285,-1.05)^^A |
| 2449 |
% \curveto(#1.2,-1.35)(#1.6,-1.35)(#1.45,-1)^^A |
| 2450 |
% \strokepath |
| 2451 |
% \moveto(#1.25,-1.05)^^A |
| 2452 |
% \curveto(#1.2,-.9)(#1.04,-.9)(#1.03,-1.05)^^A |
| 2453 |
% \curveto(#2.08,-1.4)(#1.35,-1.4)(#1.25,-1.05)^^A |
| 2454 |
% \strokepath |
| 2455 |
% \moveto(#1.5,-1.5)^^A |
| 2456 |
% \curveto(#1.47,-1.65)(#1.35,-1.6)(#1.3,-1.55)^^A |
| 2457 |
% \curveto(#1.15,-1.25)(#1.65,-1.25)(#1.5,-1.5)^^A |
| 2458 |
% \strokepath |
| 2459 |
% \moveto(#1.25,-1.55)^^A |
| 2460 |
% \curveto(#1.2,-1.7)(#1.04,-1.7)(#1.03,-1.55)^^A |
| 2461 |
% \curveto(#2.1,-1.3)(#1.35,-1.3)(#1.25,-1.55)^^A |
| 2462 |
% \strokepath |
| 2463 |
% } |
| 2464 |
% |
| 2465 |
% \newcommand*{\largeskullnose}[9]{^^A |
| 2466 |
% \moveto(0,-#1)^^A |
| 2467 |
% \curveto(-#2,-#1)(-#3,-#1)(-#4,-#5)^^A |
| 2468 |
% \curveto(-#6,-#7)(-#8,-#9)(0,-#9)^^A |
| 2469 |
% \curveto(#8,-#9)(#6,-#7)(#4,-#5)^^A |
| 2470 |
% \curveto(#3,-#1)(#2,-#1)(0,-#1)^^A |
| 2471 |
% \fillpath |
| 2472 |
% } |
| 2473 |
% \newcommand*{\semilargeskullcontour}[1]{^^A |
| 2474 |
% \moveto(#1.3375,0)^^A |
| 2475 |
% \curveto(#1.3375,.225)(#1.3375,.4725)(#1.9,.45)^^A |
| 2476 |
% \curveto(#11.35,.4275)(#11.5525,.225)(#11.575,0)^^A |
| 2477 |
% \curveto(#11.5975,-.225)(#11.35,-.675)(#11.125,-.675)^^A |
| 2478 |
% \curveto(#1.9,-.675)(#1.3375,-.45)(#1.3375,0)^^A |
| 2479 |
% \fillpath |
| 2480 |
% \cbezier(#12,2)(#12.1,1.8)(#12.7,1.125)(#12.25,0)^^A |
| 2481 |
% \moveto(#12.24,.1)^^A |
| 2482 |
% \curveto(#12.3,-1)(#12,-1.2)(#11.5,-1.2)^^A |
| 2483 |
% \curveto(#11.3,-1.2)(#11.125,-1.3)(#11.125,-1.5)^^A |
| 2484 |
% \strokepath |
| 2485 |
% ^^A Jaw |
| 2486 |
% \moveto(#11.875,-1.35)^^A |
| 2487 |
% \curveto(#11.86,-1.8)(#11.8,-1.5)(#11.65,-1.95)^^A |
| 2488 |
% \curveto(#11.5,-2.4)(#11.5,-2.75)(#11.2,-2.9)^^A |
| 2489 |
% \curveto(#1.9,-3.05)(#11,-3.2)(#1.3,-3.1)^^A |
| 2490 |
% \strokepath |
| 2491 |
% } |
| 2492 |
% \newcommand*{\semilargeskullinnerjaw}[1]{^^A |
| 2493 |
% \moveto(#11.5,-1.35)^^A |
| 2494 |
% \curveto(#11.35,-1.5)(#11.5,-2.25)(#11.125,-2.25)^^A |
| 2495 |
% \strokepath |
| 2496 |
% } |
| 2497 |
% \newcommand*{\semilargeskullteeth}[2]{^^A |
| 2498 |
% \moveto(#1.75,-2.25)^^A |
| 2499 |
% \curveto(#1.65,-2.5)(#1.55,-2.5)(#1.45,-2.3)^^A |
| 2500 |
% \curveto(#1.35,-2.05)(#1.4,-2)(#1.6,-2)^^A |
| 2501 |
% \curveto(#1.8,-2)(#1.8,-2.05)(#1.75,-2.25)^^A |
| 2502 |
% \strokepath |
| 2503 |
% \moveto(#1.35,-2.3)^^A |
| 2504 |
% \curveto(#1.25,-2.6)(#1.1,-2.65)(#1.05,-2.3)^^A |
| 2505 |
% \curveto(#1.05,-2.05)(0,-2.05)(#1.2,-2.05)^^A |
| 2506 |
% \curveto(#1.4,-2.05)(#1.42,-2)(#1.35,-2.3)^^A |
| 2507 |
% \strokepath |
| 2508 |
% \moveto(#11.12,-1.6)^^A |
| 2509 |
% \curveto(#11,-1.3)(#1.9,-1.3)(#1.75,-1.6)^^A |
| 2510 |
% \curveto(#11,-3)(#11,-3)(#11.12,-1.5)^^A |
| 2511 |
% \strokepath |
| 2512 |
% \moveto(#1.7,-1.6)^^A |
| 2513 |
% \curveto(#1.6,-1.4)(#1.5,-1.4)(#1.45,-1.65)^^A |
| 2514 |
% \curveto(#1.45,-1.85)(#1.4,-1.95)(#1.55,-1.95)^^A |
| 2515 |
% \curveto(#1.85,-1.95)(#1.75,-1.75)(#1.7,-1.6)^^A |
| 2516 |
% \strokepath |
| 2517 |
% \moveto(#1.4,-1.65)^^A |
| 2518 |
% \curveto(#1.3,-1.4)(#1.1,-1.4)(#1.05,-1.7)^^A |
| 2519 |
% \curveto(#1.05,-1.9)(#2.05,-2)(#1.225,-2)^^A |
| 2520 |
% \curveto(#1.5,-2)(#1.45,-1.9)(#1.4,-1.65) |
| 2521 |
% \strokepath |
| 2522 |
% } |
| 2523 |
% \newcommand*{\semilargeskullthinlines}[1]{^^A |
| 2524 |
% \moveto(#1.8,.7)^^A |
| 2525 |
% \curveto(#1.4,.7)(#1.4,.9)(#1.2,.7)^^A |
| 2526 |
% \curveto(#1.1,.6)(#1.2,.4)(#1.2,.3)^^A |
| 2527 |
% \strokepath |
| 2528 |
% \cbezier(#11.3,.7)(#11.5,.7)(#11.5,.75)(#11.75,.5)^^A |
| 2529 |
% } |
| 2530 |
% |
| 2531 |
% \centering |
| 2532 |
% |
| 2533 |
% The binary operator variant:\\*[\medskipamount] |
| 2534 |
% \begin{picture}(3.2,4)(-1.6,-2) |
| 2535 |
% \linethickness{.1pt} |
| 2536 |
% \color{guidelines} |
| 2537 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 2538 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 2539 |
% \color{black} |
| 2540 |
% \roundcap |
| 2541 |
% \linethickness{.7pt} |
| 2542 |
% \semibinaryskullteeth-+ |
| 2543 |
% \semibinaryskullteeth+- |
| 2544 |
% \linethickness{1.3pt} |
| 2545 |
% \binaryskullnose{5}{1}{2}{5}{15}{4}{1}{1} |
| 2546 |
% \semibinaryskullcontour- |
| 2547 |
% \semibinaryskullcontour+ |
| 2548 |
% \end{picture} |
| 2549 |
% |
| 2550 |
% \bigskip\bigskip |
| 2551 |
% |
| 2552 |
% The small variant:\\*[\medskipamount] |
| 2553 |
% \begin{picture}(4,4)(-2,-2) |
| 2554 |
% \linethickness{.1pt} |
| 2555 |
% \color{guidelines} |
| 2556 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 2557 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 2558 |
% \color{black} |
| 2559 |
% \roundcap |
| 2560 |
% \linethickness{.8pt} |
| 2561 |
% \semismallskullteeth-+ |
| 2562 |
% \semismallskullteeth+- |
| 2563 |
% \linethickness{2pt} |
| 2564 |
% \binaryskullnose{75}{15}{3}{75}{225}{6}{15}{15} |
| 2565 |
% \semismallskullcontour- |
| 2566 |
% \semismallskullcontour+ |
| 2567 |
% \semismallskulljaw- |
| 2568 |
% \semismallskulljaw+ |
| 2569 |
% \linethickness{1.2pt} |
| 2570 |
% \semismallskullinnerjaw- |
| 2571 |
% \semismallskullinnerjaw+ |
| 2572 |
% \end{picture} |
| 2573 |
% |
| 2574 |
% \bigskip\bigskip |
| 2575 |
% |
| 2576 |
% The large variant:\\*[\medskipamount] |
| 2577 |
% \begin{picture}(9,8)(-4.5,-4) |
| 2578 |
% \linethickness{.1pt} |
| 2579 |
% \color{guidelines} |
| 2580 |
% \multiput(-4,-4)(1,0){9}{\line(0,1){8}} |
| 2581 |
% \multiput(-4,-4)(0,1){9}{\line(1,0){8}} |
| 2582 |
% \color{black} |
| 2583 |
% \roundcap |
| 2584 |
% \linethickness{1pt} |
| 2585 |
% \semilargeskullteeth-+ |
| 2586 |
% \semilargeskullteeth+- |
| 2587 |
% \linethickness{3pt} |
| 2588 |
% \largeskullnose |
| 2589 |
% {1.125}{.1}{.5}{.3375}{.9}{.147}{.7}{.2}{.4} |
| 2590 |
% \cbezier(-2,2)(-1.25,3.5)(1.25,3.5)(2,2) |
| 2591 |
% \semilargeskullcontour- |
| 2592 |
% \semilargeskullcontour+ |
| 2593 |
% \cbezier(-.3,-3.1)(0,-3)(0,-3)(.3,-3.1) |
| 2594 |
% \linethickness{1.8pt} |
| 2595 |
% \semilargeskullinnerjaw- |
| 2596 |
% \semilargeskullinnerjaw+ |
| 2597 |
% \linethickness{.5pt} |
| 2598 |
% \semilargeskullthinlines- |
| 2599 |
% \semilargeskullthinlines+ |
| 2600 |
% \end{picture} |
| 2601 |
% |
| 2602 |
% \caption{Sketches of the skulls} |
| 2603 |
% \label{fig:skulls} |
| 2604 |
% \end{figure} |
| 2605 |
% |
| 2606 |
% As you can see in figure~\ref{fig:pumpkins}, skulls too come in three |
| 2607 |
% variants: a binary operator and the two versions (both for display and |
| 2608 |
% nondisplay math) of a ``large'' operator. Below, the macros for each |
| 2609 |
% version are preceded by one or two useful ``subroutines'', that draw some |
| 2610 |
% patterns that appear more than once in the picture. |
| 2611 |
% |
| 2612 |
% \begin{macro}{\@HwM@large@skull@nose} |
| 2613 |
% Subroutine that draws the (hole corresponding to the) nose in the variant |
| 2614 |
% of the skull that is used for a ``large'' operator typeset in display |
| 2615 |
% style. Parameters are suitable points coordinates. |
| 2616 |
% \begin{macrocode} |
| 2617 |
\newcommand*\@HwM@large@skull@nose[9]{% |
| 2618 |
\moveto(0,-#1)% |
| 2619 |
\curveto(-#2,-#1)(-#3,-#1)(-#4,-#5)% |
| 2620 |
\curveto(-#6,-#7)(-#8,-#9)(0,-#9)% |
| 2621 |
\curveto(#8,-#9)(#6,-#7)(#4,-#5)% |
| 2622 |
\curveto(#3,-#1)(#2,-#1)(0,-#1)% |
| 2623 |
\fillpath |
| 2624 |
} |
| 2625 |
% \end{macrocode} |
| 2626 |
% \end{macro} |
| 2627 |
% |
| 2628 |
% \begin{macro}{\@HwM@large@skull@profile} |
| 2629 |
% Subroutine that draws the outline and the outer part of the jaw in the |
| 2630 |
% variant of the skull that is used for a ``large'' operator typeset in |
| 2631 |
% display style. Argument~\#1 is either \texttt{-} or~\texttt{+}, depending |
| 2632 |
% on which half of the skull you want to draw. |
| 2633 |
% \begin{macrocode} |
| 2634 |
\newcommand*\@HwM@large@skull@profile[1]{% |
| 2635 |
\moveto(#1.3375,0)% |
| 2636 |
\curveto(#1.3375,.225)(#1.3375,.4725)(#1.9,.45)% |
| 2637 |
\curveto(#11.35,.4275)(#11.5525,.225)(#11.575,0)% |
| 2638 |
\curveto(#11.5975,-.225)(#11.35,-.675)(#11.125,-.675)% |
| 2639 |
\curveto(#1.9,-.675)(#1.3375,-.45)(#1.3375,0)% |
| 2640 |
\fillpath |
| 2641 |
\cbezier(#12,2)(#12.1,1.8)(#12.7,1.125)(#12.25,0)% |
| 2642 |
\moveto(#12.24,.1)% |
| 2643 |
\curveto(#12.3,-1)(#12,-1.2)(#11.5,-1.2)% |
| 2644 |
\curveto(#11.3,-1.2)(#11.125,-1.3)(#11.125,-1.5)% |
| 2645 |
\strokepath |
| 2646 |
% \end{macrocode} |
| 2647 |
% The outer contour of the jaw: |
| 2648 |
% \begin{macrocode} |
| 2649 |
\moveto(#11.875,-1.35)% |
| 2650 |
\curveto(#11.86,-1.8)(#11.8,-1.5)(#11.65,-1.95)% |
| 2651 |
\curveto(#11.5,-2.4)(#11.5,-2.75)(#11.2,-2.9)% |
| 2652 |
\curveto(#1.9,-3.05)(#11,-3.2)(#1.3,-3.1)% |
| 2653 |
\strokepath |
| 2654 |
} |
| 2655 |
% \end{macrocode} |
| 2656 |
% \end{macro} |
| 2657 |
% |
| 2658 |
% \begin{macro}{\@HwM@large@skull@innerjaw} |
| 2659 |
% Subroutine that draws the inner part of the jaw in the variant of the skull |
| 2660 |
% that is used for a ``large'' operator typeset in display style. |
| 2661 |
% Argument~\#1 is either \texttt{-} or~\texttt{+}, depending on which half of |
| 2662 |
% the skull you want to draw. |
| 2663 |
% \begin{macrocode} |
| 2664 |
\newcommand*\@HwM@large@skull@innerjaw[1]{% |
| 2665 |
\moveto(#11.5,-1.35)% |
| 2666 |
\curveto(#11.35,-1.5)(#11.5,-2.25)(#11.125,-2.25)% |
| 2667 |
\strokepath |
| 2668 |
} |
| 2669 |
% \end{macrocode} |
| 2670 |
% \end{macro} |
| 2671 |
% |
| 2672 |
% \begin{macro}{\@HwM@large@skull@teeth} |
| 2673 |
% Subroutine for drawing the teeth in the variant of the skull that is used |
| 2674 |
% for a ``large'' operator typeset in display style. Argument~\#1 is either |
| 2675 |
% \texttt{-} or~\texttt{+}, depending on which half of the skull you want to |
| 2676 |
% draw; then, argument~\#2 must always be the opposite sign (that is, either |
| 2677 |
% \texttt{+} or~\texttt{-}, respectively). |
| 2678 |
% \begin{macrocode} |
| 2679 |
\newcommand*\@HwM@large@skull@teeth[2]{% |
| 2680 |
\moveto(#1.75,-2.25)% |
| 2681 |
\curveto(#1.65,-2.5)(#1.55,-2.5)(#1.45,-2.3)% |
| 2682 |
\curveto(#1.35,-2.05)(#1.4,-2)(#1.6,-2)% |
| 2683 |
\curveto(#1.8,-2)(#1.8,-2.05)(#1.75,-2.25)% |
| 2684 |
\strokepath |
| 2685 |
\moveto(#1.35,-2.3)% |
| 2686 |
\curveto(#1.25,-2.6)(#1.1,-2.65)(#1.05,-2.3)% |
| 2687 |
\curveto(#1.05,-2.05)(0,-2.05)(#1.2,-2.05)% |
| 2688 |
\curveto(#1.4,-2.05)(#1.42,-2)(#1.35,-2.3)% |
| 2689 |
\strokepath |
| 2690 |
\moveto(#1.7,-1.6)% |
| 2691 |
\curveto(#1.6,-1.4)(#1.5,-1.4)(#1.45,-1.65)% |
| 2692 |
\curveto(#1.45,-1.85)(#1.4,-1.95)(#1.55,-1.95)% |
| 2693 |
\curveto(#1.85,-1.95)(#1.75,-1.75)(#1.7,-1.6)% |
| 2694 |
\strokepath |
| 2695 |
\moveto(#11.12,-1.6)% |
| 2696 |
\curveto(#11,-1.3)(#1.9,-1.3)(#1.75,-1.6)% |
| 2697 |
\curveto(#11,-3)(#11,-3)(#11.12,-1.5)% |
| 2698 |
\strokepath |
| 2699 |
\moveto(#1.4,-1.65)% |
| 2700 |
\curveto(#1.3,-1.4)(#1.1,-1.4)(#1.05,-1.7)% |
| 2701 |
\curveto(#1.05,-1.9)(#2.05,-2)(#1.225,-2)% |
| 2702 |
\curveto(#1.5,-2)(#1.45,-1.9)(#1.4,-1.65) |
| 2703 |
\strokepath |
| 2704 |
} |
| 2705 |
% \end{macrocode} |
| 2706 |
% \end{macro} |
| 2707 |
% |
| 2708 |
% \begin{macro}{\@HwM@large@skull@brows} |
| 2709 |
% Subroutine for drawing the brows in the variant of the skull that is used |
| 2710 |
% for a ``large'' operator typeset in display style. Argument~\#1 is either |
| 2711 |
% \texttt{-} or~\texttt{+}, depending on which half of the skull you want to |
| 2712 |
% draw. |
| 2713 |
% \begin{macrocode} |
| 2714 |
\newcommand*\@HwM@large@skull@brows[1]{% |
| 2715 |
\moveto(#1.8,.7)% |
| 2716 |
\curveto(#1.4,.7)(#1.4,.9)(#1.2,.7)% |
| 2717 |
\curveto(#1.1,.6)(#1.2,.4)(#1.2,.3)% |
| 2718 |
\strokepath |
| 2719 |
\cbezier(#11.3,.7)(#11.5,.7)(#11.5,.75)(#11.75,.5)% |
| 2720 |
} |
| 2721 |
% \end{macrocode} |
| 2722 |
% \end{macro} |
| 2723 |
% |
| 2724 |
% Admittedly, not all these subroutines were actually needed; but I~wrote the |
| 2725 |
% code this way when I~dashed off the skethces, and I~was too lazy to |
| 2726 |
% streamline it afterwards, when copying it to this package! |
| 2727 |
% |
| 2728 |
% \begin{macro}{\@HwM@large@skull} |
| 2729 |
% Private version of the macro that draws the skull correspondng to a |
| 2730 |
% ``large'' operator used in display math mode. Arguments: |
| 2731 |
% \begin{paramlist} |
| 2732 |
% \param |
| 2733 |
% main drawing thickn., in units of the default-rule-thickness |
| 2734 |
% "\fontdimen";\\ |
| 2735 |
% \param |
| 2736 |
% line thickness for drawing the inner of the jaw, in the same units;\\ |
| 2737 |
% \param |
| 2738 |
% line thickness for drawing the teeth, in the same units;\\ |
| 2739 |
% \param |
| 2740 |
% line thickness for drawing the brows, in points~(\texttt{pt}). |
| 2741 |
% \end{paramlist} |
| 2742 |
% \begin{macrocode} |
| 2743 |
\newcommand*\@HwM@large@skull[4]{% |
| 2744 |
\begin{@HwM@bigop@picture}\displaystyle \textfont {6}{-3}% |
| 2745 |
\roundcap |
| 2746 |
\linethickness{#3\@HwM@thickness@units@for \textfont}% |
| 2747 |
\@HwM@large@skull@teeth-+% |
| 2748 |
\@HwM@large@skull@teeth+-% |
| 2749 |
\linethickness{#1\@HwM@thickness@units@for \textfont}% |
| 2750 |
\@HwM@large@skull@nose |
| 2751 |
{1.125}{.1}{.5}{.3375}{.9}{.147}{.7}{.2}{.4}% |
| 2752 |
\cbezier(-2,2)(-1.25,3.5)(1.25,3.5)(2,2)% |
| 2753 |
\@HwM@large@skull@profile-% |
| 2754 |
\@HwM@large@skull@profile+% |
| 2755 |
\cbezier(-.3,-3.1)(0,-3)(0,-3)(.3,-3.1)% |
| 2756 |
\linethickness{#2\@HwM@thickness@units@for \textfont}% |
| 2757 |
\@HwM@large@skull@innerjaw-% |
| 2758 |
\@HwM@large@skull@innerjaw+% |
| 2759 |
\linethickness{#4\p@}% |
| 2760 |
\@HwM@large@skull@brows-% |
| 2761 |
\@HwM@large@skull@brows+% |
| 2762 |
\end{@HwM@bigop@picture}% |
| 2763 |
} |
| 2764 |
% \end{macrocode} |
| 2765 |
% \end{macro} |
| 2766 |
% |
| 2767 |
% \begin{macro}{\@HwM@Large@Skull} |
| 2768 |
% Public version of the above; requires no parameters. |
| 2769 |
% \begin{macrocode} |
| 2770 |
\newcommand*\@HwM@Large@Skull{% |
| 2771 |
\@HwM@choose@thicknesses \@HwM@large@skull |
| 2772 |
{{1.5}{.9}{.3}{.075}}% |
| 2773 |
{{2}{1.2}{.4}{.1}}% |
| 2774 |
} |
| 2775 |
% \end{macrocode} |
| 2776 |
% \end{macro} |
| 2777 |
% |
| 2778 |
% \begin{macro}{\@HwM@small@skull@nose} |
| 2779 |
% Subroutine that draws the (hole corresponding to the) variant of the nose |
| 2780 |
% that is shared between the binary operator and the nondisplay version of |
| 2781 |
% the ``large'' operator. The parameters are suitable point coordinates. |
| 2782 |
% \begin{macrocode} |
| 2783 |
\newcommand*\@HwM@small@skull@nose[8]{% |
| 2784 |
\moveto(0,-.#1)% |
| 2785 |
\curveto(-.#2,-.#1)(-.#3,-.#4)(-.#5,-.#6)% |
| 2786 |
\curveto(-.#7,-.#8)(.#7,-.#8)(.#5,-.#6)% |
| 2787 |
\curveto(.#3,-.#4)(.#2,-.#1)(0,-.#1)% |
| 2788 |
\fillpath |
| 2789 |
} |
| 2790 |
% \end{macrocode} |
| 2791 |
% \end{macro} |
| 2792 |
% |
| 2793 |
% \begin{macro}{\@HwM@small@skull@profile} |
| 2794 |
% Subroutine that draws the outline and the outer part of the jaw in the |
| 2795 |
% variant of the skull that is used for a ``large'' operator typeset in |
| 2796 |
% \emph{non}-display style. Argument~\#1 is either \texttt{-} or~\texttt{+}, |
| 2797 |
% depending on which half of the skull you want to draw. |
| 2798 |
% \begin{macrocode} |
| 2799 |
\newcommand*\@HwM@small@skull@profile[1]{% |
| 2800 |
\moveto(#1.225,0)% |
| 2801 |
\curveto(#1.225,.15)(#1.225,.315)(#1.6,.3)% |
| 2802 |
\curveto(#1.9,.285)(#11.035,.15)(#11.05,0)% |
| 2803 |
\curveto(#11.065,-.15)(#1.9,-.45)(#1.75,-.45)% |
| 2804 |
\curveto(#1.6,-.45)(#1.225,-.3)(#1.225,0)% |
| 2805 |
\fillpath |
| 2806 |
\cbezier(0,2)(#11.5,2)(#11.8,0.75)(#11.5,0)% |
| 2807 |
\cbezier(#11.5,0)(#11.575,-1.35)(#1.75,-.45)(#1.75,-1)% |
| 2808 |
% \end{macrocode} |
| 2809 |
% The outer contour of the jaw: |
| 2810 |
% \begin{macrocode} |
| 2811 |
\moveto(#11.25,-.9)% |
| 2812 |
\curveto(#11.24,-1.2)(#11.2,-1)(#11.1,-1.3)% |
| 2813 |
\curveto(#11,-1.6)(#11,-1.8)(#1.75,-1.9)% |
| 2814 |
\curveto(0,-2.1)(#1.3,-2)(0,-2)% |
| 2815 |
\strokepath |
| 2816 |
} |
| 2817 |
% \end{macrocode} |
| 2818 |
% \end{macro} |
| 2819 |
% |
| 2820 |
% \begin{macro}{\@HwM@small@skull@innerjaw} |
| 2821 |
% Subroutine that draws the inner part of the jaw in the variant of the skull |
| 2822 |
% that is used for a ``large'' operator typeset in display style. |
| 2823 |
% Argument~\#1 is either \texttt{-} or~\texttt{+}, depending on which half of |
| 2824 |
% the skull you want to draw. |
| 2825 |
% \begin{macrocode} |
| 2826 |
\newcommand*\@HwM@small@skull@innerjaw[1]{% |
| 2827 |
\moveto(#11,-.9)% |
| 2828 |
\curveto(#1.9,-1)(#11,-1.5)(#1.75,-1.5)% |
| 2829 |
\strokepath |
| 2830 |
} |
| 2831 |
% \end{macrocode} |
| 2832 |
% \end{macro} |
| 2833 |
% |
| 2834 |
% \begin{macro}{\@HwM@small@skull@teeth} |
| 2835 |
% Subroutine for drawing the teeth in the variant of the skull that is used |
| 2836 |
% for a ``large'' operator which gets typeset in \emph{non}-display style. |
| 2837 |
% Argument~\#1 is either \texttt{-} or~\texttt{+}, depending on which half of |
| 2838 |
% the skull you want to draw; then, argument~\#2 must always be the opposite |
| 2839 |
% sign (that is, either \texttt{+} or~\texttt{-}, respectively). |
| 2840 |
% \begin{macrocode} |
| 2841 |
\newcommand*\@HwM@small@skull@teeth[2]{% |
| 2842 |
\moveto(#1.5,-1.5)% |
| 2843 |
\curveto(#1.47,-1.65)(#1.35,-1.6)(#1.3,-1.55)% |
| 2844 |
\curveto(#1.15,-1.25)(#1.65,-1.25)(#1.5,-1.5)% |
| 2845 |
\strokepath |
| 2846 |
\moveto(#1.25,-1.55)% |
| 2847 |
\curveto(#1.2,-1.7)(#1.04,-1.7)(#1.03,-1.55)% |
| 2848 |
\curveto(#2.1,-1.3)(#1.35,-1.3)(#1.25,-1.55)% |
| 2849 |
\strokepath |
| 2850 |
\moveto(#1.45,-1)% |
| 2851 |
\curveto(#1.4,-.9)(#1.3,-.9)(#1.285,-1.05)% |
| 2852 |
\curveto(#1.2,-1.35)(#1.6,-1.35)(#1.45,-1)% |
| 2853 |
\strokepath |
| 2854 |
\moveto(#1.75,-1)% |
| 2855 |
\curveto(#1.65,-.9)(#1.6,-.9)(#1.5,-1)% |
| 2856 |
\curveto(#1.6,-2)(#1.7,-2)(#1.75,-1)% |
| 2857 |
\strokepath |
| 2858 |
\moveto(#1.25,-1.05)% |
| 2859 |
\curveto(#1.2,-.9)(#1.04,-.9)(#1.03,-1.05)% |
| 2860 |
\curveto(#2.08,-1.4)(#1.35,-1.4)(#1.25,-1.05)% |
| 2861 |
\strokepath |
| 2862 |
} |
| 2863 |
% \end{macrocode} |
| 2864 |
% \end{macro} |
| 2865 |
% |
| 2866 |
% The same remark, as the one we made above, about the redundancy of these |
| 2867 |
% subroutines (and about my laziness!\@) applies here. |
| 2868 |
% |
| 2869 |
% \begin{macro}{\@HwM@small@skull} |
| 2870 |
% Private version of the macro that draws the skull correspondng to a |
| 2871 |
% ``large'' operator used in \emph{non}-display math mode. Arguments: |
| 2872 |
% \begin{paramlist} |
| 2873 |
% \param |
| 2874 |
% style selector (\eg "\scriptstyle");\\ |
| 2875 |
% \param |
| 2876 |
% font selector (\eg "\scriptfont");\\ |
| 2877 |
% \param |
| 2878 |
% main drawing thickn., in units of the default-rule-thickness |
| 2879 |
% "\fontdimen";\\ |
| 2880 |
% \param |
| 2881 |
% line thickness for drawing the inner of the jaw, in the same units;\\ |
| 2882 |
% \param |
| 2883 |
% line thickness for drawing the teeth, in the same units. |
| 2884 |
% \end{paramlist} |
| 2885 |
% \begin{macrocode} |
| 2886 |
\newcommand*\@HwM@small@skull[5]{% |
| 2887 |
\begin{@HwM@bigop@picture}#1#2{3.48}{-1.74}% |
| 2888 |
\roundcap |
| 2889 |
\linethickness{#5\@HwM@thickness@units@for #2}% |
| 2890 |
\@HwM@small@skull@teeth-+% |
| 2891 |
\@HwM@small@skull@teeth+-% |
| 2892 |
\linethickness{#3\@HwM@thickness@units@for #2}% |
| 2893 |
\@HwM@small@skull@nose{75}{15}{3}{75}{225}{6}{15}{15}% |
| 2894 |
\@HwM@small@skull@profile-% |
| 2895 |
\@HwM@small@skull@profile+% |
| 2896 |
\linethickness{#4\@HwM@thickness@units@for #2}% |
| 2897 |
\@HwM@small@skull@innerjaw-% |
| 2898 |
\@HwM@small@skull@innerjaw+% |
| 2899 |
\end{@HwM@bigop@picture}% |
| 2900 |
} |
| 2901 |
% \end{macrocode} |
| 2902 |
% \end{macro} |
| 2903 |
% |
| 2904 |
% \begin{macro}{\@HwM@Small@Skull} |
| 2905 |
% Public version of the above, with the following arguments: |
| 2906 |
% \begin{paramlist} |
| 2907 |
% \param |
| 2908 |
% style selector (\eg "\scriptstyle");\\ |
| 2909 |
% \param |
| 2910 |
% font selector (\eg "\scriptfont"). |
| 2911 |
% \end{paramlist} |
| 2912 |
% \begin{macrocode} |
| 2913 |
\newcommand*\@HwM@Small@Skull[2]{% |
| 2914 |
\@HwM@choose@thicknesses{\@HwM@small@skull #1#2}% |
| 2915 |
{{}{.6}{.25}}% |
| 2916 |
{{1.333333}{.7}{.3}}% |
| 2917 |
} |
| 2918 |
% \end{macrocode} |
| 2919 |
% \end{macro} |
| 2920 |
% |
| 2921 |
% \begin{macro}{\@HwM@binop@skull@profile} |
| 2922 |
% Subroutine that draws the outline of the variant of the skull that is used |
| 2923 |
% for a binary operator (in whatever style). Argument~\#1 is either |
| 2924 |
% \texttt{-} or~\texttt{+}, depending on which half of the skull you want to |
| 2925 |
% draw. |
| 2926 |
% \begin{macrocode} |
| 2927 |
\newcommand*\@HwM@binop@skull@profile[1]{% |
| 2928 |
\moveto(#1.15,0)% |
| 2929 |
\curveto(#1.15,.1)(#1.15,.21)(#1.4,.2)% |
| 2930 |
\curveto(#1.6,.19)(#1.69,.1)(#1.7,0)% |
| 2931 |
\curveto(#1.71,-.1)(#1.6,-.3)(#1.5,-.3)% |
| 2932 |
\curveto(#1.4,-.3)(#1.15,-.2)(#1.15,0)% |
| 2933 |
\fillpath |
| 2934 |
\cbezier(0,1.333336)(#11,1.333336)(#11.2,0.5)(#11,0)% |
| 2935 |
\cbezier(#11,0)(#11.05,-.9)(#1.5,-.3)(#1.5,-.65)% |
| 2936 |
} |
| 2937 |
% \end{macrocode} |
| 2938 |
% \end{macro} |
| 2939 |
% |
| 2940 |
% \begin{macro}{\@HwM@binop@skull@teeth} |
| 2941 |
% Subroutine for drawing the teeth in the variant of the skull that is used |
| 2942 |
% for a binary operator. Argument~\#1 is either \texttt{-} or~\texttt{+}, |
| 2943 |
% depending on which half of the skull you want to draw; then, argument~\#2 |
| 2944 |
% must always be the opposite sign (that is, either \texttt{+} or~\texttt{-}, |
| 2945 |
% respectively). |
| 2946 |
% \begin{macrocode} |
| 2947 |
\newcommand*\@HwM@binop@skull@teeth[2]{% |
| 2948 |
\moveto(#1.33,-.7)% |
| 2949 |
\curveto(#1.3,-.6)(#1.22,-.6)(#1.19,-.75)% |
| 2950 |
\curveto(#1.15,-.9)(#1.38,-.9)(#1.33,-.7)% |
| 2951 |
\strokepath |
| 2952 |
\moveto(#1.5,-.7)% |
| 2953 |
\curveto(#1.45,-.6)(#1.4,-.6)(#1.35,-.7)% |
| 2954 |
\curveto(#1.4,-1.2)(#1.5,-1.2)(#1.5,-.7)% |
| 2955 |
\strokepath |
| 2956 |
\moveto(#1.17,-.75)% |
| 2957 |
\curveto(#1.13,-.65)(#1.05,-.62)(#1.02,-.75)% |
| 2958 |
\curveto(#2.03,-.95)(#1.22,-.95)(#1.17,-.75)% |
| 2959 |
\strokepath |
| 2960 |
} |
| 2961 |
% \end{macrocode} |
| 2962 |
% \end{macro} |
| 2963 |
% |
| 2964 |
% \begin{macro}{\@HwM@binop@skull} |
| 2965 |
% Private version of the macro that draws the skull for a binary operator. |
| 2966 |
% Arguments: |
| 2967 |
% \begin{paramlist} |
| 2968 |
% \param |
| 2969 |
% style selector (\eg "\textstyle");\\ |
| 2970 |
% \param |
| 2971 |
% font selector (\eg "\textfont");\\ |
| 2972 |
% \param |
| 2973 |
% main drawing thickn., in units of the default-rule-thickness |
| 2974 |
% "\fontdimen";\\ |
| 2975 |
% \param |
| 2976 |
% line thickness for drawing the teeth, in the same units. |
| 2977 |
% \end{paramlist} |
| 2978 |
% \begin{macrocode} |
| 2979 |
\newcommand*\@HwM@binop@skull[4]{% |
| 2980 |
\begin{@HwM@oplus@picture}#1#2{2.48}{-1.24}% |
| 2981 |
\roundcap |
| 2982 |
\linethickness{#4\@HwM@thickness@units@for #2}% |
| 2983 |
\@HwM@binop@skull@teeth-+% |
| 2984 |
\@HwM@binop@skull@teeth+-% |
| 2985 |
\linethickness{#3\@HwM@thickness@units@for #2}% |
| 2986 |
\@HwM@small@skull@nose{5}{1}{2}{5}{15}{4}{1}{1}% |
| 2987 |
\@HwM@binop@skull@profile-% |
| 2988 |
\@HwM@binop@skull@profile+% |
| 2989 |
\end{@HwM@oplus@picture}% |
| 2990 |
} |
| 2991 |
% \end{macrocode} |
| 2992 |
% \end{macro} |
| 2993 |
% |
| 2994 |
% \begin{macro}{\@HwM@Binop@Skull} |
| 2995 |
% Public version of the above, with the following arguments: |
| 2996 |
% \begin{paramlist} |
| 2997 |
% \param |
| 2998 |
% style selector (\eg "\scriptstyle");\\ |
| 2999 |
% \param |
| 3000 |
% font selector (\eg "\scriptfont"). |
| 3001 |
% \end{paramlist} |
| 3002 |
% \begin{macrocode} |
| 3003 |
\newcommand*\@HwM@Binop@Skull[2]{% |
| 3004 |
\@HwM@choose@thicknesses{\@HwM@binop@skull #1#2}% |
| 3005 |
{{.6}{.2}}% |
| 3006 |
{{.9}{.266667}}% |
| 3007 |
} |
| 3008 |
% \end{macrocode} |
| 3009 |
% \end{macro} |
| 3010 |
% |
| 3011 |
% \subsubsection{Drawing the clouds} |
| 3012 |
% |
| 3013 |
% Clouds are relatively simple to deal with: they are treated similarly to |
| 3014 |
% fractions, in that they are typeset in a larger version, used only for |
| 3015 |
% "\displaystyle" math, and in a smaller one, used in all the other cases. |
| 3016 |
% Figure~\ref{fig:cloud} sketches both variants. |
| 3017 |
% |
| 3018 |
% \begin{figure}[tp] |
| 3019 |
% \centering |
| 3020 |
% The small variant:\\*[\bigskipamount] |
| 3021 |
% \begin{picture}(6,4)(-3,-2) |
| 3022 |
% \linethickness{.1pt} |
| 3023 |
% \color{guidelines} |
| 3024 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3025 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3026 |
% \color{black} |
| 3027 |
% \linethickness{1.5pt} |
| 3028 |
% \roundcap |
| 3029 |
% \cbezier(-2.5,0)(-3.5,.25)(-3,2)(-1,1.5) |
| 3030 |
% \cbezier(-1.2,1.25)(-.75,2)(1,2.5)(1,1.5) |
| 3031 |
% \cbezier(.9,1.4)(1.25,2)(2.25,1.25)(1.4,.9) |
| 3032 |
% \cbezier(1.6,1)(3.5,1)(3,0)(2.5,0) |
| 3033 |
% \cbezier(2.5,0)(3,0)(3.5,-1)(2.1,-1.2) |
| 3034 |
% \cbezier(2.5,-1.1)(2.5,-2)(1,-2.5)(0,-1.5) |
| 3035 |
% \cbezier(.1,-1.2)(-.1,-2.25)(-2.25,-2)(-2,-1) |
| 3036 |
% \cbezier(-1.7,-1)(-2.75,-1)(-3.25,-.25)(-2.5,0) |
| 3037 |
% \end{picture} |
| 3038 |
% |
| 3039 |
% \bigskip\bigskip\bigskip |
| 3040 |
% |
| 3041 |
% The large variant:\\*[\bigskipamount] |
| 3042 |
% \begin{picture}(12,8)(-6,-4) |
| 3043 |
% \linethickness{.1pt} |
| 3044 |
% \color{guidelines} |
| 3045 |
% \multiput(-6,-4)(1,0){13}{\line(0,1){8}} |
| 3046 |
% \multiput(-6,-4)(0,1) {9}{\line(1,0){12}} |
| 3047 |
% \color{black} |
| 3048 |
% \roundcap |
| 3049 |
% \linethickness{2pt} |
| 3050 |
% \cbezier(-5,0)(-7,.5)(-5.5,3.25)(-4,2.5) |
| 3051 |
% \cbezier(-3.8,2.1)(-4.75,3.5)(-2,4)(-2,3) |
| 3052 |
% \cbezier(-2.4,2.5)(-1.5,4)(2,5)(2,3) |
| 3053 |
% \cbezier(1.8,2.8)(2.5,4)(4.5,2.5)(2.8,1.8) |
| 3054 |
% \cbezier(3.2,2)(7,2)(6,0)(5,0) |
| 3055 |
% \cbezier(5,0)(6,0)(6.25,-1)(5.3,-1.4) |
| 3056 |
% \cbezier(4.6,-1.1)(6.8,-1.5)(4.3,-4)(3.6,-2.1) |
| 3057 |
% \cbezier(3.9,-2.6)(4,-3)(2,-5)(0,-3) |
| 3058 |
% \cbezier(.2,-2.4)(-.2,-4.5)(-4.5,-4)(-4,-2) |
| 3059 |
% \cbezier(-3.4,-2)(-5.5,-2)(-6.5,-.5)(-5,0) |
| 3060 |
% \end{picture} |
| 3061 |
% |
| 3062 |
% \caption{Sketches of the cloud} |
| 3063 |
% \label{fig:cloud} |
| 3064 |
% \end{figure} |
| 3065 |
% |
| 3066 |
% By good fortune, clouds do not require any subroutine\ldots |
| 3067 |
% |
| 3068 |
% \begin{macro}{\@HwM@large@cloud} |
| 3069 |
% This is the private version of the macro that draws the larger cloud. |
| 3070 |
% Argument: |
| 3071 |
% \begin{paramlist} |
| 3072 |
% \param |
| 3073 |
% drawing thickness, in units of the default-rule-thickness "\fontdimen". |
| 3074 |
% \end{paramlist} |
| 3075 |
% \begin{macrocode} |
| 3076 |
\newcommand*\@HwM@large@cloud[1]{% |
| 3077 |
\begin{@HwM@large@picture}{12}{-6}% |
| 3078 |
\roundcap |
| 3079 |
\linethickness{#1\@HwM@thickness@units@for \textfont}% |
| 3080 |
\cbezier(\-5,0)(\-7,.5)(\-5.5,3.25)(\-4,2.5)% |
| 3081 |
\cbezier(\-3.8,2.1)(\-4.75,3.5)(\-2,4)(\-2,3)% |
| 3082 |
\cbezier(\-2.4,2.5)(\-1.5,4)(\+2,5)(\+2,3)% |
| 3083 |
\cbezier(\+1.8,2.8)(\+2.5,4)(\+4.5,2.5)(\+2.8,1.8)% |
| 3084 |
\cbezier(\+3.2,2)(\+7,2)(\+6,0)(\+5,0)% |
| 3085 |
\cbezier(\+5,0)(\+6,0)(\+6.25,-1)(\+5.3,-1.4)% |
| 3086 |
\cbezier(\+4.6,-1.1)(\+6.8,-1.5)(\+4.3,-4)(\+3.6,-2.1)% |
| 3087 |
\cbezier(\+3.9,-2.6)(\+4,-3)(\+2,-5)(0,-3)% |
| 3088 |
\cbezier(\+.2,-2.4)(\-.2,-4.5)(\-4.5,-4)(\-4,-2)% |
| 3089 |
\cbezier(\-3.4,-2)(\-5.5,-2)(\-6.5,-.5)(\-5,0)% |
| 3090 |
\end{@HwM@large@picture}% |
| 3091 |
} |
| 3092 |
% \end{macrocode} |
| 3093 |
% \end{macro} |
| 3094 |
% |
| 3095 |
% \begin{macro}{\@HwM@Large@Cloud} |
| 3096 |
% Public version of the above; requires no parameters. |
| 3097 |
% \begin{macrocode} |
| 3098 |
\newcommand*\@HwM@Large@Cloud{% |
| 3099 |
\@HwM@choose@thicknesses \@HwM@large@cloud |
| 3100 |
{{.8}}% |
| 3101 |
{{1.6}}% |
| 3102 |
} |
| 3103 |
% \end{macrocode} |
| 3104 |
% \end{macro} |
| 3105 |
% |
| 3106 |
% \begin{macro}{\@HwM@small@cloud} |
| 3107 |
% Private version of the macro that draws the smaller cloud (which has a |
| 3108 |
% little fewer details than the larger one). Arguments: |
| 3109 |
% \begin{paramlist} |
| 3110 |
% \param |
| 3111 |
% font selector (\eg "\scriptfont");\\ |
| 3112 |
% \param |
| 3113 |
% drawing thickness, in units of the default-rule-thickness "\fontdimen". |
| 3114 |
% \end{paramlist} |
| 3115 |
% \begin{macrocode} |
| 3116 |
\newcommand*\@HwM@small@cloud[2]{% |
| 3117 |
\begin{@HwM@small@picture}#1{6}{-3}% |
| 3118 |
\roundcap |
| 3119 |
\linethickness{#2\@HwM@thickness@units@for #1}% |
| 3120 |
\cbezier(\-2.5,0)(\-3.5,.25)(\-3,2)(\-1,1.5)% |
| 3121 |
\cbezier(\-1.2,1.25)(\-.75,2)(\+1,2.5)(\+1,1.5)% |
| 3122 |
\cbezier(\+.9,1.4)(\+1.25,2)(\+2.25,1.25)(\+1.4,.9)% |
| 3123 |
\cbezier(\+1.6,1)(\+3.5,1)(\+3,0)(\+2.5,0)% |
| 3124 |
\cbezier(\+2.5,0)(\+3,0)(\+3.5,-1)(\+2.1,-1.2)% |
| 3125 |
\cbezier(\+2.5,-1.1)(\+2.5,-2)(\+1,-2.5)(0,-1.5)% |
| 3126 |
\cbezier(\+.1,-1.2)(\-.1,-2.25)(\-2.25,-2)(\-2,-1)% |
| 3127 |
\cbezier(\-1.7,-1)(\-2.75,-1)(\-3.25,-.25)(\-2.5,0)% |
| 3128 |
\end{@HwM@small@picture}% |
| 3129 |
} |
| 3130 |
% \end{macrocode} |
| 3131 |
% \end{macro} |
| 3132 |
% |
| 3133 |
% \begin{macro}{\@HwM@Small@Cloud} |
| 3134 |
% Public version of the above. Arguments: |
| 3135 |
% \begin{paramlist} |
| 3136 |
% \param |
| 3137 |
% style selector (\eg "\scriptstyle");\\ |
| 3138 |
% \param |
| 3139 |
% font selector (\eg "\scriptfont"). |
| 3140 |
% \end{paramlist} |
| 3141 |
% The first parameter is imposed by the interface toward other parts of the |
| 3142 |
% code, because other macros that share the same interface might need it, but |
| 3143 |
% isn't actually used in this case. |
| 3144 |
% \begin{macrocode} |
| 3145 |
\newcommand*\@HwM@Small@Cloud[2]{% |
| 3146 |
\@HwM@choose@thicknesses{\@HwM@small@cloud #2}% |
| 3147 |
{{.5}}% |
| 3148 |
{{1.2}}% |
| 3149 |
} |
| 3150 |
% \end{macrocode} |
| 3151 |
% \end{macro} |
| 3152 |
% |
| 3153 |
% That's all: as we promised, this has been a quick one! |
| 3154 |
% |
| 3155 |
% \subsubsection{Drawing the ghosts} |
| 3156 |
% |
| 3157 |
% For ghosts, I~imagined a r\^{o}le as ordinary symbols, and nothing else; |
| 3158 |
% therefore, they exist in only one size, but, in return, they can be seen |
| 3159 |
% from three different views (left, front, and right), as |
| 3160 |
% figure~\ref{fig:ghosts} depicts. From the implementation viewpoint, only |
| 3161 |
% two variants need to be defined: a ``symmetric ghost'', that corresponds to |
| 3162 |
% the front view, and an ``asymmetric ghost'', which yields the left and the |
| 3163 |
% right views through the same mechanism that toggles, for example, between |
| 3164 |
% the straight and the reverse witch. |
| 3165 |
% |
| 3166 |
% \begin{figure}[tp] |
| 3167 |
% \newcommand*{\SymmetricGhostContour}[8]{^^A |
| 3168 |
% \cbezier(-#1,#2)(-#3,#4)(-#3,#5)(-#3,#6)^^A |
| 3169 |
% \Line(-#3,#6)(-#3,#7)^^A |
| 3170 |
% \cbezier(#1,#2)(#3,#4)(#3,#5)(#3,#6)^^A |
| 3171 |
% \Line(#3,#6)(#3,#7)^^A |
| 3172 |
% \cbezier(-#3,#7)(-#3,#8)(#3,#8)(#3,#7)^^A |
| 3173 |
% } |
| 3174 |
% \newcommand*{\SymmetricGhostBorder}[8]{^^A |
| 3175 |
% \cbezier(-#1,#2)(-#3,#4)(-#5,#6)(-#7,#2)^^A |
| 3176 |
% \qbezier(-#7,#2)(0,#8)(#7,#2)^^A |
| 3177 |
% \cbezier(#1,#2)(#3,#4)(#5,#6)(#7,#2)^^A |
| 3178 |
% } |
| 3179 |
% \newcommand*{\SymmetricGhostEyes}[3]{^^A |
| 3180 |
% \put(-#1,#2){\circle*{#3}}^^A |
| 3181 |
% \put(#1,#2){\circle*{#3}}^^A |
| 3182 |
% } |
| 3183 |
% \newcommand*{\AsymmetricGhost}[2]{^^A |
| 3184 |
% \roundcap |
| 3185 |
% \linethickness{1.5pt}^^A |
| 3186 |
% \cbezier(#11.75,-1.5)(#11,-1)(#1.7,-.5)(#1.5,0)^^A |
| 3187 |
% \cbezier(#1.5,0)(#1.3,.5)(0,1.6)(#21,1.6)^^A |
| 3188 |
% \cbezier(#21,1.6)(#21.8,1.6)(#21.8,.9)(#21.8,.6)^^A |
| 3189 |
% \cbezier(#21.8,.6)(#21.8,-.3)(#2.9,-.7)(#21.25,-1.5)^^A |
| 3190 |
% \linethickness{1pt}^^A |
| 3191 |
% \cbezier(#11.75,-1.5)(#11.4,-1.2)(#11.1,-1.8)(#1.75,-1.5)^^A |
| 3192 |
% \cbezier(#1.75,-1.5)(#1.4,-1.2)(#1.1,-1.8)(#2.25,-1.5)^^A |
| 3193 |
% \cbezier(#2.25,-1.5)(#2.6,-1.2)(#2.9,-1.8)(#21.25,-1.5)^^A |
| 3194 |
% \put(#21.2,.7){\circle*{.4}}^^A |
| 3195 |
% } |
| 3196 |
% |
| 3197 |
% \centering |
| 3198 |
% \addtolength\leftskip {-2cm} |
| 3199 |
% \addtolength\rightskip{-2cm} |
| 3200 |
% |
| 3201 |
% Only the small variant is defined:\\*[\bigskipamount] |
| 3202 |
% \begin{picture}(4,4)(-2,-2) |
| 3203 |
% \linethickness{.1pt} |
| 3204 |
% \color{guidelines} |
| 3205 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 3206 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 3207 |
% \color{black} |
| 3208 |
% \AsymmetricGhost+- |
| 3209 |
% \end{picture}\qquad |
| 3210 |
% \begin{picture}(4,4)(-2,-2) |
| 3211 |
% \linethickness{.1pt} |
| 3212 |
% \color{guidelines} |
| 3213 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 3214 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 3215 |
% \color{black} |
| 3216 |
% \roundcap |
| 3217 |
% \linethickness{1.5pt} |
| 3218 |
% \SymmetricGhostContour{1.5}{-1.5}{1}{-1}{-.5}{0}{.5}{2} |
| 3219 |
% \linethickness{1pt} |
| 3220 |
% \SymmetricGhostBorder{1.5}{-1.5}{1.1}{-1.1}{.7}{-1.9}{.3}{-1.2} |
| 3221 |
% \SymmetricGhostEyes{.4}{.7}{.4} |
| 3222 |
% \end{picture}\qquad |
| 3223 |
% \begin{picture}(4,4)(-2,-2) |
| 3224 |
% \linethickness{.1pt} |
| 3225 |
% \color{guidelines} |
| 3226 |
% \multiput(-2,-2)(1,0){5}{\line(0,1){4}} |
| 3227 |
% \multiput(-2,-2)(0,1){5}{\line(1,0){4}} |
| 3228 |
% \color{black} |
| 3229 |
% \AsymmetricGhost-+ |
| 3230 |
% \end{picture}\par |
| 3231 |
% |
| 3232 |
% \caption{Sketches of the ghosts} |
| 3233 |
% \label{fig:ghosts} |
| 3234 |
% \end{figure} |
| 3235 |
% |
| 3236 |
% For ghosts, again, we do have some subroutines; and, again, some of these |
| 3237 |
% could actually be inserted inline. |
| 3238 |
% |
| 3239 |
% \begin{macro}{\@HwM@symm@ghost@contour} |
| 3240 |
% Subroutine that draws the thicker part of a symmetric ghost's contour. |
| 3241 |
% Parameters are suitable point coordinates. |
| 3242 |
% \begin{macrocode} |
| 3243 |
\newcommand*\@HwM@symm@ghost@contour[8]{% |
| 3244 |
\cbezier(-#1,#2)(-#3,#4)(-#3,#5)(-#3,#6)% |
| 3245 |
\Line(-#3,#6)(-#3,#7)% |
| 3246 |
\cbezier(#1,#2)(#3,#4)(#3,#5)(#3,#6)% |
| 3247 |
\Line(#3,#6)(#3,#7)% |
| 3248 |
\cbezier(-#3,#7)(-#3,#8)(#3,#8)(#3,#7)% |
| 3249 |
} |
| 3250 |
% \end{macrocode} |
| 3251 |
% \end{macro} |
| 3252 |
% |
| 3253 |
% \begin{macro}{\@HwM@symm@ghost@border} |
| 3254 |
% Subroutine that draws the lower border of a symmetric ghost's sheet (the |
| 3255 |
% thinner part of its contour). Parameters are suitable point coordinates. |
| 3256 |
% \begin{macrocode} |
| 3257 |
\newcommand*\@HwM@symm@ghost@border[8]{% |
| 3258 |
\cbezier(-#1,#2)(-#3,#4)(-#5,#6)(-#7,#2)% |
| 3259 |
\qbezier(-#7,#2)(0,#8)(#7,#2)% |
| 3260 |
\cbezier(#1,#2)(#3,#4)(#5,#6)(#7,#2)% |
| 3261 |
} |
| 3262 |
% \end{macrocode} |
| 3263 |
% \end{macro} |
| 3264 |
% |
| 3265 |
% \begin{macro}{\@HwM@symm@ghost@eyes} |
| 3266 |
% Subroutine that draws the eyes of a symmetric ghost. The parameters are |
| 3267 |
% self-explanatory. |
| 3268 |
% \begin{macrocode} |
| 3269 |
\newcommand*\@HwM@symm@ghost@eyes[3]{% |
| 3270 |
\put(-#1,#2){\circle*{#3}}% |
| 3271 |
\put(#1,#2){\circle*{#3}}% |
| 3272 |
} |
| 3273 |
% \end{macrocode} |
| 3274 |
% \end{macro} |
| 3275 |
% |
| 3276 |
% \begin{macro}{\@HwM@symmetric@ghost} |
| 3277 |
% Private version of the macro that draws the symmetric ghost. Arguments: |
| 3278 |
% \begin{paramlist} |
| 3279 |
% \param |
| 3280 |
% font selector (\eg "\textfont");\\ |
| 3281 |
% \param |
| 3282 |
% contour thickness, in units of the default-rule-thickness |
| 3283 |
% "\fontdimen";\\ |
| 3284 |
% \param |
| 3285 |
% lower border thickness, in the same units. |
| 3286 |
% \end{paramlist} |
| 3287 |
% \begin{macrocode} |
| 3288 |
\newcommand*\@HwM@symmetric@ghost[3]{% |
| 3289 |
\begin{@HwM@math@picture}{2.6}{-1}% |
| 3290 |
{\@HwM@d@pict@strut{.6}}#1{3.2}{-1.6}% |
| 3291 |
\roundcap |
| 3292 |
\linethickness{#2\@HwM@thickness@units@for #1}% |
| 3293 |
\@HwM@symm@ghost@contour{1.5}{-1.5}{1}{-1}{-.5}{0}{.5}{2}% |
| 3294 |
\linethickness{#3\@HwM@thickness@units@for #1}% |
| 3295 |
\@HwM@symm@ghost@border{1.5}{-1.5}{1.1}{-1.1}{.7}{-1.9}{.3}{-1.2}% |
| 3296 |
\@HwM@symm@ghost@eyes{.4}{.7}{.4}% |
| 3297 |
\end{@HwM@math@picture}% |
| 3298 |
} |
| 3299 |
% \end{macrocode} |
| 3300 |
% \end{macro} |
| 3301 |
% |
| 3302 |
% \begin{macro}{\@HwM@Symmetric@Ghost} |
| 3303 |
% Public version of the above. Arguments: |
| 3304 |
% \begin{paramlist} |
| 3305 |
% \param |
| 3306 |
% style selector (\eg "\textstyle");\\ |
| 3307 |
% \param |
| 3308 |
% font selector (\eg "\textfont"). |
| 3309 |
% \end{paramlist} |
| 3310 |
% The first parameter is imposed by the interface toward other parts of the |
| 3311 |
% code, because other macros that share the same interface might need it, but |
| 3312 |
% isn't actually used in this case. |
| 3313 |
% \begin{macrocode} |
| 3314 |
\newcommand*\@HwM@Symmetric@Ghost[2]{% |
| 3315 |
\@HwM@choose@thicknesses{\@HwM@symmetric@ghost #2}% |
| 3316 |
{{.9}{.6}}% |
| 3317 |
{{1.8}{1.2}}% |
| 3318 |
} |
| 3319 |
% \end{macrocode} |
| 3320 |
% \end{macro} |
| 3321 |
% |
| 3322 |
% \begin{macro}{\@HwM@asymmetric@ghost} |
| 3323 |
% Private version of the macro that draws the asymmetric ghost. Arguments: |
| 3324 |
% \begin{paramlist} |
| 3325 |
% \param |
| 3326 |
% font selector (\eg "\textfont");\\ |
| 3327 |
% \param |
| 3328 |
% contour thickness, in units of the default-rule-thickness |
| 3329 |
% "\fontdimen";\\ |
| 3330 |
% \param |
| 3331 |
% lower border thickness, in the same units. |
| 3332 |
% \end{paramlist} |
| 3333 |
% \begin{macrocode} |
| 3334 |
\newcommand*\@HwM@asymmetric@ghost[3]{% |
| 3335 |
\begin{@HwM@math@picture}{2.6}{-1}% |
| 3336 |
{\@HwM@d@pict@strut{.6}}#1{3.8}% |
| 3337 |
{-\@HwM@right@or@left{1.6}{2.2}}% |
| 3338 |
\roundcap |
| 3339 |
\linethickness{#2\@HwM@thickness@units@for #1}% |
| 3340 |
\cbezier(\-1.75,-1.5)(\-1,-1)(\-.7,-.5)(\-.5,0)% |
| 3341 |
\cbezier(\-.5,0)(\-.3,.5)(0,1.6)(\+1,1.6)% |
| 3342 |
\cbezier(\+1,1.6)(\+1.8,1.6)(\+1.8,.9)(\+1.8,.6)% |
| 3343 |
\cbezier(\+1.8,.6)(\+1.8,-.3)(\+.9,-.7)(\+1.25,-1.5)% |
| 3344 |
\linethickness{#3\@HwM@thickness@units@for #1}% |
| 3345 |
\cbezier(\-1.75,-1.5)(\-1.4,-1.2)(\-1.1,-1.8)(\-.75,-1.5)% |
| 3346 |
\cbezier(\-.75,-1.5)(\-.4,-1.2)(\-.1,-1.8)(\+.25,-1.5)% |
| 3347 |
\cbezier(\+.25,-1.5)(\+.6,-1.2)(\+.9,-1.8)(\+1.25,-1.5)% |
| 3348 |
\put(\+1.2,.7){\circle*{.4}}% |
| 3349 |
\end{@HwM@math@picture}% |
| 3350 |
} |
| 3351 |
% \end{macrocode} |
| 3352 |
% \end{macro} |
| 3353 |
% |
| 3354 |
% \begin{macro}{\@HwM@Asymmetric@Ghost} |
| 3355 |
% Public version of the above. Arguments: |
| 3356 |
% \begin{paramlist} |
| 3357 |
% \param |
| 3358 |
% style selector (\eg "\textstyle");\\ |
| 3359 |
% \param |
| 3360 |
% font selector (\eg "\textfont"). |
| 3361 |
% \end{paramlist} |
| 3362 |
% The first parameter is imposed by the interface toward other parts of the |
| 3363 |
% code, because other macros that share the same interface might need it, but |
| 3364 |
% isn't actually used in this case. |
| 3365 |
% \begin{macrocode} |
| 3366 |
\newcommand*\@HwM@Asymmetric@Ghost[2]{% |
| 3367 |
\@HwM@choose@thicknesses{\@HwM@asymmetric@ghost #2}% |
| 3368 |
{{.9}{.6}}% |
| 3369 |
{{1.8}{1.2}}% |
| 3370 |
} |
| 3371 |
% \end{macrocode} |
| 3372 |
% \end{macro} |
| 3373 |
% |
| 3374 |
% \subsubsection{Drawing the bats} |
| 3375 |
% |
| 3376 |
% We've finally got to the last of our characters (at least for this |
| 3377 |
% version): the bat. Bats are rendered as filled, as opposed to stroked, |
| 3378 |
% black shapes, and therefore it is impossible to differentiate the normal |
| 3379 |
% and the bold version by changing the thickness of the strokes (because |
| 3380 |
% there aren't any): the shape itself needs to be made slightly larger. |
| 3381 |
% Besides this, as in the case of ghosts we have designed a ``symmetric'' bat |
| 3382 |
% and an ``asymmetric'' one, where the latter can be drawn in two opposite |
| 3383 |
% orientations: this makes a total of six possible variants, which are |
| 3384 |
% portrayed in figures \ref{fig:s-bats} and~\ref{fig:a-bats}. The reference |
| 3385 |
% lines help you spot the differences between the bold and the normal |
| 3386 |
% versions. |
| 3387 |
% |
| 3388 |
% \begin{figure}[tp] |
| 3389 |
% \newcommand*{\BatWing}[1]{^^A |
| 3390 |
% \moveto(#1.7,0)^^A |
| 3391 |
% \curveto(#11.5,.1)(#12.2,.5)(#12,1)^^A |
| 3392 |
% \curveto(#12.5,.5)(#12.9,0)(#12.9,-.5)^^A |
| 3393 |
% \curveto(#12.8,0)(#12,-.5)(#12.25,-1)^^A |
| 3394 |
% \curveto(#12,-.5)(#11.7,-.3)(#11.5,-.7)^^A |
| 3395 |
% \curveto(#11.4,-.5)(#11.2,-.3)(#11,-.5)^^A |
| 3396 |
% \curveto(#1.9,-.4)(#1.7,-.4)(#1.5,-.5)^^A |
| 3397 |
% \closepath |
| 3398 |
% \fillpath |
| 3399 |
% } |
| 3400 |
% \newcommand*{\BoldBatWing}[1]{^^A |
| 3401 |
% \moveto(#1.7,.1)^^A |
| 3402 |
% \curveto(#11.5,.2)(#12.25,.6)(#12,1.1)^^A |
| 3403 |
% \curveto(#12.6,.5)(#13,0)(#13,-.6)^^A |
| 3404 |
% \curveto(#12.8,0)(#12,-.6)(#12.25,-1.1)^^A |
| 3405 |
% \curveto(#12,-.6)(#11.7,-.4)(#11.5,-.8)^^A |
| 3406 |
% \curveto(#11.4,-.6)(#11.2,-.4)(#11,-.6)^^A |
| 3407 |
% \curveto(#1.9,-.5)(#1.7,-.5)(#1.5,-.5)^^A |
| 3408 |
% \closepath |
| 3409 |
% \fillpath |
| 3410 |
% } |
| 3411 |
% |
| 3412 |
% \newcommand*{\Bat}{^^A |
| 3413 |
% \moveto(-.5,-.5)^^A |
| 3414 |
% \curveto(-.4,-.6)(-.2,-.7)(-.2,-1)^^A |
| 3415 |
% \curveto(-.1,-.7)(.1,-.7)(.2,-1)^^A |
| 3416 |
% \curveto(.2,-.7)(.4,-.6)(.5,-.5)^^A |
| 3417 |
% \closepath |
| 3418 |
% \fillpath |
| 3419 |
% \BatWing-^^A |
| 3420 |
% \BatWing+^^A |
| 3421 |
% \moveto(.5,0)^^A |
| 3422 |
% \circlearc{.35}{0}{.15}{0}{180}^^A |
| 3423 |
% \lineto(-.2,0)^^A |
| 3424 |
% \circlearc{-.35}{0}{.15}{0}{180}^^A |
| 3425 |
% \lineto(-.75,0)^^A |
| 3426 |
% \curveto(-.75,.45)(-.7,.5)(-.5,1)^^A |
| 3427 |
% \circlearc{0}{1}{.5}{180}{360}^^A |
| 3428 |
% \curveto(.7,.5)(.75,.45)(.75,0)^^A |
| 3429 |
% \closepath |
| 3430 |
% \fillpath |
| 3431 |
% \moveto(-.75,0)^^A |
| 3432 |
% \circlearc{0}{0}{.75}{180}{360}^^A |
| 3433 |
% \lineto(.5,0)^^A |
| 3434 |
% \circlearc{.35}{0}{.15}{360}{180}^^A |
| 3435 |
% \lineto(-.2,0)^^A |
| 3436 |
% \circlearc{-.35}{0}{.15}{360}{180}^^A |
| 3437 |
% \closepath |
| 3438 |
% \fillpath |
| 3439 |
% } |
| 3440 |
% \newcommand*{\BoldBat}{^^A |
| 3441 |
% \moveto(-.6,-.5)^^A |
| 3442 |
% \curveto(-.5,-.6)(-.3,-.7)(-.3,-1.1)^^A |
| 3443 |
% \curveto(-.1,-.7)(.1,-.7)(.3,-1.1)^^A |
| 3444 |
% \curveto(.3,-.7)(.5,-.6)(.6,-.5)^^A |
| 3445 |
% \closepath |
| 3446 |
% \fillpath |
| 3447 |
% \BoldBatWing-^^A |
| 3448 |
% \BoldBatWing+^^A |
| 3449 |
% \moveto(.5,0)^^A |
| 3450 |
% \circlearc{.35}{0}{.15}{0}{180}^^A |
| 3451 |
% \lineto(-.2,0)^^A |
| 3452 |
% \circlearc{-.35}{0}{.15}{0}{180}^^A |
| 3453 |
% \lineto(-.8,0)^^A |
| 3454 |
% \curveto(-.8,.5)(-.7,.5)(-.55,1.1)^^A |
| 3455 |
% \circlearc{0}{1.1}{.55}{180}{360}^^A |
| 3456 |
% \curveto(.7,.5)(.8,.5)(.8,0)^^A |
| 3457 |
% \closepath |
| 3458 |
% \fillpath |
| 3459 |
% \moveto(-.8,0)^^A |
| 3460 |
% \circlearc{0}{0}{.8}{180}{360}^^A |
| 3461 |
% \lineto(.5,0)^^A |
| 3462 |
% \circlearc{.35}{0}{.15}{360}{180}^^A |
| 3463 |
% \lineto(-.2,0)^^A |
| 3464 |
% \circlearc{-.35}{0}{.15}{360}{180}^^A |
| 3465 |
% \closepath |
| 3466 |
% \fillpath |
| 3467 |
% } |
| 3468 |
% |
| 3469 |
% \centering |
| 3470 |
% |
| 3471 |
% The symmetric bat, |
| 3472 |
% in the \texttt{normal}\ldots\\*[\bigskipamount] |
| 3473 |
% \begin{picture}(6,4)(-3,-2) |
| 3474 |
% \linethickness{.1pt} |
| 3475 |
% \color{guidelines} |
| 3476 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3477 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3478 |
% \color{black} |
| 3479 |
% \Bat |
| 3480 |
% \end{picture} |
| 3481 |
% |
| 3482 |
% \bigskip\bigskip\bigskip |
| 3483 |
% |
| 3484 |
% \ldots and in the \texttt{bold} math version.\\*[\bigskipamount] |
| 3485 |
% \begin{picture}(6,4)(-3,-2) |
| 3486 |
% \linethickness{.1pt} |
| 3487 |
% \color{guidelines} |
| 3488 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3489 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3490 |
% \color{black} |
| 3491 |
% \BoldBat |
| 3492 |
% \end{picture} |
| 3493 |
% |
| 3494 |
% \caption{Sketches of the symmetric bats} |
| 3495 |
% \label{fig:s-bats} |
| 3496 |
% \end{figure} |
| 3497 |
% |
| 3498 |
% \begin{figure}[tp] |
| 3499 |
% \newcommand*{\AsymmBat}{^^A |
| 3500 |
% \moveto(\-.5,.2)^^A |
| 3501 |
% \curveto(\-1.5,.3)(\-2.2,.5)(\-1.8,1)^^A |
| 3502 |
% \curveto(\-2.5,.5)(\-2.9,0)(\-2.9,-.5)^^A |
| 3503 |
% \curveto(\-2.7,0)(\-2,-.25)(\-2,-.8)^^A |
| 3504 |
% \curveto(\-2,-.5)(\-1.6,-.25)(\-1.4,-.5)^^A |
| 3505 |
% \curveto(\-1.4,-.2)(\-1.2,-.1)(\-1,-.3)^^A |
| 3506 |
% \curveto(\-1,-.1)(\-.7,-.1)(\-.6,-.1)^^A |
| 3507 |
% \closepath |
| 3508 |
% \fillpath |
| 3509 |
% \moveto(\+.9,0)^^A |
| 3510 |
% \curveto(\+2,-.1)(\+2.2,.5)(\+2,.7)^^A |
| 3511 |
% \curveto(\+2.5,.6)(\+3.2,0)(\+2.9,-.7)^^A |
| 3512 |
% \curveto(\+2.6,-.2)(\+2,-.5)(\+2,-1)^^A |
| 3513 |
% \curveto(\+2,-.5)(\+1.7,-.4)(\+1.5,-.7)^^A |
| 3514 |
% \curveto(\+1.6,-.4)(\+1.3,-.2)(\+1.1,-.5)^^A |
| 3515 |
% \curveto(\+1.1,-.3)(\+1,-.3)(\+.8,-.3)^^A |
| 3516 |
% \closepath |
| 3517 |
% \fillpath |
| 3518 |
% \moveto(\+.8,-.1)^^A |
| 3519 |
% \curveto(\+.85,.08)(\+.65,.13)(\+.6,-.05)^^A |
| 3520 |
% \lineto(\+.3,0)^^A |
| 3521 |
% \curveto(\+.35,.2)(\+.05,.3)(0,.1)^^A |
| 3522 |
% \lineto(\-.8,0)^^A |
| 3523 |
% \curveto(\-.7,.3)(\-.4,.7)(\+.25,1)^^A |
| 3524 |
% \curveto(\+.2,.4)(\+.8,.3)(\+1,.9)^^A |
| 3525 |
% \curveto(\+1.1,.7)(\+1.1,.2)(\+1,0)^^A |
| 3526 |
% \closepath |
| 3527 |
% \fillpath |
| 3528 |
% \moveto(\+.8,-.1)^^A |
| 3529 |
% \curveto(\+.75,-.28)(\+.55,-.23)(\+.6,-.05)^^A |
| 3530 |
% \lineto(\+.3,0)^^A |
| 3531 |
% \curveto(\+.25,-.18)(\-.05,-.08)(0,.1)^^A |
| 3532 |
% \lineto(\-.8,0)^^A |
| 3533 |
% \curveto(\-.9,-.3)(\-.8,-.6)(\-1,-.9)^^A |
| 3534 |
% \curveto(\-.8,-.6)(\-.4,-.7)(\-.6,-1)^^A |
| 3535 |
% \curveto(\-.2,-.8)(\+.2,-.82)(\+.3,-.8)^^A |
| 3536 |
% \curveto(\+.85,-.69)(\+.99,-.02)(\+1,0)^^A |
| 3537 |
% \closepath |
| 3538 |
% \fillpath |
| 3539 |
% } |
| 3540 |
% \newcommand*{\BoldAsymmBat}{^^A |
| 3541 |
% \moveto(\-.5,.3)^^A |
| 3542 |
% \curveto(\-1.5,.4)(\-2.2,.6)(\-1.9,1.1)^^A |
| 3543 |
% \curveto(\-2.6,.6)(\-3,0)(\-3,-.6)^^A |
| 3544 |
% \curveto(\-2.6,-.1)(\-2,-.4)(\-2,-.9)^^A |
| 3545 |
% \curveto(\-2,-.6)(\-1.6,-.35)(\-1.4,-.6)^^A |
| 3546 |
% \curveto(\-1.4,-.3)(\-1.2,-.2)(\-1,-.4)^^A |
| 3547 |
% \curveto(\-1,-.2)(\-.7,-.2)(\-.6,-.2)^^A |
| 3548 |
% \closepath |
| 3549 |
% \fillpath |
| 3550 |
% \moveto(\+.9,.1)^^A |
| 3551 |
% \curveto(\+1.8,0)(\+2.3,.3)(\+2.1,.8)^^A |
| 3552 |
% \curveto(\+2.6,.7)(\+3.3,-.1)(\+3,-.8)^^A |
| 3553 |
% \curveto(\+2.7,-.3)(\+2,-.6)(\+2,-1.1)^^A |
| 3554 |
% \curveto(\+2,-.6)(\+1.7,-.5)(\+1.5,-.8)^^A |
| 3555 |
% \curveto(\+1.6,-.5)(\+1.3,-.3)(\+1.1,-.6)^^A |
| 3556 |
% \curveto(\+1.1,-.4)(\+1,-.4)(\+.8,-.4)^^A |
| 3557 |
% \closepath |
| 3558 |
% \fillpath |
| 3559 |
% \moveto(\+.8,-.1)^^A |
| 3560 |
% \curveto(\+.85,.08)(\+.65,.13)(\+.6,-.05)^^A |
| 3561 |
% \lineto(\+.3,0)^^A |
| 3562 |
% \curveto(\+.35,.2)(\+.05,.3)(0,.1)^^A |
| 3563 |
% \lineto(\-.85,0)^^A |
| 3564 |
% \curveto(\-.75,.3)(\-.4,.7)(\+.25,1.1)^^A |
| 3565 |
% \curveto(\+.2,.55)(\+.8,.45)(\+1,1)^^A |
| 3566 |
% \curveto(\+1.1,.8)(\+1.2,.2)(\+1.05,0)^^A |
| 3567 |
% \closepath |
| 3568 |
% \fillpath |
| 3569 |
% \moveto(\+.8,-.1)^^A |
| 3570 |
% \curveto(\+.75,-.28)(\+.55,-.23)(\+.6,-.05)^^A |
| 3571 |
% \lineto(\+.3,0)^^A |
| 3572 |
% \curveto(\+.25,-.18)(\-.05,-.08)(0,.1)^^A |
| 3573 |
% \lineto(\-.85,0)^^A |
| 3574 |
% \curveto(\-.95,-.3)(\-.8,-.6)(\-1,-1)^^A |
| 3575 |
% \curveto(\-.75,-.7)(\-.4,-.8)(\-.5,-1.1)^^A |
| 3576 |
% \curveto(\-.2,-.8)(\+.2,-.82)(\+.3,-.8)^^A |
| 3577 |
% \curveto(\+.85,-.69)(\+1.04,-.0133333)(\+1.05,0)^^A |
| 3578 |
% \closepath |
| 3579 |
% \fillpath |
| 3580 |
% } |
| 3581 |
% |
| 3582 |
% \centering |
| 3583 |
% \addtolength\leftskip {-2cm} |
| 3584 |
% \addtolength\rightskip{-2cm} |
| 3585 |
% |
| 3586 |
% The asymmetric bat, |
| 3587 |
% in the \texttt{normal}\ldots\\*[\bigskipamount] |
| 3588 |
% \begin{picture}(6,4)(-3,-2) |
| 3589 |
% \def\+{-} |
| 3590 |
% \def\-{+} |
| 3591 |
% \linethickness{.1pt} |
| 3592 |
% \color{guidelines} |
| 3593 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3594 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3595 |
% \color{black} |
| 3596 |
% \AsymmBat |
| 3597 |
% \end{picture}\qquad |
| 3598 |
% \begin{picture}(6,4)(-3,-2) |
| 3599 |
% \def\+{+} |
| 3600 |
% \def\-{-} |
| 3601 |
% \linethickness{.1pt} |
| 3602 |
% \color{guidelines} |
| 3603 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3604 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3605 |
% \color{black} |
| 3606 |
% \AsymmBat |
| 3607 |
% \end{picture} |
| 3608 |
% |
| 3609 |
% \bigskip\bigskip\bigskip |
| 3610 |
% |
| 3611 |
% \ldots and in the \texttt{bold} math version.\\*[\bigskipamount] |
| 3612 |
% \begin{picture}(6,4)(-3,-2) |
| 3613 |
% \def\+{-} |
| 3614 |
% \def\-{+} |
| 3615 |
% \linethickness{.1pt} |
| 3616 |
% \color{guidelines} |
| 3617 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3618 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3619 |
% \color{black} |
| 3620 |
% \BoldAsymmBat |
| 3621 |
% \end{picture}\qquad |
| 3622 |
% \begin{picture}(6,4)(-3,-2) |
| 3623 |
% \def\+{+} |
| 3624 |
% \def\-{-} |
| 3625 |
% \linethickness{.1pt} |
| 3626 |
% \color{guidelines} |
| 3627 |
% \multiput(-3,-2)(1,0){7}{\line(0,1){4}} |
| 3628 |
% \multiput(-3,-2)(0,1){5}{\line(1,0){6}} |
| 3629 |
% \color{black} |
| 3630 |
% \BoldAsymmBat |
| 3631 |
% \end{picture} |
| 3632 |
% |
| 3633 |
% \caption{Sketches of the asymmetric bats} |
| 3634 |
% \label{fig:a-bats} |
| 3635 |
% \end{figure} |
| 3636 |
% |
| 3637 |
% \begin{macro}{\@HwM@symmetric@bat@wing} |
| 3638 |
% Subroutine that draws the wing of a symmetric, normal (that is, not bold) |
| 3639 |
% bat. Argument~\#1 is either \texttt{-} or~\texttt{+}, depending on which |
| 3640 |
% wing you want to draw. |
| 3641 |
% \begin{macrocode} |
| 3642 |
\newcommand*\@HwM@symmetric@bat@wing[1]{% |
| 3643 |
\moveto(#1.7,0)% |
| 3644 |
\curveto(#11.5,.1)(#12.2,.5)(#12,1)% |
| 3645 |
\curveto(#12.5,.5)(#12.9,0)(#12.9,-.5)% |
| 3646 |
\curveto(#12.8,0)(#12,-.5)(#12.25,-1)% |
| 3647 |
\curveto(#12,-.5)(#11.7,-.3)(#11.5,-.7)% |
| 3648 |
\curveto(#11.4,-.5)(#11.2,-.3)(#11,-.5)% |
| 3649 |
\curveto(#1.9,-.4)(#1.7,-.4)(#1.5,-.5)% |
| 3650 |
\closepath |
| 3651 |
\fillpath |
| 3652 |
} |
| 3653 |
% \end{macrocode} |
| 3654 |
% \end{macro} |
| 3655 |
% |
| 3656 |
% \begin{macro}{\@HwM@symmetric@bbat@wing} |
| 3657 |
% Subroutine that draws the wing of a symmetric, bold bat (note the |
| 3658 |
% additional~\texttt{b}). Argument~\#1 is either \texttt{-} or~\texttt{+}, |
| 3659 |
% depending on which wing you want to draw. |
| 3660 |
% \begin{macrocode} |
| 3661 |
\newcommand*\@HwM@symmetric@bbat@wing[1]{% |
| 3662 |
\moveto(#1.7,.1)% |
| 3663 |
\curveto(#11.5,.2)(#12.25,.6)(#12,1.1)% |
| 3664 |
\curveto(#12.6,.5)(#13,0)(#13,-.6)% |
| 3665 |
\curveto(#12.8,0)(#12,-.6)(#12.25,-1.1)% |
| 3666 |
\curveto(#12,-.6)(#11.7,-.4)(#11.5,-.8)% |
| 3667 |
\curveto(#11.4,-.6)(#11.2,-.4)(#11,-.6)% |
| 3668 |
\curveto(#1.9,-.5)(#1.7,-.5)(#1.5,-.5)% |
| 3669 |
\closepath |
| 3670 |
\fillpath |
| 3671 |
} |
| 3672 |
% \end{macrocode} |
| 3673 |
% \end{macro} |
| 3674 |
% |
| 3675 |
% \begin{macro}{\@HwM@symmetric@bat} |
| 3676 |
% Macro that draws the symmetric, normal (that is, not bold) bat. Argument: |
| 3677 |
% \begin{paramlist} |
| 3678 |
% \param |
| 3679 |
% font selector (\eg "\textfont"). |
| 3680 |
% \end{paramlist} |
| 3681 |
% \begin{macrocode} |
| 3682 |
\newcommand*\@HwM@symmetric@bat[1]{% |
| 3683 |
\begin{@HwM@math@picture}{2}{-1}{}#1{6}{-3}% |
| 3684 |
\moveto(-.5,-.5)% |
| 3685 |
\curveto(-.4,-.6)(-.2,-.7)(-.2,-1)% |
| 3686 |
\curveto(-.1,-.7)(.1,-.7)(.2,-1)% |
| 3687 |
\curveto(.2,-.7)(.4,-.6)(.5,-.5)% |
| 3688 |
\closepath |
| 3689 |
\fillpath |
| 3690 |
\@HwM@symmetric@bat@wing-% |
| 3691 |
\@HwM@symmetric@bat@wing+% |
| 3692 |
\moveto(.5,0)% |
| 3693 |
\circlearc{.35}{0}{.15}{0}{180}% |
| 3694 |
\lineto(-.2,0)% |
| 3695 |
\circlearc{-.35}{0}{.15}{0}{180}% |
| 3696 |
\lineto(-.75,0)% |
| 3697 |
\curveto(-.75,.45)(-.7,.5)(-.5,1)% |
| 3698 |
\circlearc{0}{1}{.5}{180}{360}% |
| 3699 |
\curveto(.7,.5)(.75,.45)(.75,0)% |
| 3700 |
\closepath |
| 3701 |
\fillpath |
| 3702 |
\moveto(-.75,0)% |
| 3703 |
\circlearc{0}{0}{.75}{180}{360}% |
| 3704 |
\lineto(.5,0)% |
| 3705 |
\circlearc{.35}{0}{.15}{360}{180}% |
| 3706 |
\lineto(-.2,0)% |
| 3707 |
\circlearc{-.35}{0}{.15}{360}{180}% |
| 3708 |
\closepath |
| 3709 |
\fillpath |
| 3710 |
\end{@HwM@math@picture}% |
| 3711 |
} |
| 3712 |
% \end{macrocode} |
| 3713 |
% \end{macro} |
| 3714 |
% |
| 3715 |
% \begin{macro}{\@HwM@symmetric@bold@bat} |
| 3716 |
% Macro that draws the symmetric, bold bat. Argument: |
| 3717 |
% \begin{paramlist} |
| 3718 |
% \param |
| 3719 |
% font selector (\eg "\textfont"). |
| 3720 |
% \end{paramlist} |
| 3721 |
% \begin{macrocode} |
| 3722 |
\newcommand*\@HwM@symmetric@bold@bat[1]{% |
| 3723 |
\begin{@HwM@math@picture}{2}{-1}{}#1{6}{-3}% |
| 3724 |
\moveto(-.6,-.5)% |
| 3725 |
\curveto(-.5,-.6)(-.3,-.7)(-.3,-1.1)% |
| 3726 |
\curveto(-.1,-.7)(.1,-.7)(.3,-1.1)% |
| 3727 |
\curveto(.3,-.7)(.5,-.6)(.6,-.5)% |
| 3728 |
\closepath |
| 3729 |
\fillpath |
| 3730 |
\@HwM@symmetric@bbat@wing-% |
| 3731 |
\@HwM@symmetric@bbat@wing+% |
| 3732 |
\moveto(.5,0)% |
| 3733 |
\circlearc{.35}{0}{.15}{0}{180}% |
| 3734 |
\lineto(-.2,0)% |
| 3735 |
\circlearc{-.35}{0}{.15}{0}{180}% |
| 3736 |
\lineto(-.8,0)% |
| 3737 |
\curveto(-.8,.5)(-.7,.5)(-.55,1.1)% |
| 3738 |
\circlearc{0}{1.1}{.55}{180}{360}% |
| 3739 |
\curveto(.7,.5)(.8,.5)(.8,0)% |
| 3740 |
\closepath |
| 3741 |
\fillpath |
| 3742 |
\moveto(-.8,0)% |
| 3743 |
\circlearc{0}{0}{.8}{180}{360}% |
| 3744 |
\lineto(.5,0)% |
| 3745 |
\circlearc{.35}{0}{.15}{360}{180}% |
| 3746 |
\lineto(-.2,0)% |
| 3747 |
\circlearc{-.35}{0}{.15}{360}{180}% |
| 3748 |
\closepath |
| 3749 |
\fillpath |
| 3750 |
\end{@HwM@math@picture}% |
| 3751 |
} |
| 3752 |
% \end{macrocode} |
| 3753 |
% \end{macro} |
| 3754 |
% |
| 3755 |
% \begin{macro}{\@HwM@Symmetric@Bat} |
| 3756 |
% Macro that draws the symmetric bat, automatically choosing between the |
| 3757 |
% normal and the bold version; because of this, it is directly a ``public'' |
| 3758 |
% macro. Arguments: |
| 3759 |
% \begin{paramlist} |
| 3760 |
% \param |
| 3761 |
% style selector (\eg "\textstyle");\\ |
| 3762 |
% \param |
| 3763 |
% font selector (\eg "\textfont"). |
| 3764 |
% \end{paramlist} |
| 3765 |
% The first parameter is imposed by the interface toward other parts of the |
| 3766 |
% code, even if is not used here (as it happened in several other similar |
| 3767 |
% macros). |
| 3768 |
% \begin{macrocode} |
| 3769 |
\newcommand*\@HwM@Symmetric@Bat[2]{% |
| 3770 |
\@HwM@if@bold@math{% |
| 3771 |
\@HwM@symmetric@bold@bat #2% |
| 3772 |
}{% |
| 3773 |
\@HwM@symmetric@bat #2% |
| 3774 |
}% |
| 3775 |
} |
| 3776 |
% \end{macrocode} |
| 3777 |
% \end{macro} |
| 3778 |
% |
| 3779 |
% \begin{macro}{\@HwM@asymmetric@bat} |
| 3780 |
% Macro that draws the asymmetric, normal (that is, not bold) bat. Argument: |
| 3781 |
% \begin{paramlist} |
| 3782 |
% \param |
| 3783 |
% font selector (\eg "\textfont"). |
| 3784 |
% \end{paramlist} |
| 3785 |
% \begin{macrocode} |
| 3786 |
\newcommand*\@HwM@asymmetric@bat[1]{% |
| 3787 |
\begin{@HwM@math@picture}{2}{-1}{}#1{6}{-3}% |
| 3788 |
\moveto(\-.5,.2)% |
| 3789 |
\curveto(\-1.5,.3)(\-2.2,.5)(\-1.8,1)% |
| 3790 |
\curveto(\-2.5,.5)(\-2.9,0)(\-2.9,-.5)% |
| 3791 |
\curveto(\-2.7,0)(\-2,-.25)(\-2,-.8)% |
| 3792 |
\curveto(\-2,-.5)(\-1.6,-.25)(\-1.4,-.5)% |
| 3793 |
\curveto(\-1.4,-.2)(\-1.2,-.1)(\-1,-.3)% |
| 3794 |
\curveto(\-1,-.1)(\-.7,-.1)(\-.6,-.1)% |
| 3795 |
\closepath |
| 3796 |
\fillpath |
| 3797 |
\moveto(\+.9,0) |
| 3798 |
\curveto(\+2,-.1)(\+2.2,.5)(\+2,.7) |
| 3799 |
\curveto(\+2.5,.6)(\+3.2,0)(\+2.9,-.7)% |
| 3800 |
\curveto(\+2.6,-.2)(\+2,-.5)(\+2,-1)% |
| 3801 |
\curveto(\+2,-.5)(\+1.7,-.4)(\+1.5,-.7)% |
| 3802 |
\curveto(\+1.6,-.4)(\+1.3,-.2)(\+1.1,-.5)% |
| 3803 |
\curveto(\+1.1,-.3)(\+1,-.3)(\+.8,-.3)% |
| 3804 |
\closepath |
| 3805 |
\fillpath |
| 3806 |
\moveto(\+.8,-.1)% |
| 3807 |
\curveto(\+.85,.08)(\+.65,.13)(\+.6,-.05)% |
| 3808 |
\lineto(\+.3,0)% |
| 3809 |
\curveto(\+.35,.2)(\+.05,.3)(0,.1)% |
| 3810 |
\lineto(\-.8,0)% |
| 3811 |
\curveto(\-.7,.3)(\-.4,.7)(\+.25,1)% |
| 3812 |
\curveto(\+.2,.4)(\+.8,.3)(\+1,.9)% |
| 3813 |
\curveto(\+1.1,.7)(\+1.1,.2)(\+1,0)% |
| 3814 |
\closepath |
| 3815 |
\fillpath |
| 3816 |
\moveto(\+.8,-.1)% |
| 3817 |
\curveto(\+.75,-.28)(\+.55,-.23)(\+.6,-.05)% |
| 3818 |
\lineto(\+.3,0)% |
| 3819 |
\curveto(\+.25,-.18)(\-.05,-.08)(0,.1)% |
| 3820 |
\lineto(\-.8,0)% |
| 3821 |
\curveto(\-.9,-.3)(\-.8,-.6)(\-1,-.9)% |
| 3822 |
\curveto(\-.8,-.6)(\-.4,-.7)(\-.6,-1)% |
| 3823 |
\curveto(\-.2,-.8)(\+.2,-.82)(\+.3,-.8)% |
| 3824 |
\curveto(\+.85,-.69)(\+.99,-.02)(\+1,0)% |
| 3825 |
\closepath |
| 3826 |
\fillpath |
| 3827 |
\end{@HwM@math@picture}% |
| 3828 |
} |
| 3829 |
% \end{macrocode} |
| 3830 |
% \end{macro} |
| 3831 |
% |
| 3832 |
% \begin{macro}{\@HwM@asymmetric@bold@bat} |
| 3833 |
% Macro that draws the asymmetric, bold bat. Argument: |
| 3834 |
% \begin{paramlist} |
| 3835 |
% \param |
| 3836 |
% font selector (\eg "\textfont"). |
| 3837 |
% \end{paramlist} |
| 3838 |
% \begin{macrocode} |
| 3839 |
\newcommand*\@HwM@asymmetric@bold@bat[1]{% |
| 3840 |
\begin{@HwM@math@picture}{2}{-1}{}#1{6}{-3}% |
| 3841 |
\moveto(\-.5,.3)% |
| 3842 |
\curveto(\-1.5,.4)(\-2.2,.6)(\-1.9,1.1)% |
| 3843 |
\curveto(\-2.6,.6)(\-3,0)(\-3,-.6)% |
| 3844 |
\curveto(\-2.6,-.1)(\-2,-.4)(\-2,-.9)% |
| 3845 |
\curveto(\-2,-.6)(\-1.6,-.35)(\-1.4,-.6)% |
| 3846 |
\curveto(\-1.4,-.3)(\-1.2,-.2)(\-1,-.4)% |
| 3847 |
\curveto(\-1,-.2)(\-.7,-.2)(\-.6,-.2)% |
| 3848 |
\closepath |
| 3849 |
\fillpath |
| 3850 |
\moveto(\+.9,.1) |
| 3851 |
\curveto(\+1.8,0)(\+2.3,.3)(\+2.1,.8)% |
| 3852 |
\curveto(\+2.6,.7)(\+3.3,-.1)(\+3,-.8)% |
| 3853 |
\curveto(\+2.7,-.3)(\+2,-.6)(\+2,-1.1)% |
| 3854 |
\curveto(\+2,-.6)(\+1.7,-.5)(\+1.5,-.8)% |
| 3855 |
\curveto(\+1.6,-.5)(\+1.3,-.3)(\+1.1,-.6)% |
| 3856 |
\curveto(\+1.1,-.4)(\+1,-.4)(\+.8,-.4)% |
| 3857 |
\closepath |
| 3858 |
\fillpath |
| 3859 |
\moveto(\+.8,-.1)% |
| 3860 |
\curveto(\+.85,.08)(\+.65,.13)(\+.6,-.05)% |
| 3861 |
\lineto(\+.3,0)% |
| 3862 |
\curveto(\+.35,.2)(\+.05,.3)(0,.1)% |
| 3863 |
\lineto(\-.85,0)% |
| 3864 |
\curveto(\-.75,.3)(\-.4,.7)(\+.25,1.1)% |
| 3865 |
\curveto(\+.2,.55)(\+.8,.45)(\+1,1)% |
| 3866 |
\curveto(\+1.1,.8)(\+1.2,.2)(\+1.05,0)% |
| 3867 |
\closepath |
| 3868 |
\fillpath |
| 3869 |
\moveto(\+.8,-.1)% |
| 3870 |
\curveto(\+.75,-.28)(\+.55,-.23)(\+.6,-.05)% |
| 3871 |
\lineto(\+.3,0)% |
| 3872 |
\curveto(\+.25,-.18)(\-.05,-.08)(0,.1)% |
| 3873 |
\lineto(\-.85,0)% |
| 3874 |
\curveto(\-.95,-.3)(\-.8,-.6)(\-1,-1)% |
| 3875 |
\curveto(\-.75,-.7)(\-.4,-.8)(\-.5,-1.1)% |
| 3876 |
\curveto(\-.2,-.8)(\+.2,-.82)(\+.3,-.8)% |
| 3877 |
\curveto(\+.85,-.69)(\+1.04,-.0133333)(\+1.05,0)% |
| 3878 |
\closepath |
| 3879 |
\fillpath |
| 3880 |
\end{@HwM@math@picture}% |
| 3881 |
} |
| 3882 |
% \end{macrocode} |
| 3883 |
% \end{macro} |
| 3884 |
% |
| 3885 |
% \begin{macro}{\@HwM@Asymmetric@Bat} |
| 3886 |
% Macro that draws the asymmetric bat, automatically choosing between the |
| 3887 |
% normal and the bold version; because of this, it is directly a ``public'' |
| 3888 |
% macro. Arguments: |
| 3889 |
% \begin{paramlist} |
| 3890 |
% \param |
| 3891 |
% style selector (\eg "\textstyle");\\ |
| 3892 |
% \param |
| 3893 |
% font selector (\eg "\textfont"). |
| 3894 |
% \end{paramlist} |
| 3895 |
% This should be the last time we have to repeat the usual remark about the |
| 3896 |
% first parameter: although it is not used in this macro, it is imposed by |
| 3897 |
% the interface toward other parts of the code, which is shared also by a few |
| 3898 |
% macros that, instead, require the information it conveys. |
| 3899 |
% \begin{macrocode} |
| 3900 |
\newcommand*\@HwM@Asymmetric@Bat[2]{% |
| 3901 |
\@HwM@if@bold@math{% |
| 3902 |
\@HwM@asymmetric@bold@bat #2% |
| 3903 |
}{% |
| 3904 |
\@HwM@asymmetric@bat #2% |
| 3905 |
}% |
| 3906 |
} |
| 3907 |
% \end{macrocode} |
| 3908 |
% \end{macro} |
| 3909 |
% |
| 3910 |
% \subsubsection{New brooms, old pitchforks} |
| 3911 |
% |
| 3912 |
% As we have already remarked in the first part, more precisely in |
| 3913 |
% Subsection~\ref{ssS:Witches}, the look of brooms, as they were implemented |
| 3914 |
% by the first release of this package, had already been |
| 3915 |
% \href{https://tex.stackexchange.com/questions/336768/seasonal-challenge-contributions-from-texing-dead-welcome#comment829686_337719}{politely |
| 3916 |
% questioned}: the problem was that, in certain commands, the brush was |
| 3917 |
% rendered as an "\in" or~"\ni" character ($\in$/$\ni$), making the supposed |
| 3918 |
% broom look more like a pitchfork. The same commands now represent the |
| 3919 |
% brush with a composite character obtained by overprinting a $<$ or~$>$ |
| 3920 |
% character to a~$-$; however, the old representation is retained too, using |
| 3921 |
% different command names. The following macros define both the old-style |
| 3922 |
% pitchforks and the new ``composite'' brushes. |
| 3923 |
% |
| 3924 |
% \begin{macro}{\@HwM@oooalign} |
| 3925 |
% This macro overprints two or more characters, taking math style into due |
| 3926 |
% account. It is my personal version of "\ooalign". Arguments: |
| 3927 |
% \begin{paramlist} |
| 3928 |
% \param |
| 3929 |
% style selector (\eg "\textstyle");\\ |
| 3930 |
% \param |
| 3931 |
% the symbols to be printed over oneanother, separated by "\cr". |
| 3932 |
% \end{paramlist} |
| 3933 |
% \begin{macrocode} |
| 3934 |
\newcommand*\@HwM@oooalign[2]{% |
| 3935 |
\leavevmode |
| 3936 |
\vbox{% |
| 3937 |
\baselineskip\z@skip |
| 3938 |
% \end{macrocode} |
| 3939 |
% The following line is just for elegance, since "\lineskip" will never be |
| 3940 |
% used\ldots |
| 3941 |
% \begin{macrocode} |
| 3942 |
\lineskip\z@skip |
| 3943 |
% \end{macrocode} |
| 3944 |
% \ldots given the setting of "\lineskiplimit". |
| 3945 |
% \begin{macrocode} |
| 3946 |
\lineskiplimit -\maxdimen |
| 3947 |
\m@th |
| 3948 |
\ialign{\hfil$#1##$\hfil\crcr #2\crcr}% |
| 3949 |
}% |
| 3950 |
} |
| 3951 |
% \end{macrocode} |
| 3952 |
% \end{macro} |
| 3953 |
% |
| 3954 |
% \begin{macro}{\@HwM@overprint@rel} |
| 3955 |
% This macro builds a composite relation symbol out of the two characters |
| 3956 |
% specified in the arguments. |
| 3957 |
% \begin{macrocode} |
| 3958 |
\newcommand*\@HwM@overprint@rel[2]{% |
| 3959 |
\mathrel{\mathpalette \@HwM@oooalign {#1\cr#2}}% |
| 3960 |
} |
| 3961 |
% \end{macrocode} |
| 3962 |
% \end{macro} |
| 3963 |
% |
| 3964 |
% The \packlass{\amsmath} package secures away, under the name "\std@minus", |
| 3965 |
% the original "\mathcode" of the \texttt{-}~character; it does so because |
| 3966 |
% this "\mathcode" is redefined when typesetting operator names |
| 3967 |
% (see~\cite{bib:diffs-m}, near the end of the ``Changes in amsmath~2.0 |
| 3968 |
% [November 1999]''), and this would cause an extensible arrow, that happened |
| 3969 |
% to be used inside an operator name, as in |
| 3970 |
% \begin{verbatim}\DeclareMathOperator{\test}{\underleftrightarrow{test}}\end{verbatim} |
| 3971 |
% to come out wrong. The saved "\mathcode" is used later in the "\relbar" |
| 3972 |
% macro. Since we use are using "\relbar" for our brooms too, for some while |
| 3973 |
% we've been concerned that other symbols we are going to employ could ``get |
| 3974 |
% out of synch'', as it were, with what "\relbar" would yield. This had |
| 3975 |
% initially led us to adopt the following, ``paranoid'' approach: |
| 3976 |
% \begin{verbatim}\def\do#1#2{\@ifdefinable#1{\mathchardef#1=\mathcode`#2\relax}} |
| 3977 |
%\do \@HwM@std@greater > |
| 3978 |
%\do \@HwM@std@less < |
| 3979 |
%\def\do#1#2\@ifdefinable#1{\let #1=#2} |
| 3980 |
%\do \@HwM@std@in \in |
| 3981 |
%\do \@HwM@std@ni \ni |
| 3982 |
%\AtBeginDocument{% |
| 3983 |
% \mathchardef \@HwM@std@greater \mathcode`>\relax |
| 3984 |
% \mathchardef \@HwM@std@less \mathcode`<\relax |
| 3985 |
% \let \@HwM@std@in = \in |
| 3986 |
% \let \@HwM@std@ni = \ni |
| 3987 |
%} |
| 3988 |
%\newcommand*\@HwM@rightbroomtail{% |
| 3989 |
% \@HwM@overprint@rel \std@minus \@HwM@std@greater |
| 3990 |
%} |
| 3991 |
%\newcommand*\@HwM@leftbroomtail{% |
| 3992 |
% \@HwM@overprint@rel \std@minus \@HwM@std@less |
| 3993 |
%} |
| 3994 |
%\newcommand*\@HwM@rightpforktail{\mathrel\@HwM@std@ni} |
| 3995 |
%\newcommand*\@HwM@leftpforktail {\mathrel\@HwM@std@in}\end{verbatim} |
| 3996 |
% Note that the definition of "\in" and~"\ni" was secured away too (and saved |
| 3997 |
% again at "\begin{document}"!\@), and not even I~can tell what was the |
| 3998 |
% reasoning behind that: being \TeXtok{mathchardef token}'s by their own, |
| 3999 |
% "\in" and~"\ni" needn't be saved as such; admittedly, there had been no |
| 4000 |
% reasoning at all! The redundant "\mathrel" in the definition of |
| 4001 |
% "\@HwM@rightpforktail" and "\@HwM@leftpforktail" deserves special mention |
| 4002 |
% as well; but we find the same redundancy in the definition of "\Relbar", |
| 4003 |
% not only in \packlass{\amsmath}, but also back in Knuth's coding of the |
| 4004 |
% \texttt{plain} format. |
| 4005 |
% |
| 4006 |
% Later on, paranoia was lowered to what could even be deemed a sensible |
| 4007 |
% level; indeed, storing away the "\mathcode" of~\texttt{<}/\texttt{>} is |
| 4008 |
% closely similar to what the \packlass{\amsmath} package does when it |
| 4009 |
% defines "\std@equal". |
| 4010 |
% \begin{verbatim}\def\do#1#2{\@ifdefinable#1{\mathchardef#1=\mathcode`#2\relax}} |
| 4011 |
%\do \@HwM@std@greater > |
| 4012 |
%\do \@HwM@std@less < |
| 4013 |
%\AtBeginDocument{% |
| 4014 |
% \mathchardef \@HwM@std@greater \mathcode`>\relax |
| 4015 |
% \mathchardef \@HwM@std@less \mathcode`<\relax |
| 4016 |
%} |
| 4017 |
%\newcommand*\@HwM@rightbroomtail{% |
| 4018 |
% \@HwM@overprint@rel \std@minus \@HwM@std@greater |
| 4019 |
%} |
| 4020 |
%\newcommand*\@HwM@leftbroomtail{% |
| 4021 |
% \@HwM@overprint@rel \std@minus \@HwM@std@less |
| 4022 |
%} |
| 4023 |
%\newcommand*\@HwM@rightpforktail{\mathrel\ni} |
| 4024 |
%\newcommand*\@HwM@leftpforktail {\mathrel\in}\end{verbatim} |
| 4025 |
% However, this code retains the fundamental drawback that affected the |
| 4026 |
% previous version as well: it will break down with engines that use Unicode |
| 4027 |
% math. Of course, it would be easy to cater for this too, but the point is |
| 4028 |
% that\ldots\ well, there's no point in all this "\mathcode" securement in |
| 4029 |
% the first place: OK\@, it is necessary to provide it for the~\texttt{-} |
| 4030 |
% character, which can denote two different symbols (minus and hyphen), taken |
| 4031 |
% from two different fonts, but neither for \texttt{<} or~\texttt{>}, nor, |
| 4032 |
% for that matter, for~\texttt{=}. So, in the end we decided simply to keep |
| 4033 |
% the symbolic names for the ``broom tail'' symbols, so that they serve as |
| 4034 |
% hooks, should we ever need to take a different course of action in the |
| 4035 |
% future, but to specify \texttt{<} and~\texttt{>} as literals, at least for |
| 4036 |
% now. |
| 4037 |
% |
| 4038 |
% \begin{macro}{\@HwM@rightbroomtail} |
| 4039 |
% The representation of the brush in the ``new'' brooms; version for brooms |
| 4040 |
% that point to the right. |
| 4041 |
% \begin{macrocode} |
| 4042 |
\newcommand*\@HwM@rightbroomtail{\@HwM@overprint@rel \std@minus >} |
| 4043 |
% \end{macrocode} |
| 4044 |
% \end{macro} |
| 4045 |
% |
| 4046 |
% \begin{macro}{\@HwM@leftbroomtail} |
| 4047 |
% As above, but for brooms that point to the left. |
| 4048 |
% \begin{macrocode} |
| 4049 |
\newcommand*\@HwM@leftbroomtail {\@HwM@overprint@rel \std@minus <} |
| 4050 |
% \end{macrocode} |
| 4051 |
% \end{macro} |
| 4052 |
% |
| 4053 |
% \begin{macro}{\@HwM@rightpforktail} |
| 4054 |
% Similar hook, but for pitchforks, pointing to the right. |
| 4055 |
% \begin{macrocode} |
| 4056 |
\newcommand*\@HwM@rightpforktail{\mathrel\ni} |
| 4057 |
% \end{macrocode} |
| 4058 |
% \end{macro} |
| 4059 |
% |
| 4060 |
% \begin{macro}{\@HwM@leftpforktail} |
| 4061 |
% For pitchforks pointing to the left. |
| 4062 |
% \begin{macrocode} |
| 4063 |
\newcommand*\@HwM@leftpforktail {\mathrel\in} |
| 4064 |
% \end{macrocode} |
| 4065 |
% \end{macro} |
| 4066 |
% |
| 4067 |
% Note again that, in the last two macros, we retained the redundant |
| 4068 |
% "\mathrel", exactly as Knuth and the authors of \packlass{\amsmath} did in |
| 4069 |
% the definition of "\Relbar": indeed, in order for "\joinrel" to work |
| 4070 |
% properly, it is essential that the symbols it acts on behave as relations, |
| 4071 |
% while, on the other hand, as remote as it might seem, there is always the |
| 4072 |
% possibility that the final user has redefined the r\^{o}le of "\in"/"ni". |
| 4073 |
% (Or, at least, this the tale I~recount to myself\ldots) |
| 4074 |
% |
| 4075 |
% For the above discussion about "\std@minus", I~have to thank again the |
| 4076 |
% people at \href{https://tex.stackexchange.com/}{\TeXSXAbbrev}, who provided |
| 4077 |
% me with the necessary insight into the matter: see~\cite{bib:std}. |
| 4078 |
% |
| 4079 |
% \subsubsection{Helper macros for the extensible symbols} |
| 4080 |
% \label{sS:ExtensHelper} |
| 4081 |
% |
| 4082 |
% This subsection contains some utility macros that help typeset certain |
| 4083 |
% extensible components, like broomsticks, swishes of ghosts, and so on. |
| 4084 |
% Such components are implemented by means of the "\leaders" primitive, or of |
| 4085 |
% a variant thereof. |
| 4086 |
% |
| 4087 |
% \begin{macro}{\@HwM@arrowfill@skip} |
| 4088 |
% Instead of relying on temporaries, we reserve a "\skip" register |
| 4089 |
% specifically devoted to holding the skip for the "\leaders". |
| 4090 |
% \begin{macrocode} |
| 4091 |
\newlength\@HwM@arrowfill@skip |
| 4092 |
% \end{macrocode} |
| 4093 |
% \end{macro} |
| 4094 |
% |
| 4095 |
% \begin{macro}{\@HwM@auto@font@selector} |
| 4096 |
% Suppose you have \meta{something} (\eg a macro token) that expects to be |
| 4097 |
% followed by a pair \meta{style selector}\meta{font selector}, where |
| 4098 |
% \meta{style selctor} is a single token like "\displaystyle" or |
| 4099 |
% "\scriptscriptstyle", and \meta{font selector} is a single token like |
| 4100 |
% "\textfont" or "\scriptfont"; then |
| 4101 |
% \begin{flushleft} |
| 4102 |
% "\@HwM@auto@font@selector{"\meta{something}"}"\meta{style selector} |
| 4103 |
% \end{flushleft} |
| 4104 |
% is transformed into |
| 4105 |
% \begin{flushleft} |
| 4106 |
% \meta{something}\meta{style selector}\meta{font selector} |
| 4107 |
% \end{flushleft} |
| 4108 |
% where \meta{style selector} is the same selector as the one that was |
| 4109 |
% originally present, and \meta{font selector} is the correct font selector |
| 4110 |
% that is associated with it (namely, "\textfont" for "\displaystyle" and |
| 4111 |
% "\textstyle", "\scriptfont" for "\scriptstyle", and "\scriptscriptfont" for |
| 4112 |
% "\scriptscriptstyle"). For example, |
| 4113 |
% \begin{flushleft} |
| 4114 |
% "\@HwM@auto@font@selector{"\meta{something}"}\displaystyle" |
| 4115 |
% \end{flushleft} |
| 4116 |
% is transformed into |
| 4117 |
% \begin{flushleft} |
| 4118 |
% \meta{something}"\displaystyle\textfont" |
| 4119 |
% \end{flushleft} |
| 4120 |
% In other words, prepending \meta{something} with "\@HwM@auto@font@selector" |
| 4121 |
% turns it from something that requires the two arguments \meta{style |
| 4122 |
% selector}\meta{font selector} into something else that takes just the |
| 4123 |
% single argument \meta{style selector}: the appropriate \meta{font selector} |
| 4124 |
% will be automatically supplied (whence the name of this macro). |
| 4125 |
% In version~0.01 of this package, this macro was implemented as shown here: |
| 4126 |
% \begin{verbatim}\newcommand*\@HwM@auto@font@selector[2]{% |
| 4127 |
% \def\@tempa{#1}% |
| 4128 |
% \edef\@tempb{% |
| 4129 |
% \ifx\displaystyle #2% |
| 4130 |
% \textfont |
| 4131 |
% \else \ifx\textstyle #2% |
| 4132 |
% \textfont |
| 4133 |
% \else \ifx\scriptstyle #2% |
| 4134 |
% \scriptfont |
| 4135 |
% \else \ifx\scriptscriptstyle #2% |
| 4136 |
% \scriptscriptfont |
| 4137 |
% \fi\fi\fi\fi |
| 4138 |
% }% |
| 4139 |
% \expandafter \@tempa \expandafter #2\@tempb |
| 4140 |
%}\end{verbatim} |
| 4141 |
% But in this version, the multiple-choice conditional has been simplified as |
| 4142 |
% follows. |
| 4143 |
% \textbf{Beware:} this is still a simple implementation that relies on |
| 4144 |
% assignments and that is therefore \emph{not} purely expandable. |
| 4145 |
% \begin{macrocode} |
| 4146 |
\newcommand*\@HwM@auto@font@selector[2]{% |
| 4147 |
\def\@tempa{#1}% |
| 4148 |
\edef\@tempb{% |
| 4149 |
\ifx\scriptscriptstyle #2% |
| 4150 |
\scriptscriptfont |
| 4151 |
\else \ifx\scriptstyle #2% |
| 4152 |
\scriptfont |
| 4153 |
\else |
| 4154 |
\textfont |
| 4155 |
\fi\fi |
| 4156 |
}% |
| 4157 |
\expandafter \@tempa \expandafter #2\@tempb |
| 4158 |
} |
| 4159 |
% \end{macrocode} |
| 4160 |
% \end{macro} |
| 4161 |
% |
| 4162 |
% \begin{macro}{\@HwM@extended@arrowfill@} |
| 4163 |
% This macro is loosely similar to the "\arrowfill@" macro found in the |
| 4164 |
% \packlass{\amsmath} package, though its functionality is extended so as to |
| 4165 |
% satisfy our needs. Basically, it invokes a caller-supplied (pseudo-)macro |
| 4166 |
% that typeset the "\leaders", passing to it the appropriate value for |
| 4167 |
% "\@HwM@arrowfill@skip". Arguments: |
| 4168 |
% \begin{paramlist} |
| 4169 |
% \param |
| 4170 |
% the "\leaders" (pseudo-)macro (its arguments are specified below);\\ |
| 4171 |
% \param |
| 4172 |
% the minimal width, expressed as a multiple of 18~math units. |
| 4173 |
% \end{paramlist} |
| 4174 |
% Arguments of the caller-supplied (pseudo-)macro: |
| 4175 |
% \begin{paramlist} |
| 4176 |
% \param |
| 4177 |
% style selector (\eg "\displaystyle");\\ |
| 4178 |
% \param |
| 4179 |
% font selector (\eg "\textfont"). |
| 4180 |
% \end{paramlist} |
| 4181 |
% \begin{macrocode} |
| 4182 |
\newcommand*\@HwM@extended@arrowfill@[2]{% |
| 4183 |
\@HwM@auto@font@selector |
| 4184 |
{\@HwM@stylefont@arrowfill{#1}{#2}}% |
| 4185 |
} |
| 4186 |
% \end{macrocode} |
| 4187 |
% \end{macro} |
| 4188 |
% |
| 4189 |
% \begin{macro}{\@HwM@stylefont@arrowfill} |
| 4190 |
% This is, in a sense, the ``internal'' version of the above macro, that is, |
| 4191 |
% the version that ought to be called \emph{after} the process of argument |
| 4192 |
% doubling implemented by "\@HwM@auto@font@selector" has taken place (see the |
| 4193 |
% description of that macro for details). Note that the name of this macro |
| 4194 |
% does \emph{not} end in an~\texttt{@}. Arguments: |
| 4195 |
% \begin{paramlist} |
| 4196 |
% \param |
| 4197 |
% the "\leaders" (pseudo-)macro (having the same 2~arguments as above);\\ |
| 4198 |
% \param |
| 4199 |
% the minimal width, expressed as a multiple of 18~math units;\\ |
| 4200 |
% \param |
| 4201 |
% style selector (\eg "\displaystyle");\\ |
| 4202 |
% \param |
| 4203 |
% font selector (\eg "\textfont"). |
| 4204 |
% \end{paramlist} |
| 4205 |
% \begin{macrocode} |
| 4206 |
\newcommand*\@HwM@stylefont@arrowfill[4]{% |
| 4207 |
$\m@th |
| 4208 |
\thickmuskip 0mu% |
| 4209 |
\medmuskip \thickmuskip |
| 4210 |
\thinmuskip \thickmuskip |
| 4211 |
\setlength\@HwM@arrowfill@skip |
| 4212 |
{#2\fontdimen 6 #4\tw@ \@plus \@ne fill}% |
| 4213 |
#3% |
| 4214 |
#1#3#4% |
| 4215 |
$% |
| 4216 |
} |
| 4217 |
% \end{macrocode} |
| 4218 |
% \end{macro} |
| 4219 |
% |
| 4220 |
% \begin{macro}{\@HwM@enriched@arrowfill@} |
| 4221 |
% This macro provides an ``enriched'' version of the "\arrowfill@" macro, |
| 4222 |
% that invokes two additional macros, supplied by the caller, one before and |
| 4223 |
% one after "\cleaders"; these macros can insert additional stretchable |
| 4224 |
% material. In practice, this is used, below, to add the black cat on the |
| 4225 |
% broomstick. Note that, here, the ``"\leaders" pseudo-macro'' is |
| 4226 |
% ``"\HwM@arrowfill@cleaders{#1}{#2}{#3}{#4}{#5}"''. |
| 4227 |
% |
| 4228 |
% The arguments for this macro are as follows: |
| 4229 |
% \begin{tightitemize} |
| 4230 |
% \item |
| 4231 |
% \#1, \#2, and~\#3 are the three characters that would be used by |
| 4232 |
% "\arrowfill@" for the "\cleaders" (resp.: left, repeatable, right); |
| 4233 |
% \item |
| 4234 |
% \#4 and~\#5 are the two additional macros (resp.: left of "\cleaders", |
| 4235 |
% right of "\cleaders"); |
| 4236 |
% \item |
| 4237 |
% those argument must be followed, in the calling code, by the argument |
| 4238 |
% that holds the minimal size of the extensible symbol. |
| 4239 |
% \end{tightitemize} |
| 4240 |
% The arguments of the two ``additional macros'' are as follows: |
| 4241 |
% \begin{paramlist} |
| 4242 |
% \param |
| 4243 |
% style selector (\eg "\displaystyle");\\ |
| 4244 |
% \param |
| 4245 |
% font selector (\eg "\textfont"). |
| 4246 |
% \end{paramlist} |
| 4247 |
% \begin{macrocode} |
| 4248 |
\newcommand*\@HwM@enriched@arrowfill@[5]{% |
| 4249 |
\@HwM@extended@arrowfill@ |
| 4250 |
{\HwM@arrowfill@cleaders{#1}{#2}{#3}{#4}{#5}}% |
| 4251 |
} |
| 4252 |
% \end{macrocode} |
| 4253 |
% \end{macro} |
| 4254 |
% |
| 4255 |
% \begin{macro}{\HwM@arrowfill@cleaders} |
| 4256 |
% The arguments for this macro are as follows: |
| 4257 |
% \begin{tightitemize} |
| 4258 |
% \item |
| 4259 |
% \#1, \#2, and~\#3 are the three characters, as above; |
| 4260 |
% \item |
| 4261 |
% \#4 and~\#5 are the two additional macros, as above; |
| 4262 |
% \item |
| 4263 |
% \( \mbox{\#6} \leftarrow \mbox{style sel.} \) |
| 4264 |
% (\eg "\displaystyle"), |
| 4265 |
% \( \mbox{\#7} \leftarrow \mbox{font sel.} \) |
| 4266 |
% (\eg "\textfont"). |
| 4267 |
% \end{tightitemize} |
| 4268 |
% \begin{macrocode} |
| 4269 |
\newcommand*\HwM@arrowfill@cleaders[7]{% |
| 4270 |
#4#6#7% |
| 4271 |
\relax #1\mkern-7mu% |
| 4272 |
\cleaders\hbox{$#6\mkern-2mu#2\mkern-2mu$}\hskip\@HwM@arrowfill@skip |
| 4273 |
\mkern-7mu#3\relax |
| 4274 |
#5#6#7% |
| 4275 |
} |
| 4276 |
% \end{macrocode} |
| 4277 |
% \end{macro} |
| 4278 |
% |
| 4279 |
% \subsubsection{Macros for extensible symbols (brooms, ghosts,~\ldots)} |
| 4280 |
% |
| 4281 |
% This subsection defines the actual macros that typeset the extensible |
| 4282 |
% broomsticks, swishes, etc., building on the top of the macros presented in |
| 4283 |
% Subsection~\ref{sS:ExtensHelper}. Extensible broomsticks come first. |
| 4284 |
% |
| 4285 |
% \begin{macro}{\@HwM@rightbroomfill@Wwac@} |
| 4286 |
% This macro should be thought of as an analog of \packlass{\amsmath}'s |
| 4287 |
% "\rightarrowfill@": it takes no arguments and yields an extensible broom |
| 4288 |
% complete with witch and, if appropriate, cat, both facing toward the right. |
| 4289 |
% For this macro only, we choose to include extensive comments, that |
| 4290 |
% exemplify how the macros defined in the |
| 4291 |
% \hyperref[sS:ExtensHelper]{preceding subsection} can be utilized. |
| 4292 |
% \begin{macrocode} |
| 4293 |
\newcommand*\@HwM@rightbroomfill@Wwac@{% |
| 4294 |
% \end{macrocode} |
| 4295 |
% Set up the right-facing direction: |
| 4296 |
% \begin{macrocode} |
| 4297 |
\@HwM@set@right@dir |
| 4298 |
% \end{macrocode} |
| 4299 |
% Have "\@HwM@enriched@arrowfill@" (assemble and) supply the extensible |
| 4300 |
% broom. Recall that the first three arguments are the characters it is |
| 4301 |
% built from: |
| 4302 |
% \begin{macrocode} |
| 4303 |
\@HwM@enriched@arrowfill@ \@HwM@rightbroomtail\relbar\relbar |
| 4304 |
% \end{macrocode} |
| 4305 |
% The first additional macro (left of "\cleaders") does nothing, |
| 4306 |
% yet it must gobble two arguments: |
| 4307 |
% \begin{macrocode} |
| 4308 |
\@gobbletwo |
| 4309 |
% \end{macrocode} |
| 4310 |
% The second additional macro adds the witch, and possibly the cat, to the |
| 4311 |
% right of the "\cleaders", and is defined below: |
| 4312 |
% \begin{macrocode} |
| 4313 |
\@HwM@right@add@witch@cat |
| 4314 |
% \end{macrocode} |
| 4315 |
% The minimal size of the extensible broom (1~chunk of 18\,mu =~18\,mu): |
| 4316 |
% \begin{macrocode} |
| 4317 |
\@ne |
| 4318 |
} |
| 4319 |
% \end{macrocode} |
| 4320 |
% \end{macro} |
| 4321 |
% |
| 4322 |
% \begin{macro}{\@HwM@rightpitchfill@Wwac@} |
| 4323 |
% Like "\@HwM@rightbroomfill@Wwac@", but yields an extensible pitchfork. |
| 4324 |
% \begin{macrocode} |
| 4325 |
\newcommand*\@HwM@rightpitchfill@Wwac@{% |
| 4326 |
\@HwM@set@right@dir |
| 4327 |
\@HwM@enriched@arrowfill@ \@HwM@rightpforktail\relbar\relbar |
| 4328 |
\@gobbletwo |
| 4329 |
\@HwM@right@add@witch@cat |
| 4330 |
\@ne |
| 4331 |
} |
| 4332 |
% \end{macrocode} |
| 4333 |
% \end{macro} |
| 4334 |
% |
| 4335 |
% \begin{macro}{\@HwM@right@add@witch@cat} |
| 4336 |
% Adds the witch and possibly the cat. Arguments: |
| 4337 |
% \begin{paramlist} |
| 4338 |
% \param |
| 4339 |
% style selector (\eg "\displaystyle"), ignored;\\ |
| 4340 |
% \param |
| 4341 |
% font selector (\eg "\textfont"). |
| 4342 |
% \end{paramlist} |
| 4343 |
% \begin{macrocode} |
| 4344 |
\newcommand*\@HwM@right@add@witch@cat[2]{% |
| 4345 |
% \end{macrocode} |
| 4346 |
% First backspace by half of the width of the extensible symbol\ldots |
| 4347 |
% \begin{macrocode} |
| 4348 |
\hskip -\glueexpr \@HwM@arrowfill@skip/\tw@ \relax |
| 4349 |
% \end{macrocode} |
| 4350 |
% \ldots then typeset the witch. |
| 4351 |
% \begin{macrocode} |
| 4352 |
\@HwM@Small@Witch@Wo@Broom #2% |
| 4353 |
% \end{macrocode} |
| 4354 |
% If the cat has also been requested\ldots |
| 4355 |
% \begin{macrocode} |
| 4356 |
\if@HwM@cat@ |
| 4357 |
% \end{macrocode} |
| 4358 |
% \ldots then move forward by $1/4$~of the width\ldots |
| 4359 |
% \begin{macrocode} |
| 4360 |
\hskip \glueexpr \@HwM@arrowfill@skip/4 \relax |
| 4361 |
% \end{macrocode} |
| 4362 |
% \ldots typeset the cat\ldots |
| 4363 |
% \begin{macrocode} |
| 4364 |
\@HwM@Small@Cat@On@Hori@Broom #2% |
| 4365 |
% \end{macrocode} |
| 4366 |
% \ldots then move forward by another $1/4$~of the width. |
| 4367 |
% \begin{macrocode} |
| 4368 |
\hskip \glueexpr \@HwM@arrowfill@skip/4 \relax |
| 4369 |
% \end{macrocode} |
| 4370 |
% Otherwise, just move forward by $1/2$~of the width, thus canceling the |
| 4371 |
% previous backspace. |
| 4372 |
% \begin{macrocode} |
| 4373 |
\else |
| 4374 |
\hskip \glueexpr \@HwM@arrowfill@skip/\tw@ \relax |
| 4375 |
\fi |
| 4376 |
} |
| 4377 |
% \end{macrocode} |
| 4378 |
% \end{macro} |
| 4379 |
% |
| 4380 |
% \begin{macro}{\@HwM@leftbroomfill@Wwac@} |
| 4381 |
% Like "\@HwM@rightbroomfill@Wwac@", but facing to the left. |
| 4382 |
% \begin{macrocode} |
| 4383 |
\newcommand*\@HwM@leftbroomfill@Wwac@{% |
| 4384 |
\@HwM@set@left@dir |
| 4385 |
\@HwM@enriched@arrowfill@ \relbar\relbar\@HwM@leftbroomtail |
| 4386 |
\@HwM@left@add@witch@cat |
| 4387 |
\@gobbletwo |
| 4388 |
\@ne |
| 4389 |
} |
| 4390 |
% \end{macrocode} |
| 4391 |
% \end{macro} |
| 4392 |
% |
| 4393 |
% \begin{macro}{\@HwM@leftpitchfill@Wwac@} |
| 4394 |
% Like "\@HwM@rightpitchfill@Wwac@", but facing to the left. |
| 4395 |
% \begin{macrocode} |
| 4396 |
\newcommand*\@HwM@leftpitchfill@Wwac@{% |
| 4397 |
\@HwM@set@left@dir |
| 4398 |
\@HwM@enriched@arrowfill@ \relbar\relbar\@HwM@leftpforktail |
| 4399 |
\@HwM@left@add@witch@cat |
| 4400 |
\@gobbletwo |
| 4401 |
\@ne |
| 4402 |
} |
| 4403 |
% \end{macrocode} |
| 4404 |
% \end{macro} |
| 4405 |
% |
| 4406 |
% \begin{macro}{\@HwM@left@add@witch@cat} |
| 4407 |
% Similar to "\@HwM@right@add@witch@cat". |
| 4408 |
% \begin{macrocode} |
| 4409 |
\newcommand*\@HwM@left@add@witch@cat[2]{% |
| 4410 |
\if@HwM@cat@ |
| 4411 |
\hskip \glueexpr \@HwM@arrowfill@skip/4 \relax |
| 4412 |
\@HwM@Small@Cat@On@Hori@Broom #2% |
| 4413 |
\hskip \glueexpr \@HwM@arrowfill@skip/4 \relax |
| 4414 |
\else |
| 4415 |
\hskip \glueexpr \@HwM@arrowfill@skip/\tw@ \relax |
| 4416 |
\fi |
| 4417 |
\@HwM@Small@Witch@Wo@Broom #2% |
| 4418 |
\hskip -\glueexpr \@HwM@arrowfill@skip/\tw@ \relax |
| 4419 |
} |
| 4420 |
% \end{macrocode} |
| 4421 |
% \end{macro} |
| 4422 |
% |
| 4423 |
% Next, we take care of the ``swishes'' that accompany ghosts and fluttering |
| 4424 |
% bats. Probably, here, we should try harder to factor out common code. |
| 4425 |
% |
| 4426 |
% \begin{macro}{\@HwM@init@swish@dimens} |
| 4427 |
% Subroutine; \#1~is a font selector (\eg "\textfont"). |
| 4428 |
% \begin{macrocode} |
| 4429 |
\newcommand*\@HwM@init@swish@dimens[1]{% |
| 4430 |
\dimen4 \glueexpr \fontdimen 22 #1\tw@ *\tw@/\thr@@ |
| 4431 |
\dimen6 .\@HwM@if@bold@math{333333}{25}\@HwM@thickness@units@for #1% |
| 4432 |
\dimen@ \dimen4 |
| 4433 |
\@HwM@calc@swish@thickness |
| 4434 |
} |
| 4435 |
% \end{macrocode} |
| 4436 |
% \end{macro} |
| 4437 |
% |
| 4438 |
% \textbf{Uncommented code} starts here. |
| 4439 |
% \begin{macrocode} |
| 4440 |
\newcommand*\@HwM@calc@swish@thickness{% |
| 4441 |
\dimen@ii -\dimen@ |
| 4442 |
\advance \dimen@ii \dimen6 |
| 4443 |
} |
| 4444 |
\newcommand*\@HwM@swish@leaders{% |
| 4445 |
\leaders \hrule \@height\dimen@ \@depth\dimen@ii \hskip |
| 4446 |
} |
| 4447 |
\newcommand*\@HwM@right@swish[3]{% |
| 4448 |
% #1 := swishing subform. (e.g., "\mkern 1.5mu\relax \mathrightbat") |
| 4449 |
% #2 := style selector (e.g., "\displaystyle") |
| 4450 |
% #3 := font selector (e.g., "\textfont") |
| 4451 |
\@HwM@init@swish@dimens #3% |
| 4452 |
\hskip \glueexpr \@HwM@arrowfill@skip/4\relax |
| 4453 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip/4\relax |
| 4454 |
\hskip \glueexpr \@HwM@arrowfill@skip/8\relax |
| 4455 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip*\thr@@/8\relax |
| 4456 |
\hskip -\@HwM@arrowfill@skip |
| 4457 |
\advance \dimen@ \dimen4 |
| 4458 |
\@HwM@calc@swish@thickness |
| 4459 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip*\thr@@/4 \relax |
| 4460 |
\hskip \glueexpr \@HwM@arrowfill@skip/8\relax |
| 4461 |
\@HwM@swish@leaders |
| 4462 |
\glueexpr \@HwM@arrowfill@skip/8+\dimen4 /\tw@ \relax |
| 4463 |
\hskip -\glueexpr \@HwM@arrowfill@skip/\tw@ \relax |
| 4464 |
\advance \dimen@ \dimen4 |
| 4465 |
\@HwM@calc@swish@thickness |
| 4466 |
\@HwM@swish@leaders |
| 4467 |
\glueexpr \@HwM@arrowfill@skip/\tw@ +\dimen4 /\tw@ \relax |
| 4468 |
\kern -\dimen4 |
| 4469 |
#1% |
| 4470 |
} |
| 4471 |
\newcommand*\@HwM@left@swish[3]{% |
| 4472 |
% #1 := swishing subformula (e.g., "\mathleftbat \mkern 1.5mu\relax") |
| 4473 |
% #2 := style selector (e.g., "\displaystyle") |
| 4474 |
% #3 := font selector (e.g., "\textfont") |
| 4475 |
#1% |
| 4476 |
\@HwM@init@swish@dimens #3% |
| 4477 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip*\thr@@/8\relax |
| 4478 |
\hskip \glueexpr \@HwM@arrowfill@skip/8\relax |
| 4479 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip/4\relax |
| 4480 |
\hskip -\glueexpr \@HwM@arrowfill@skip*\thr@@/4+\dimen4 /\tw@ \relax |
| 4481 |
\advance \dimen@ \dimen4 |
| 4482 |
\@HwM@calc@swish@thickness |
| 4483 |
\@HwM@swish@leaders |
| 4484 |
\glueexpr \@HwM@arrowfill@skip/8+\dimen4 /\tw@\relax |
| 4485 |
\hskip \glueexpr \@HwM@arrowfill@skip/8\relax |
| 4486 |
\@HwM@swish@leaders \glueexpr \@HwM@arrowfill@skip*\thr@@/4\relax |
| 4487 |
\hskip -\glueexpr \@HwM@arrowfill@skip +\dimen4 \relax |
| 4488 |
\advance \dimen@ \dimen4 |
| 4489 |
\@HwM@calc@swish@thickness |
| 4490 |
\@HwM@swish@leaders |
| 4491 |
\glueexpr \@HwM@arrowfill@skip/\tw@ +\dimen4 /\tw@ \relax |
| 4492 |
\hskip \glueexpr \@HwM@arrowfill@skip/\tw@ +\dimen4 /\tw@ \relax |
| 4493 |
} |
| 4494 |
\newcommand*\@HwM@rightghostfill@{% |
| 4495 |
\@HwM@extended@arrowfill@ {\@HwM@right@swish \mathrightghost}{.5}% |
| 4496 |
} |
| 4497 |
\newcommand*\@HwM@leftghostfill@{% |
| 4498 |
\@HwM@extended@arrowfill@ {\@HwM@left@swish \mathleftghost}{.5}% |
| 4499 |
} |
| 4500 |
\newcommand*\@HwM@rightbatfill@{% |
| 4501 |
\@HwM@extended@arrowfill@ |
| 4502 |
{\@HwM@right@swish{\mkern 1.5mu\relax \mathrightbat}}{.5}% |
| 4503 |
} |
| 4504 |
\newcommand*\@HwM@leftbatfill@{% |
| 4505 |
\@HwM@extended@arrowfill@ |
| 4506 |
{\@HwM@left@swish{\mathleftbat \mkern 1.5mu\relax}}{.5}% |
| 4507 |
} |
| 4508 |
|
| 4509 |
\newcommand*\@HwM@rightbroomfill@{% |
| 4510 |
\arrowfill@ \@HwM@rightbroomtail\relbar\relbar |
| 4511 |
} |
| 4512 |
\newcommand*\@HwM@leftbroomfill@{% |
| 4513 |
\arrowfill@ \relbar\relbar\@HwM@leftbroomtail |
| 4514 |
} |
| 4515 |
\newcommand*\@HwM@rightpitchfill@{% |
| 4516 |
\arrowfill@ \@HwM@rightpforktail\relbar\relbar |
| 4517 |
} |
| 4518 |
\newcommand*\@HwM@leftpitchfill@{% |
| 4519 |
\arrowfill@ \relbar\relbar\@HwM@leftpforktail |
| 4520 |
} |
| 4521 |
|
| 4522 |
\newcommand*\@HwM@dblstyle@mathpalette[2]{% |
| 4523 |
% Works like "\mathpalette", but macro passed in #1 must take |
| 4524 |
% (at least) three arguments, of which the first _two_ are |
| 4525 |
% style selections. |
| 4526 |
\mathchoice |
| 4527 |
{#1\displaystyle \scriptstyle {#2}}% |
| 4528 |
{#1\textstyle \scriptstyle {#2}}% |
| 4529 |
{#1\scriptstyle \scriptscriptstyle {#2}}% |
| 4530 |
{#1\scriptscriptstyle \scriptscriptstyle {#2}}% |
| 4531 |
} |
| 4532 |
\newcommand*\@HwM@variable@mathpalette[2]{% |
| 4533 |
\mathchoice |
| 4534 |
{#1}% |
| 4535 |
{#2\textstyle \textfont }% |
| 4536 |
{#2\scriptstyle \scriptfont }% |
| 4537 |
{#2\scriptscriptstyle \scriptscriptfont}% |
| 4538 |
} |
| 4539 |
\newcommand*\@HwM@constant@mathpalette[1]{% |
| 4540 |
\mathchoice |
| 4541 |
{#1\displaystyle \textfont }% |
| 4542 |
{#1\textstyle \textfont }% |
| 4543 |
{#1\scriptstyle \scriptfont }% |
| 4544 |
{#1\scriptscriptstyle \scriptscriptfont}% |
| 4545 |
} |
| 4546 |
|
| 4547 |
\newcommand*\@HwM@general@large@operator[2]{% |
| 4548 |
\mathop{% |
| 4549 |
\@HwM@variable@mathpalette{#1}{#2}% |
| 4550 |
}\slimits@ |
| 4551 |
} |
| 4552 |
\newcommand*\@HwM@general@inner@symbol[2]{% |
| 4553 |
\mathinner{% |
| 4554 |
\@HwM@variable@mathpalette{#1}{#2}% |
| 4555 |
}% |
| 4556 |
} |
| 4557 |
\newcommand*\@HwM@general@binary@operation[1]{% |
| 4558 |
\mathbin{% |
| 4559 |
\@HwM@constant@mathpalette{#1}% |
| 4560 |
}% |
| 4561 |
} |
| 4562 |
\newcommand*\@HwM@general@ordinary@symbol[1]{% |
| 4563 |
\mathord{% |
| 4564 |
\@HwM@constant@mathpalette{#1}% |
| 4565 |
}% |
| 4566 |
} |
| 4567 |
\newcommand*\@HwM@ifstar@cat[1]{% |
| 4568 |
\@ifstar |
| 4569 |
{\@HwM@cat@true #1}% |
| 4570 |
{\@HwM@cat@false #1}% |
| 4571 |
} |
| 4572 |
|
| 4573 |
\newcommand*\mathwitch{% |
| 4574 |
\DOTSB |
| 4575 |
\@HwM@set@right@dir |
| 4576 |
\@HwM@ifstar@cat{\@HwM@mathwitch lr}% |
| 4577 |
} |
| 4578 |
\newcommand*\reversemathwitch{% |
| 4579 |
\DOTSB |
| 4580 |
\@HwM@set@left@dir |
| 4581 |
\@HwM@ifstar@cat{\@HwM@mathwitch rl}% |
| 4582 |
} |
| 4583 |
\newcommand*\@HwM@mathwitch[2]{% |
| 4584 |
\@HwM@general@large@operator |
| 4585 |
{\@HwM@Large@Witch #1#2}% |
| 4586 |
\@HwM@Small@Witch |
| 4587 |
} |
| 4588 |
|
| 4589 |
\newcommand*\pumpkin{% |
| 4590 |
\DOTSB |
| 4591 |
\@HwM@general@binary@operation \@HwM@Binop@Pumpkin |
| 4592 |
} |
| 4593 |
\newcommand*\bigpumpkin{% |
| 4594 |
\DOTSB |
| 4595 |
\@HwM@general@large@operator \@HwM@Large@Pumpkin \@HwM@Small@Pumpkin |
| 4596 |
} |
| 4597 |
\@ifdefinable\greatpumpkin{\let\greatpumpkin=\bigpumpkin} |
| 4598 |
|
| 4599 |
\newcommand*\skull{% |
| 4600 |
\DOTSB |
| 4601 |
\@HwM@general@binary@operation \@HwM@Binop@Skull |
| 4602 |
} |
| 4603 |
\newcommand*\bigskull{% |
| 4604 |
\DOTSB |
| 4605 |
\@HwM@general@large@operator \@HwM@Large@Skull \@HwM@Small@Skull |
| 4606 |
} |
| 4607 |
|
| 4608 |
\newcommand*\mathcloud {\@HwM@set@right@dir \@HwM@mathcloud} |
| 4609 |
\newcommand*\reversemathcloud{\@HwM@set@left@dir \@HwM@mathcloud} |
| 4610 |
\newcommand*\@HwM@mathcloud{% |
| 4611 |
\@HwM@general@inner@symbol \@HwM@Large@Cloud \@HwM@Small@Cloud |
| 4612 |
} |
| 4613 |
|
| 4614 |
\newcommand*\mathghost{% |
| 4615 |
\@HwM@general@ordinary@symbol \@HwM@Symmetric@Ghost |
| 4616 |
} |
| 4617 |
\newcommand*\mathrightghost{\@HwM@set@right@dir \@HwM@mathghost} |
| 4618 |
\newcommand*\mathleftghost {\@HwM@set@left@dir \@HwM@mathghost} |
| 4619 |
\newcommand*\@HwM@mathghost{% |
| 4620 |
\@HwM@general@ordinary@symbol \@HwM@Asymmetric@Ghost |
| 4621 |
} |
| 4622 |
|
| 4623 |
\newcommand*\mathbat{% |
| 4624 |
\@HwM@general@ordinary@symbol \@HwM@Symmetric@Bat |
| 4625 |
} |
| 4626 |
\newcommand*\mathrightbat{\@HwM@set@right@dir \@HwM@mathbat} |
| 4627 |
\newcommand*\mathleftbat {\@HwM@set@left@dir \@HwM@mathbat} |
| 4628 |
\newcommand*\@HwM@mathbat{% |
| 4629 |
\@HwM@general@ordinary@symbol \@HwM@Asymmetric@Bat |
| 4630 |
} |
| 4631 |
|
| 4632 |
\newcommand*\@HwM@dblstyle@overarrow@[4]{% |
| 4633 |
% #1 := stretchable covering arrow |
| 4634 |
% #2 := base style |
| 4635 |
% #3 := style for covering arrow |
| 4636 |
% #4 := base symbol |
| 4637 |
\vbox{\ialign{##\crcr |
| 4638 |
#1#3\crcr |
| 4639 |
\noalign{\nointerlineskip}% |
| 4640 |
$\m@th\hfil #2#4\hfil$\crcr |
| 4641 |
}}% |
| 4642 |
} |
| 4643 |
\newcommand*\@HwM@dblstyle@underarrow@[4]{% |
| 4644 |
% #1 := stretchable underlying arrow |
| 4645 |
% #2 := base style |
| 4646 |
% #3 := style for underlying arrow |
| 4647 |
% #4 := base symbol |
| 4648 |
\vtop{\ialign{##\crcr |
| 4649 |
$\m@th\hfil #2#4\hfil$\crcr |
| 4650 |
\noalign{\nointerlineskip \kern\ex@}% |
| 4651 |
#1#3\crcr |
| 4652 |
}}% |
| 4653 |
} |
| 4654 |
\newcommand*\@HwM@general@ou@w@cat[1]{% |
| 4655 |
\@HwM@ifstar@cat{\@HwM@dblstyle@mathpalette{#1}}% |
| 4656 |
} |
| 4657 |
\newcommand*\overrightwitchonbroom{% |
| 4658 |
\@HwM@general@ou@w@cat |
| 4659 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightbroomfill@Wwac@}% |
| 4660 |
} |
| 4661 |
\newcommand*\overleftwitchonbroom{% |
| 4662 |
\@HwM@general@ou@w@cat |
| 4663 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftbroomfill@Wwac@}% |
| 4664 |
} |
| 4665 |
\newcommand*\overrightwitchonpitchfork{% |
| 4666 |
\@HwM@general@ou@w@cat |
| 4667 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightpitchfill@Wwac@}% |
| 4668 |
} |
| 4669 |
\newcommand*\overleftwitchonpitchfork{% |
| 4670 |
\@HwM@general@ou@w@cat |
| 4671 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftpitchfill@Wwac@}% |
| 4672 |
} |
| 4673 |
\newcommand*\overrightswishingghost{% |
| 4674 |
\@HwM@dblstyle@mathpalette |
| 4675 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightghostfill@}% |
| 4676 |
} |
| 4677 |
\newcommand*\overleftswishingghost{% |
| 4678 |
\@HwM@dblstyle@mathpalette |
| 4679 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftghostfill@}% |
| 4680 |
} |
| 4681 |
\newcommand*\overrightflutteringbat{% |
| 4682 |
\@HwM@dblstyle@mathpalette |
| 4683 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightbatfill@}% |
| 4684 |
} |
| 4685 |
\newcommand*\overleftflutteringbat{% |
| 4686 |
\@HwM@dblstyle@mathpalette |
| 4687 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftbatfill@}% |
| 4688 |
} |
| 4689 |
\newcommand*\underrightwitchonbroom{% |
| 4690 |
\@HwM@general@ou@w@cat |
| 4691 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightbroomfill@Wwac@}% |
| 4692 |
} |
| 4693 |
\newcommand*\underleftwitchonbroom{% |
| 4694 |
\@HwM@general@ou@w@cat |
| 4695 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftbroomfill@Wwac@}% |
| 4696 |
} |
| 4697 |
\newcommand*\underrightwitchonpitchfork{% |
| 4698 |
\@HwM@general@ou@w@cat |
| 4699 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightpitchfill@Wwac@}% |
| 4700 |
} |
| 4701 |
\newcommand*\underleftwitchonpitchfork{% |
| 4702 |
\@HwM@general@ou@w@cat |
| 4703 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftpitchfill@Wwac@}% |
| 4704 |
} |
| 4705 |
\newcommand*\underrightswishingghost{% |
| 4706 |
\@HwM@dblstyle@mathpalette |
| 4707 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightghostfill@}% |
| 4708 |
} |
| 4709 |
\newcommand*\underleftswishingghost{% |
| 4710 |
\@HwM@dblstyle@mathpalette |
| 4711 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftghostfill@}% |
| 4712 |
} |
| 4713 |
\newcommand*\underrightflutteringbat{% |
| 4714 |
\@HwM@dblstyle@mathpalette |
| 4715 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightbatfill@}% |
| 4716 |
} |
| 4717 |
\newcommand*\underleftflutteringbat{% |
| 4718 |
\@HwM@dblstyle@mathpalette |
| 4719 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftbatfill@}% |
| 4720 |
} |
| 4721 |
\newcommand*\overrightbroom{% |
| 4722 |
\mathpalette{\overarrow@ \@HwM@rightbroomfill@}% |
| 4723 |
} |
| 4724 |
\newcommand*\overleftbroom{% |
| 4725 |
\mathpalette{\overarrow@ \@HwM@leftbroomfill@}% |
| 4726 |
} |
| 4727 |
\newcommand*\overrightpitchfork{% |
| 4728 |
\mathpalette{\overarrow@ \@HwM@rightpitchfill@}% |
| 4729 |
} |
| 4730 |
\newcommand*\overleftpitchfork{% |
| 4731 |
\mathpalette{\overarrow@ \@HwM@leftpitchfill@}% |
| 4732 |
} |
| 4733 |
\newcommand*\underrightbroom{% |
| 4734 |
\mathpalette{\underarrow@ \@HwM@rightbroomfill@}% |
| 4735 |
} |
| 4736 |
\newcommand*\underleftbroom{% |
| 4737 |
\mathpalette{\underarrow@ \@HwM@leftbroomfill@}% |
| 4738 |
} |
| 4739 |
\newcommand*\underrightpitchfork{% |
| 4740 |
\mathpalette{\underarrow@ \@HwM@rightpitchfill@}% |
| 4741 |
} |
| 4742 |
\newcommand*\underleftpitchfork{% |
| 4743 |
\mathpalette{\underarrow@ \@HwM@leftpitchfill@}% |
| 4744 |
} |
| 4745 |
\newcommand*\overscriptrightbroom{% |
| 4746 |
\@HwM@dblstyle@mathpalette |
| 4747 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightbroomfill@}% |
| 4748 |
} |
| 4749 |
\newcommand*\overscriptleftbroom{% |
| 4750 |
\@HwM@dblstyle@mathpalette |
| 4751 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftbroomfill@}% |
| 4752 |
} |
| 4753 |
\newcommand*\overscriptrightpitchfork{% |
| 4754 |
\@HwM@dblstyle@mathpalette |
| 4755 |
{\@HwM@dblstyle@overarrow@ \@HwM@rightpitchfill@}% |
| 4756 |
} |
| 4757 |
\newcommand*\overscriptleftpitchfork{% |
| 4758 |
\@HwM@dblstyle@mathpalette |
| 4759 |
{\@HwM@dblstyle@overarrow@ \@HwM@leftpitchfill@}% |
| 4760 |
} |
| 4761 |
\newcommand*\underscriptrightbroom{% |
| 4762 |
\@HwM@dblstyle@mathpalette |
| 4763 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightbroomfill@}% |
| 4764 |
} |
| 4765 |
\newcommand*\underscriptleftbroom{% |
| 4766 |
\@HwM@dblstyle@mathpalette |
| 4767 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftbroomfill@}% |
| 4768 |
} |
| 4769 |
\newcommand*\underscriptrightpitchfork{% |
| 4770 |
\@HwM@dblstyle@mathpalette |
| 4771 |
{\@HwM@dblstyle@underarrow@ \@HwM@rightpitchfill@}% |
| 4772 |
} |
| 4773 |
\newcommand*\underscriptleftpitchfork{% |
| 4774 |
\@HwM@dblstyle@mathpalette |
| 4775 |
{\@HwM@dblstyle@underarrow@ \@HwM@leftpitchfill@}% |
| 4776 |
} |
| 4777 |
\newcommand*\overscriptrightarrow{% |
| 4778 |
\@HwM@dblstyle@mathpalette |
| 4779 |
{\@HwM@dblstyle@overarrow@ \rightarrowfill@}% |
| 4780 |
} |
| 4781 |
\newcommand*\overscriptleftarrow{% |
| 4782 |
\@HwM@dblstyle@mathpalette |
| 4783 |
{\@HwM@dblstyle@overarrow@ \leftarrowfill@}% |
| 4784 |
} |
| 4785 |
\newcommand*\overscriptleftrightarrow{% |
| 4786 |
\@HwM@dblstyle@mathpalette |
| 4787 |
{\@HwM@dblstyle@overarrow@ \leftrightarrowfill@}% |
| 4788 |
} |
| 4789 |
\newcommand*\underscriptrightarrow{% |
| 4790 |
\@HwM@dblstyle@mathpalette |
| 4791 |
{\@HwM@dblstyle@underarrow@ \rightarrowfill@}% |
| 4792 |
} |
| 4793 |
\newcommand*\underscriptleftarrow{% |
| 4794 |
\@HwM@dblstyle@mathpalette |
| 4795 |
{\@HwM@dblstyle@underarrow@ \leftarrowfill@}% |
| 4796 |
} |
| 4797 |
\newcommand*\underscriptleftrightarrow{% |
| 4798 |
\@HwM@dblstyle@mathpalette |
| 4799 |
{\@HwM@dblstyle@underarrow@ \leftrightarrowfill@}% |
| 4800 |
} |
| 4801 |
|
| 4802 |
\newcommand*\@HwM@make@arrowfill@like[3]{% |
| 4803 |
% #1 := base symbol, which expects as its own arguments |
| 4804 |
% - #1, a style selector (e.g., "\scriptstyle") |
| 4805 |
% - #2, a font selector (e.g., "\scriptfont") |
| 4806 |
% #2 := centering method, either "\hfil" or "\hidewidth" |
| 4807 |
% #3 := style selector (e.g., "\scriptstyle") |
| 4808 |
#2% |
| 4809 |
\@HwM@auto@font@selector{#1}#3% braces around #1 are for robustness |
| 4810 |
#2% |
| 4811 |
} |
| 4812 |
\newcommand*\@HwM@over@under@bat[2]{% |
| 4813 |
% #1 := "\@HwM@dblstyle@overarrow@" | "\@HwM@dblstyle@underarrow@" |
| 4814 |
% #2 := "\hfil" | "\hidewidth" |
| 4815 |
\@HwM@dblstyle@mathpalette{% |
| 4816 |
#1{% |
| 4817 |
\@HwM@make@arrowfill@like \@HwM@Symmetric@Bat #2% |
| 4818 |
}% |
| 4819 |
}% |
| 4820 |
} |
| 4821 |
\newcommand*\overbat{% |
| 4822 |
\@ifstar{% |
| 4823 |
\@HwM@over@under@bat \@HwM@dblstyle@overarrow@ \hfil |
| 4824 |
}{% |
| 4825 |
\@HwM@over@under@bat \@HwM@dblstyle@overarrow@ \hidewidth |
| 4826 |
}% |
| 4827 |
} |
| 4828 |
\newcommand*\underbat{% |
| 4829 |
\@ifstar{% |
| 4830 |
\@HwM@over@under@bat \@HwM@dblstyle@underarrow@ \hfil |
| 4831 |
}{% |
| 4832 |
\@HwM@over@under@bat \@HwM@dblstyle@underarrow@ \hidewidth |
| 4833 |
}% |
| 4834 |
} |
| 4835 |
|
| 4836 |
\newcommand*\@HwM@ext@arrow@w@cat[5]{% |
| 4837 |
\def\@HwM@tempa{\ext@arrow {#1}{#2}{#3}{#4}{#5}}% |
| 4838 |
\@HwM@ifstar@cat{\@HwM@ext@arrow@w@cat@x}% |
| 4839 |
} |
| 4840 |
\newcommand*\@HwM@ext@arrow@w@cat@x[2][]{% |
| 4841 |
\@HwM@tempa {#1}{#2}% |
| 4842 |
} |
| 4843 |
\newcommand*\xrightwitchonbroom{% |
| 4844 |
\@HwM@ext@arrow@w@cat 9395\@HwM@rightbroomfill@Wwac@ |
| 4845 |
} |
| 4846 |
\newcommand*\xleftwitchonbroom{% |
| 4847 |
\@HwM@ext@arrow@w@cat 3959\@HwM@leftbroomfill@Wwac@ |
| 4848 |
} |
| 4849 |
\newcommand*\xrightwitchonpitchfork{% |
| 4850 |
\@HwM@ext@arrow@w@cat 9395\@HwM@rightpitchfill@Wwac@ |
| 4851 |
} |
| 4852 |
\newcommand*\xleftwitchonpitchfork{% |
| 4853 |
\@HwM@ext@arrow@w@cat 3959\@HwM@leftpitchfill@Wwac@ |
| 4854 |
} |
| 4855 |
\newcommand*\xrightswishingghost[2][]{% |
| 4856 |
\ext@arrow 3{12}5{15}\@HwM@rightghostfill@{#1}{#2}% |
| 4857 |
} |
| 4858 |
\newcommand*\xleftswishingghost[2][]{% |
| 4859 |
\ext@arrow {12}3{15}5\@HwM@leftghostfill@{#1}{#2}% |
| 4860 |
} |
| 4861 |
\newcommand*\xrightflutteringbat[2][]{% |
| 4862 |
\ext@arrow 0055\@HwM@rightbatfill@{#1}{#2}% |
| 4863 |
} |
| 4864 |
\newcommand*\xleftflutteringbat[2][]{% |
| 4865 |
\ext@arrow 0055\@HwM@leftbatfill@{#1}{#2}% |
| 4866 |
} |
| 4867 |
\newcommand*\xrightbroom{% |
| 4868 |
\@HwM@ext@arrow@w@cat 9395\@HwM@rightbroomfill@ |
| 4869 |
} |
| 4870 |
\newcommand*\xleftbroom{% |
| 4871 |
\@HwM@ext@arrow@w@cat 3959\@HwM@leftbroomfill@ |
| 4872 |
} |
| 4873 |
\newcommand*\xrightpitchfork{% |
| 4874 |
\@HwM@ext@arrow@w@cat 9395\@HwM@rightpitchfill@ |
| 4875 |
} |
| 4876 |
\newcommand*\xleftpitchfork{% |
| 4877 |
\@HwM@ext@arrow@w@cat 3959\@HwM@leftpitchfill@ |
| 4878 |
} |
| 4879 |
|
| 4880 |
\newcommand*\@HwM@tighter@joinrel{% |
| 4881 |
\mathrel{\mkern-6.5mu}% |
| 4882 |
} |
| 4883 |
\newcommand*\rightbroom{% |
| 4884 |
\DOTSB |
| 4885 |
\protect\@HwM@rightbroomtail |
| 4886 |
\protect\@HwM@tighter@joinrel |
| 4887 |
\protect\relbar |
| 4888 |
\protect\@HwM@tighter@joinrel |
| 4889 |
\protect\relbar |
| 4890 |
} |
| 4891 |
\newcommand*\leftbroom{% |
| 4892 |
\DOTSB |
| 4893 |
\protect\relbar |
| 4894 |
\protect\@HwM@tighter@joinrel |
| 4895 |
\protect\relbar |
| 4896 |
\protect\@HwM@tighter@joinrel |
| 4897 |
\protect\@HwM@leftbroomtail |
| 4898 |
} |
| 4899 |
\newcommand*\hmrightpitchfork{% |
| 4900 |
\DOTSB |
| 4901 |
\protect\@HwM@rightpforktail |
| 4902 |
\protect\@HwM@tighter@joinrel |
| 4903 |
\protect\relbar |
| 4904 |
\protect\@HwM@tighter@joinrel |
| 4905 |
\protect\relbar |
| 4906 |
} |
| 4907 |
\newcommand*\hmleftpitchfork{% |
| 4908 |
\DOTSB |
| 4909 |
\protect\relbar |
| 4910 |
\protect\@HwM@tighter@joinrel |
| 4911 |
\protect\relbar |
| 4912 |
\protect\@HwM@tighter@joinrel |
| 4913 |
\protect\@HwM@leftpforktail |
| 4914 |
} |
| 4915 |
|
| 4916 |
\let \do = \noexpand |
| 4917 |
% \end{macrocode} |
| 4918 |
% |
| 4919 |
% End of the module for the \packlass{\halloweenmath} package. |
| 4920 |
% \begin{macrocode} |
| 4921 |
%</halloweenmath> |
| 4922 |
% \end{macrocode} |
| 4923 |
% |
| 4924 |
% \section{End of input} |
| 4925 |
% |
| 4926 |
% The usual "\endinput" which prevents the \DS\ program from putting |
| 4927 |
% garbage into the generated files. |
| 4928 |
% \begin{macrocode} |
| 4929 |
\endinput |
| 4930 |
% \end{macrocode} |
| 4931 |
% |
| 4932 |
% \Finale |
| 4933 |
% |