Debian Codegraph @

texmf-dist/source/latex/wasysym/wasysym.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 1994 - 99 by Axel Kielhorn
4 % Copyright 2003, 2019 Axel Kielhorn, Walter Schmidt
5 %
6 % This program can be redistributed and/or modified under the terms
7 % of the LaTeX Project Public License Distributed from CTAN
8 % archives in directory macros/latex/base/lppl.txt; either
9 % version 1.3c of the License, or any later version.
10 %
11 % IMPORTANT NOTICE:
12 %
13 % For error reports in case of UNCHANGED versions contact
14 % [email protected]
15 %
16 % Changes:
17 % 1.0b corrected mathcode for integrals (now 1)
18 % 1.0c Minor corrections
19 % 1.0e Resync with latex2e [1995/06/01]
20 % Changed some ops to \mathbin
21 % 1.0f Corrected \dh and \Dh in T1 encoding as suggested by
22 % Ernst-Guenter Giessmann ([email protected])
23 % 1.0g Reintroduced \hbox in many commands, they work in math-mode
24 % again
25 % 1.0h Included some changes by Donald Arseneau
26 % 1.0i Changed License to LPPL
27 % 1.0j Added uwasyvar.fd for scaleable PS fonts
28 % Added substitution bx -> b
29 % 2.0 See the section "Changes over version~1.x".
30 % The instructions how to set up the font definition files
31 % for scaleable Type1 fonts have been moved to the
32 % installation script, because they are needed at install
33 % time.
34 % \overstrike macro renamed to \wasy@over to avoid potential
35 % clashes
36 % 2.0a Removed \rm from \DH command. It now works in
37 % italic and bold as well, but the italic version looks
38 % somewhat strange. I suggest using a T1 encoded font instead.
39 % 2.3 Updated to support version 2.3 of the WASY fonts.2.4 Updated to support version 2.4 of the WASY fonts.
40 % 2.4 New characters added: \longs (Unicode 017f) and
41 % \roundz a variant of the letter z that got reintroduced to
42 % german writing with the Vereinfachte Ausgangsschrift.
43 % \fi
44 %
45 % \CheckSum{844}
46 %% \CharacterTable
47 %% {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
48 %% 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
49 %% Digits \0\1\2\3\4\5\6\7\8\9
50 %% Exclamation \! Double quote \" Hash (number) \#
51 %% Dollar \$ Percent \% Ampersand \&
52 %% Acute accent \' Left paren \( Right paren \)
53 %% Asterisk \* Plus \+ Comma \,
54 %% Minus \- Point \. Solidus \/
55 %% Colon \: Semicolon \; Less than \<
56 %% Equals \= Greater than \> Question mark \?
57 %% Commercial at \@ Left bracket \[ Backslash \\
58 %% Right bracket \] Circumflex \^ Underscore \_
59 %% Grave accent \` Left brace \{ Vertical bar \|
60 %% Right brace \} Tilde \~}
61 %
62 % \iffalse % this is a METACOMMENT !
63 %
64 %<package>\NeedsTeXFormat{LaTeX2e}
65 %<package>\ProvidesPackage{wasysym}
66 %<fd|fdvar>\ProvidesFile{uwasy.fd}%
67 %<-driver> [2020/01/19 v2.4
68 %<package> Wasy-2 symbol support package]
69 %<fd|fdvar> Wasy-2 symbol font definitions]
70 %
71 %
72 %<*driver>
73 \documentclass{ltxdoc}
74 %\pdfmapfile{+wasy.map}
75 \OnlyDescription
76 \usepackage[integrals]{wasysym}
77 \providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
78 \renewcommand{\quad}{{\hskip1em plus 2em}}
79 \begin{document}
80 \DocInput{wasysym.dtx}
81 \end{document}
82 %</driver>
83 % \fi
84 %
85 % \GetFileInfo{wasysym.sty}
86 % \title{The \texttt{wasysym} macro package for \LaTeXe}
87 % \author{Axel Kielhorn}
88 % \date{version \fileversion{} -- \filedate}
89 % \maketitle
90 %
91 % \setcounter{StandardModuleDepth}{1}
92 %
93 %
94 % \section{Introduction}
95 %
96 % This file defines the package |wasysym| which makes some
97 % additional characters available that come from the \texttt{wasy} fonts.
98 % These fonts were provided by Roland Waldi, Universit\"at Karlsruhe,
99 % Germany.
100 % Notice that the present macro package requires version~2 (1992) of
101 % these fonts. It is not 100 \% compatible to the old
102 % version~1 from 1989. I have provided no compatibility mode
103 % for the old fonts! If some characters come out wrong or are
104 % missing, you have to upgrade.
105 %
106 % Some of the symbols below are already provided in the T1 or TS1
107 % (textcompanion) encodings, and |wasysm| serves only to make them
108 % available also with the traditional (OT1-encoded) CM-Roman fonts.
109 % Other symbols are provided in the AMS symbol fonts, too, and can
110 % be accessed using either the |amssymb| or the |amsfonts| package.
111 %
112 % \section{The symbols}
113 %
114 % \subsection{Various math symbols}
115 % The following commands are valid in math mode only:
116 % \begin{quote}
117 % |\Join|~$\Join$ \quad
118 % |\Box|~$\Box$ \quad
119 % |\Diamond|~$\Diamond$ \quad
120 % |\leadsto|~$\leadsto$ \quad
121 % |\sqsubset|~$\sqsubset$ \quad
122 % |\sqsupset|~$\sqsupset$ \quad
123 % |\lhd|~$\lhd$ \quad
124 % |\unlhd|~$\unlhd$ \quad
125 % |\LHD|~$\LHD$\quad
126 % |\rhd|~$\rhd$ \quad
127 % |\unrhd|~$\unrhd$ \quad
128 % |\RHD|~$\RHD$\quad
129 % |\apprle|~$\apprle$\quad
130 % |\apprge|~$\apprge$\quad
131 % |\wasypropto|~$\wasypropto$\quad
132 % |\invneg|~$\invneg$\quad
133 % |\ocircle|~$\ocircle$\quad
134 % |\logof|~$\logof$\quad
135 % \end{quote}
136 %
137 % \subsection{Integrals}
138 % The |wasy| fonts provide a set of integral sybols, which comprises
139 % multiple integrals and surface integrals, too.
140 % \begin{itemize}
141 % \item
142 % Loading the package
143 % with the option \texttt{[integrals]} makes the following integrals available:
144 % \begin{quote}
145 % |\int|~$\int$\quad
146 % |\iint|~$\iint$\quad
147 % |\iiint|~$\iiint$\quad
148 % |\oint|~$\oint$\quad
149 % |\oiint|~$\oiint$
150 % \end{quote}
151 % Notice that the style of the |\int| and |\oint| is changed, as compared
152 % with standard \LaTeX, and matches the other integral symbols.
153 % This works with or without the |amsmath| package,
154 % and the sequence of loading does not matter.
155 % \item
156 % If you prefer to stay with the integral symbols provided by \LaTeX
157 % (and possibly |amsmath|),
158 % but need other symbols from the \texttt{wasy} fonts,
159 % load the package with the option \texttt{[nointegrals]}. Doing so will
160 % neither alter any existing integral symbols nor add new ones.
161 % \item
162 % Loading the package \emph{without an option} or with the option \texttt{[compat1]}
163 % makes the following commands for integrals available:
164 % \begin{quote}
165 % |\varint|~$\int$\quad
166 % |\iint|~$\iint$\quad
167 % |\iiint|~$\iiint$\quad
168 % |\varoint|~$\oint$\quad
169 % |\oiint|~$\oiint$
170 % \end{quote}
171 % This is compatible with the behavior of |wasysym| version~1.x,
172 % but the package will not cooperate well with |amsmath| then.
173 % \end{itemize}
174 %
175 % \subsection{General symbols}
176 %
177 % \begin{quote}
178 % |\male|~\male \quad
179 % |\female|~\female \quad
180 % |\cent|~\cent \quad
181 % |\wasyeuro|~\wasyeuro \quad
182 % |\euro|~\euro\ (Unless option |noeuro| is specified) \quad
183 % |\currency|~\currency \quad
184 % |\phone|~\phone \quad
185 % |\recorder|~\recorder \quad
186 % |\clock|~\clock \quad
187 % |\lightning|~\lightning \quad
188 % |\diameter|~\diameter \quad
189 % |\invdiameter|~\invdiameter \quad
190 % |\varangle|~\varangle \quad
191 % |\wasylozenge|~\wasylozenge \quad
192 % |\kreuz|~\kreuz \quad
193 % |\smiley|~\smiley \quad
194 % |\frownie|~\frownie \quad
195 % |\blacksmiley|~\blacksmiley \quad
196 % |\sun|~\sun \quad
197 % |\checked|~\checked \quad
198 % |\bell|~\bell \quad
199 % |\ataribox|~\ataribox \quad
200 % |\permil|~\permil \quad
201 % |\brokenvert|~\brokenvert \quad
202 % |\wasytherefore|~\wasytherefore \quad
203 % |\Bowtie|~\Bowtie \quad
204 % |\agemO|~\agemO \quad
205 % |\wasyparagraph|~\wasyparagraph \quad
206 % |\Paragraph|~\Paragraph \quad
207 % |\wasycmd|~\wasycmd \quad
208 % |\applecmd|~\applecmd
209 % \end{quote}
210 %
211 % Note the variation betweeen |\Paragraph| \Paragraph\ and \S\ |\S|.
212 %
213 % \subsection{Electrical and physical symbols}
214 %
215 % \begin{quote}
216 % |\AC|~\AC \quad
217 % |\HF|~\HF \quad
218 % |\VHF|~\VHF \quad
219 % |\photon|~\photon \quad
220 % |\gluon|~\gluon
221 % \end{quote}
222 %
223 % \subsection{Polygons and stars}
224 %
225 % \begin{quote}
226 % |\Square|~\Square \quad
227 % |\XBox|~\XBox \quad
228 % |\CheckedBox|~\CheckedBox \quad
229 % |\hexagon|~\hexagon \quad
230 % |\varhexagon|~\varhexagon \quad
231 % |\pentagon|~\pentagon \quad
232 % |\octagon|~\octagon \quad
233 % |\hexstar|~\hexstar \quad
234 % |\varhexstar|~\varhexstar \quad
235 % |\davidsstar|~\davidsstar
236 % \end{quote}
237 %
238 % \subsection{Music notes}
239 %
240 % \begin{quote}
241 % |\eighthnote|~\eighthnote \quad
242 % |\quarternote|~\quarternote \quad
243 % |\halfnote|~\halfnote \quad
244 % |\fullnote|~\fullnote \quad
245 % |\twonotes|~\twonotes
246 % \end{quote}
247 %
248 % \subsection{Various circles}
249 %
250 % \begin{quote}
251 % |\Circle|~\Circle \quad
252 % |\CIRCLE|~\CIRCLE \quad
253 % |\Leftcircle|~\Leftcircle \quad
254 % |\LEFTCIRCLE|~\LEFTCIRCLE \quad
255 % |\Rightcircle|~\Rightcircle \quad
256 % |\RIGHTCIRCLE|~\RIGHTCIRCLE \quad
257 % |\LEFTcircle|~\LEFTcircle \quad
258 % |\RIGHTcircle|~\RIGHTcircle \quad
259 % |\leftturn|~\leftturn \quad
260 % |\rightturn|~\rightturn \quad
261 % \end{quote}
262 %
263 % \subsection{Arrows}
264 %
265 % \begin{quote}
266 % |\pointer|~\pointer \quad
267 % |\RIGHTarrow|~\RIGHTarrow \quad
268 % |\LEFTarrow|~\LEFTarrow \quad
269 % |\UParrow|~\UParrow \quad
270 % |\DOWNarrow|~\DOWNarrow \quad
271 % \end{quote}
272 %
273 % \subsection{Phonetic symbols}
274 %
275 % \begin{quote}
276 % |\dh|~{\fontencoding{OT1}\fontfamily{cmr}\selectfont\dh} \quad
277 % |\DH|~{\fontencoding{OT1}\fontfamily{cmr}\selectfont\DH} \quad
278 % |\thorn|~\thorn \quad
279 % |\Thorn|~\Thorn \quad
280 % |\openo|~\openo \quad
281 % |\inve|~\inve
282 % \end{quote}
283 %
284 % T1-encoded fonts normally include Eth characters of their own.
285 % The |wasy| package tries to provide them in the OT1 encoding, too.
286 % by ``faking'' them.
287 % This should work with the Computer Modern fonts, but may fail with others.
288 %
289 % The characters produced by |\thorn|, |\Thorn|, |\openo| and |\inve|
290 % match only the CM-Roman typeface
291 % and do not change with the surrounding font family or shape.
292 %
293 % \subsection{Astronomical symbols}
294 %
295 % \begin{quote}
296 % |\vernal|~\vernal \quad
297 % |\ascnode|~\ascnode \quad
298 % |\descnode|~\descnode \quad
299 % |\fullmoon|~\fullmoon \quad
300 % |\newmoon|~\newmoon \quad
301 % |\leftmoon|~\leftmoon \quad
302 % |\rightmoon|~\rightmoon \quad
303 % |\astrosun|~\astrosun \quad
304 % |\mercury|~\mercury \quad
305 % |\venus|~\venus \quad
306 % |\earth|~\earth \quad
307 % |\mars|~\mars \quad
308 % |\jupiter|~\jupiter \quad
309 % |\saturn|~\saturn \quad
310 % |\uranus|~\uranus \quad
311 % |\neptune|~\neptune \quad
312 % |\pluto|~\pluto
313 % \end{quote}
314 %
315 % \subsection{Astrological symbols and the zodiacal symbols}
316 %
317 % \begin{quote}
318 % |\aries|~\aries \quad
319 % |\taurus|~\taurus \quad
320 % |\gemini|~\gemini \quad
321 % |\cancer|~\cancer \quad
322 % |\leo|~\leo \quad
323 % |\virgo|~\virgo \quad
324 % |\libra|~\libra \quad
325 % |\scorpio|~\scorpio \quad
326 % |\sagittarius|~\sagittarius \quad
327 % |\capricornus|~\capricornus \quad
328 % |\aquarius|~\aquarius \quad
329 % |\pisces|~\pisces \quad
330 % |\conjunction|~\conjunction \quad
331 % |\opposition|~\opposition
332 % \end{quote}
333 %
334 % \subsection{APL symbols}
335 %
336 % \begin{quote}
337 % |\APLstar|~\APLstar \quad
338 % |\APLlog|~\APLlog \quad
339 % |\APLbox|~\APLbox \quad
340 % |\APLup|~\APLup \quad
341 % |\APLdown|~\APLdown \quad
342 % |\APLinput|~\APLinput \quad
343 % |\APLcomment|~\APLcomment \quad
344 % |\APLinv|~\APLinv \quad
345 % |\APLuparrowbox|~\APLuparrowbox \quad
346 % |\APLdownarrowbox|~\APLdownarrowbox \quad
347 % |\APLleftarrowbox|~\APLleftarrowbox \quad
348 % |\APLrightarrowbox|~\APLrightarrowbox \quad
349 % |\notbackslash|~\notbackslash \quad
350 % |\notslash|~\notslash \quad
351 % |\APLnot|~\APLnot\ \quad
352 % |\APLvert|~\APLvert\ \quad
353 % |\APLcirc|~\APLcirc\ \quad
354 % |\APLminus|~\APLminus
355 %
356 % \end{quote}
357 %
358 % \section{Changes over version~1.x}
359 % \begin{itemize}
360 % \item
361 % The |\Dh| command has finally been abolished.
362 % \item
363 % The macros
364 % |\LEFTcircle|, |\RIGHTcircle|, |\CheckedBox| and |\APLinv|
365 % start with |\leavevmode| now, so that they work properly at the
366 % beginning of a paragraph.
367 % \item
368 % Use of the \texttt{wasy}-style integral symbols can be controlled
369 % via the options \texttt{[compat1]}, \texttt{[integrals]} and \texttt{[nointegrals]},
370 % with \texttt{[compat1]} being the default.
371 % \item
372 % When loaded with the \texttt{[integrals]} or \texttt{[nointegrals]} option,
373 % the package will not clash with |amsmath|.
374 % \end{itemize}
375 %
376 % \section{Changes in version~2.3}
377 % Added support for the WASY fonts Version 2.3.
378 %
379 % This Version adds three new characters:
380 %
381 % |\wasyparagraph|~\wasyparagraph \quad |\wasyeuro|~\wasyeuro \quad
382 % |\wasycmd|~\wasycmd.
383 %
384 % These charachters are available with shorter names as well.
385 % If you want to keep the |\euro| command from a different package,
386 % use the |noeuro| option.
387 %
388 % |\Paragraph|~\Paragraph \quad |\euro|~\euro \quad
389 % |\applecmd|~\applecmd.
390 %
391 % WASY 2.0 included a bold font in 10~pt. This font is scaled for the other
392 % sizes. It was accessible with the usual \LaTeX-commands:
393 % |\textbf{\currency}| printed a bold \textbf{\currency} symbol. This was
394 % apperently never documented.
395 %
396 % WASY 2.3 includes a slanted font in 10~pt. Again this font is available
397 % through the usual \LaTeX-commands. |\textsl{\currency}| and
398 % |\textit{\currency}| will print the same character \textsl{\currency}.
399 %
400 % Here are all three verions:
401 % \currency\ \textbf{\currency} \textsl{\currency}.
402 %
403 % \section{Changes in version~2.4}
404 % Added support for the WASY fonts Version 2.4.
405 %
406 % This Version adds two new characters:
407 %
408 % |\longs|~\longs \quad |\roundz|~\roundz.
409 %
410 % While the \longs\ is quite common, even for non german texts,
411 % the \roundz\ is a rare hi\longs toric form. It was reintroduce to Germans
412 % whith the ``Vereinfachte Ausgans\longs chrift'', a cur\longs ive font u\longs ed to teach
413 % writing in elementary \longs chool.
414 %
415 % \StopEventually{}
416 %
417 % \section{The \dst{} modules}
418 %
419 % The following modules are used in the implementation to direct
420 % \dst{} in generating the external files:
421 % \begin{center}
422 % \begin{tabular}{ll}
423 % driver & produce a documentation driver file \\
424 % package & produce a package file \\
425 % fd & produce a font definition file \\
426 % fdvar & produce a \texttt{.fd} file for use with scalable fonts
427 % \end{tabular}
428 % \end{center}
429 %
430 % \section{The Implementation}
431 % \subsection{The macro package}
432 %
433 % With the version 1.x of |wasysym|, the definitions of the multiple
434 % integrals would depend on whether |amsmath| was loaded additionally, and whether it
435 % was loaded before or after |wasysym|. Redefinition of \emph{all} integrals
436 % so as to exhibit the same style was only possible through the (almost) undocumented
437 % macros |\newint| and |\newamsint|. Similar problems would also arise
438 % with the Fourier math fonts.
439 % This behavior was hard to understand and somewhat unfortunate\dots
440 %
441 % Three options are now introduced to control the (re)definiton of the integral macros
442 % and a ``version~1 compatibility mode'':
443 % \begin{macrocode}
444 %<*package>
445 \newif\ifwasy@integrals
446 \newif\ifwasy@compatibility
447 \newif\ifwasy@euro \wasy@eurotrue
448 \DeclareOption{compat1}{%
449 \wasy@compatibilitytrue\wasy@integralsfalse}%
450 \DeclareOption{integrals}{%
451 \wasy@compatibilityfalse\wasy@integralstrue}%
452 \DeclareOption{nointegrals}{%
453 \wasy@compatibilityfalse\wasy@integralsfalse}%
454 \DeclareOption{noeuro}{%
455 \wasy@eurofalse}%
456 \ExecuteOptions{compat1}
457 \ProcessOptions\relax
458 % \end{macrocode}
459 % \begin{itemize}
460 % \item
461 % By default or with the option \texttt{[compat1]}, version~2 will behave just as version~1,
462 % i.e. the macros |\varint|, |\iint|, |\iiint|, |\varoint| and |\oiint| are defined at load time.
463 % \item
464 % With the option \texttt{[nointegrals]}, the meaning of any ``standard''
465 % or AMS integral macros remains unchanged, and the additional \texttt{wasy}
466 % integrals cannot be used.
467 % Thus, one can use the other \texttt{wasy} symbols without altering the
468 % integral signs.
469 % \item
470 % With the option \texttt{[integrals]}, the standard
471 % and (if applicable) AMS integral macros are redefined to match the style of the
472 % additional \texttt{wasy} integrals. The definitions are deferred until
473 % |\begin{document}|, so that other package cannot interfere.
474 % The redefined integral macros will cooperate with the |amsmath| package,
475 % if it is loaded additionally.
476 % \item
477 % The undocumented commands |\newint| and |\newamsint|, too, may turn on
478 % the redefinition of the integral commands.
479 % \end{itemize}
480 %
481 % The following two macros serve to actually (re)define the integrals.
482 % The first one is to be used if the |amsmath| package is not loaded:
483 % \begin{macrocode}
484 \def\wasy@setup{%
485 \let\int\wasy@int
486 \let\iint\wasy@iint
487 \let\iiint\wasy@iiint
488 \let\oint\wasy@oint
489 \let\oiint\wasy@oiint
490 }
491 % \end{macrocode}
492 % With |amsmath|, it's a bit more complicated:
493 % \begin{macrocode}
494 \def\wasy@amssetup{%
495 \let\intop\wasy@int
496 \let\iintop\wasy@iint
497 \let\iiintop\wasy@iiint
498 \let\ointop\wasy@oint
499 \let\oiintop\wasy@oiint
500 \def\int{\DOTSI\intop\ilimits@}%
501 \def\iint{\DOTSI\iintop\ilimits@}%
502 \def\iiint{\DOTSI\iiintop\ilimits@}%
503 \def\oint{\DOTSI\ointop\ilimits@}%
504 \def\oiint{\DOTSI\oiintop\ilimits@}%
505 \def\intkern@{\mkern-8mu}
506 }
507 % \end{macrocode}
508 %
509 % The old undocumented commands |\newint| and |\newamsint| are changed,
510 % so as to effect the same as the |integrals| option and issue a warning
511 % message:
512 % \begin{macrocode}
513 \newcommand{\newint}{%
514 \PackageWarning{wasysym}{%
515 The command \protect\newint\space is obsolete.
516 \MessageBreak
517 Load the package with the option [integrals] instead}
518 \wasy@integralstrue}
519 \newcommand{\newamsint}{%
520 \PackageWarning{wasysym}{%
521 The command \protect\newamsint\space is obsolete.
522 \MessageBreak
523 Load the package with the option [integrals] instead.}
524 \wasy@integralstrue}
525 % \end{macrocode}
526 %
527 %
528 % To access the wasy symbols in text mode I have defined them
529 % as a new fontfamily. Since I only take single characters but
530 % don't want to write long text this is not an elegant approach.
531 % But it works and the symbols scale according to textsize, which
532 % is all I promised.
533 % \begin{macrocode}
534 \def\wasyfamily{\fontencoding{U}\fontfamily{wasy}\selectfont}
535 \DeclareTextFontCommand{\textwasy}{\wasyfamily}
536 % \end{macrocode}
537 %
538 % We declare a \texttt{wasy} math symbol font, too:
539 % \begin{macrocode}
540 \DeclareSymbolFont{wasy}{U}{wasy}{m}{n}
541 \SetSymbolFont{wasy}{bold}{U}{wasy}{b}{n}
542 % \end{macrocode}
543 %
544 % We declare a new command to generate overlayed symbols:
545 % \begin{macrocode}
546 \def\wasy@over#1#2{{\setbox0\hbox{$#2$}\hbox to \wd0{\hss
547 $#1$\hss}\kern-\wd0\box0}}
548 % \end{macrocode}
549 %
550 % Defining some special symbols:
551 % \begin{macrocode}
552 \def\male {\mbox{\wasyfamily\char26}}
553 \def\female {\mbox{\wasyfamily\char25}}
554 \def\currency {{\wasyfamily\char27}}
555 \def\phone {{\wasyfamily\char7}}
556 \def\recorder {{\wasyfamily\char6}}
557 \def\clock {{\wasyfamily\char28}}
558 \def\lightning {{\wasyfamily\char18}}
559 \def\pointer {{\wasyfamily\char9}}
560 \def\RIGHTarrow {{\wasyfamily\char17}}
561 \def\LEFTarrow {{\wasyfamily\char16}}
562 \def\UParrow {{\wasyfamily\char75}}
563 \def\DOWNarrow {{\wasyfamily\char76}}
564 \def\AC {\mbox{\kern0.5pt\wasyfamily\char58\kern0.5pt}}
565 \def\HF {\leavevmode
566 \lower0.9pt\hbox to 0pt{\kern0.5pt\wasyfamily\char58\hss}%
567 \raise0.9pt\hbox{\kern0.5pt\wasyfamily\char58\kern0.5pt}}
568 \def\VHF {\mbox{\wasyfamily\char64}}
569 \def\Square {\mbox{$\Box$}}
570 \def\CheckedBox {\leavevmode\hbox to 0pt{\wasyfamily\char50\hss}%
571 \hbox{\wasyfamily\char8}}
572 \def\XBox {\mbox{\wasyfamily\char52}}
573 \def\hexagon {\mbox{\wasyfamily\char55}}
574 \def\pentagon {\mbox{\wasyfamily\char68}}
575 \def\octagon {\mbox{\wasyfamily\char56}}
576 \def\varhexagon {\mbox{\wasyfamily\char57}}
577 \def\hexstar {\mbox{\wasyfamily\char65}}
578 \def\varhexstar {\mbox{\wasyfamily\char66}}
579 \def\davidsstar {\mbox{\wasyfamily\char67}}
580 \def\diameter {\mbox{\wasyfamily\char31}}
581 \def\invdiameter{\mbox{\wasyfamily\char21}}
582 \def\varangle {\mbox{\wasyfamily\char30}}
583 \def\wasylozenge{\mbox{\wasyfamily\char53}}
584 \def\kreuz {\mbox{\wasyfamily\char54}}
585 \def\smiley {\mbox{\wasyfamily\char44}}
586 \def\frownie {\mbox{\wasyfamily\char47}}
587 \def\blacksmiley{\mbox{\wasyfamily\char45}}
588 \def\sun {\mbox{\wasyfamily\char46}}
589 \def\checked {\mbox{\wasyfamily\char8}}
590 \def\bell {\mbox{\wasyfamily\char10}}
591 \def\eighthnote {\mbox{\wasyfamily\char11}}
592 \def\quarternote{\mbox{\wasyfamily\char12}}
593 \def\halfnote {\mbox{\wasyfamily\char13}}
594 \def\fullnote {\mbox{\wasyfamily\char14}}
595 \def\twonotes {\mbox{\wasyfamily\char15}}
596 \def\brokenvert {\mbox{\wasyfamily\char124}}
597 \def\ataribox {\mbox{\wasyfamily\char109}}
598 \def\wasytherefore{\mbox{\wasyfamily\char5}}
599 \def\Circle {\mbox{\wasyfamily\char35}}
600 \def\CIRCLE {\mbox{\wasyfamily\char32}}
601 \def\Leftcircle {\mbox{\wasyfamily\char73}}
602 \def\LEFTCIRCLE {\mbox{\wasyfamily\char71}}
603 \def\Rightcircle{\mbox{\wasyfamily\char74}}
604 \def\RIGHTCIRCLE{\mbox{\wasyfamily\char72}}
605 \def\LEFTcircle {\leavevmode%
606 \hbox to 0pt{\wasyfamily\char71\hss}%
607 \hbox{\wasyfamily\char35}}
608 \def\RIGHTcircle{\leavevmode%
609 \hbox to 0pt{\wasyfamily\char72\hss}%
610 \hbox{\wasyfamily\char35}}
611 % \end{macrocode}
612 %
613 % Astronomy:
614 % \begin{macrocode}
615 \def\vernal {\mbox{\wasyfamily\char23}}
616 \def\ascnode {\mbox{\wasyfamily\char19}}
617 \def\descnode {\mbox{\wasyfamily\char20}}
618 \let\fullmoon \Circle
619 \let\newmoon \CIRCLE
620 \def\leftmoon {\mbox{\wasyfamily\char36}}
621 \def\rightmoon {\mbox{\wasyfamily\char37}}
622 \def\astrosun {\mbox{$\odot$}}
623 \def\mercury {\mbox{\wasyfamily\char39}}
624 \def\venus {\leavevmode\raise0.2ex\hbox{\wasyfamily\char25}}
625 \def\earth {\leavevmode\lower0.3ex\hbox{\wasyfamily\char38}}
626 \def\mars {\leavevmode\lower0.2ex\hbox{\wasyfamily\char26}}
627 \def\jupiter {\mbox{\wasyfamily\char88}}
628 \def\saturn {\mbox{\wasyfamily\char89}}
629 \def\uranus {\mbox{\wasyfamily\char90}}
630 \def\neptune {\mbox{\wasyfamily\char91}}
631 \def\pluto {\mbox{\wasyfamily\char92}}
632 % \end{macrocode}
633 %
634 % The zodiac:
635 % \begin{macrocode}
636 \let\aries \vernal
637 \def\taurus {\mbox{\wasyfamily\char93}}
638 \def\gemini {\mbox{\wasyfamily\char94}}
639 \def\cancer {\mbox{\wasyfamily\char95}}
640 \let\leo \ascnode
641 \def\virgo {\mbox{\wasyfamily\char96}}
642 \def\libra {\mbox{\wasyfamily\char97}}
643 \def\scorpio {\mbox{\wasyfamily\char98}}
644 \def\sagittarius{\mbox{\wasyfamily\char99}}
645 \def\capricornus{\mbox{\wasyfamily\char100}}
646 \def\aquarius {\mbox{\wasyfamily\char101}}
647 \def\pisces {\mbox{\wasyfamily\char102}}
648 \def\conjunction{{\wasyfamily\char86}}
649 \def\opposition {{\wasyfamily\char87}}
650 % \end{macrocode}
651 %
652 % APL characters:
653 % \begin{macrocode}
654 \def\APLstar {\mbox{\wasyfamily\char69}}
655 \def\APLlog {\mbox{\wasyfamily\char22}}
656 \def\APLbox {\mbox{\wasyfamily\char126}}
657 \def\APLup {\mbox{\wasyfamily\char0}}
658 \def\APLdown {\mbox{\wasyfamily\char70}}
659 \def\APLinput {\mbox{\wasyfamily\char125}}
660 \def\APLcomment {\mbox{\wasyfamily\char127}}
661 \def\APLinv {{\leavevmode\hbox to 0pt{$\div$\hss}\APLbox}}
662 \def\APLuparrowbox{\mbox{\wasyfamily\char110}}
663 \def\APLdownarrowbox{\mbox{\wasyfamily\char111}}
664 \def\APLleftarrowbox{\mbox{\wasyfamily\char112}}
665 \def\APLrightarrowbox{\mbox{\wasyfamily\char113}}
666 \def\notbackslash{\wasy@over{\backslash}{-}}
667 \def\notslash {\wasy@over{/}{-}}
668 \def\APLminus {\leavevmode\raise0.7ex\hbox{$-$}}
669 \def\APLnot#1{\wasy@over{\sim}{#1}}
670 \def\APLcirc#1{\wasy@over{\circ}{#1}}
671 \def\APLvert#1{\wasy@over{\vert}{#1}}
672 % \end{macrocode}
673 %
674 % Math symbols:
675 % \begin{macrocode}
676 \def\Bowtie {\mbox{\wasyfamily\char49}}
677 \def\leftturn {\mbox{\wasyfamily\char34}}
678 \def\rightturn {\mbox{\wasyfamily\char33}}
679 % \end{macrocode}
680 %
681 % Particle physics:
682 % \begin{macrocode}
683 \def\photon {\mbox{\wasyfamily\char58\char58\char58\char58}}
684 \def\gluon {\mbox{\wasyfamily\char81\char80\char80\char80%
685 \char80\char80\char80\char82}}
686 % \end{macrocode}
687 %
688 % Miscellaneous:
689 % \begin{macrocode}
690 \def\cent {\mbox{\wasyfamily\char103}}
691 \def\permil {\mbox{\wasyfamily\char104}}
692 \def\agemO {{\wasyfamily\char48}}
693 % \end{macrocode}
694 %
695 % Phonetic:
696 % \begin{macrocode}
697 \def\thorn {{\wasyfamily\char105}}
698 \def\Thorn {{\wasyfamily\char106}}
699 \DeclareTextCommand{\dh}{OT1}{{\wasyfamily\char107}}
700 \DeclareTextCommand{\DH}{OT1}{\leavevmode{\setbox0\hbox{D}%
701 \hbox to\wd0{\kern 0.04em\char32\hss D}}}
702 \def\openo {{\wasyfamily\char108}}
703 \def\inve {{\wasyfamily\char85}}
704 % \end{macrocode}
705 %
706 %
707 % Because the lasy symbols are made an error in the format we have
708 % to undefine them before we can set them anew with
709 % |\DeclareMathSymbol|. Made the mathgroups more readable and
710 % changed |\lhd| and friends to be binary operators as in
711 % latexsym.
712 % \begin{macrocode}
713 \let\mho\undefined
714 \let\sqsupset\undefined \let\Join\undefined
715 \let\lhd\undefined \let\Box\undefined
716 \let\unlhd\undefined \let\Diamond\undefined
717 \let\rhd\undefined \let\leadsto\undefined
718 \let\unrhd\undefined \let\sqsubset\undefined
719 \DeclareMathSymbol\mho {\mathord}{wasy}{"30}
720 \DeclareMathSymbol\Join {\mathrel}{wasy}{"31}
721 \DeclareMathSymbol\Box {\mathord}{wasy}{"32}
722 \DeclareMathSymbol\Diamond {\mathord}{wasy}{"33}
723 \DeclareMathSymbol\leadsto {\mathrel}{wasy}{"3B}
724 \DeclareMathSymbol\sqsubset{\mathrel}{wasy}{"3C}
725 \DeclareMathSymbol\sqsupset{\mathrel}{wasy}{"3D}
726 \DeclareMathSymbol\lhd {\mathbin}{wasy}{"01}
727 \DeclareMathSymbol\unlhd {\mathbin}{wasy}{"02}
728 \DeclareMathSymbol\LHD {\mathbin}{wasy}{"10}
729 \DeclareMathSymbol\rhd {\mathbin}{wasy}{"03}
730 \DeclareMathSymbol\unrhd {\mathbin}{wasy}{"04}
731 \DeclareMathSymbol\RHD {\mathbin}{wasy}{"11}
732 \DeclareMathSymbol\apprle {\mathrel}{wasy}{"3E}
733 \DeclareMathSymbol\apprge {\mathrel}{wasy}{"3F}
734 \DeclareMathSymbol\wasypropto {\mathrel}{wasy}{"1D}
735 \DeclareMathSymbol\invneg {\mathrel}{wasy}{"18}
736 \DeclareMathSymbol\ocircle {\mathbin}{wasy}{"23}
737 \DeclareMathSymbol\logof {\mathrel}{wasy}{"16}
738 % \end{macrocode}
739 %
740 % Initially the integrals are defined with ``harmless''
741 % names. i.e., no existing macros are overwritten:
742 % \begin{macrocode}
743 \DeclareMathSymbol\wasy@int {\mathop}{wasy}{"72}
744 \DeclareMathSymbol\wasy@iint {\mathop}{wasy}{"73}
745 \DeclareMathSymbol\wasy@iiint{\mathop}{wasy}{"74}
746 \DeclareMathSymbol\wasy@oint {\mathop}{wasy}{"75}
747 \DeclareMathSymbol\wasy@oiint{\mathop}{wasy}{"76}
748 % \end{macrocode}
749 %
750 % Now let's actually set up the integrals.
751 % In ``compatibility mode'' they are defined immediately at load time:
752 % \begin{macrocode}
753 \ifwasy@compatibility
754 \let\varint\wasy@int
755 \let\iint\wasy@iint
756 \let\iiint\wasy@iiint
757 \let\varoint\wasy@oint
758 \let\oiint\wasy@oiint
759 \fi
760 % \end{macrocode}
761 % If the option \texttt{[integrals]} was selected, the related definitions
762 % are executed only at |\begin{document}|. Notice that the commands
763 % |\newint| or |\newamsint| may appear in the preamble and turn on the
764 % the redefinition of the integral macros.
765 % \begin{macrocode}
766 \AtBeginDocument{%
767 \ifwasy@integrals
768 \@ifpackageloaded{amsmath}{\wasy@amssetup}{\wasy@setup}
769 \fi
770 }
771 % \end{macrocode}
772 %
773 % \begin{macrocode}
774 \def \wasyparagraph {{\wasyfamily\char"4D}}
775 \def \wasyeuro {{\wasyfamily\char"4E}}
776 \def \wasycmd {{\wasyfamily\char"53}}
777 \ifwasy@euro
778 \let \euro\wasyeuro
779 \fi
780 \let \Paragraph\wasyparagraph
781 \let \applecmd\wasycmd
782 % \end{macrocode}
783 %
784 % \begin{macrocode}
785 \def \longs {{\wasyfamily\char"54}}
786 \def \roundz {{\wasyfamily\char"4F}}
787 %</package>
788 % \end{macrocode}
789 % \subsection{The font definition files}
790 %
791 % The declarations,
792 % that have to go into the corresponding |.fd| files:
793 % \begin{macrocode}
794 %<*fd>
795 \DeclareFontFamily{U}{wasy}{}
796 \DeclareFontShape{U}{wasy}{m}{n}{%
797 <5>
798 <6>
799 <7>
800 <8>
801 <9> gen * wasy
802 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> wasy10 }{}
803 \DeclareFontShape{U}{wasy}{b}{n}{ <-10> sub * wasy/m/n
804 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> wasyb10 }{}
805 %</fd>
806 %<*fdvar>
807 \DeclareFontFamily{U}{wasy}{}
808 \DeclareFontShape{U}{wasy}{m}{n}{%
809 <5-6> wasy5
810 <6-7> wasy6
811 <7-8> wasy7
812 <8-9> wasy8
813 <9-10> wasy9
814 <10-> wasy10}{}
815 \DeclareFontShape{U}{wasy}{b}{n}{ <-10> sub * wasy/m/n
816 <10-> wasyb10 }{}
817 %</fdvar>
818 %<*fdvar|fd>
819 \DeclareFontShape{U}{wasy}{bx}{n}{ <-> sub * wasy/b/n}{}
820 \DeclareFontShape{U}{wasy}{m}{sl}{ <-> wasysl10 }{}
821 \DeclareFontShape{U}{wasy}{m}{it}{ <-> sub * wasy/m/sl }{}
822 %</fdvar|fd>
823 % \end{macrocode}
824 %
825 % The next line goes into all files and in addition prevents \dst{}
826 % from adding any further code from the main source file (such as a
827 % character table).
828 % \begin{macrocode}
829 \endinput
830 % \end{macrocode}
831 %
832 % \DeleteShortVerb{\|}
833 % \Finale