Debian Codegraph @

texmf-dist/source/latex/amsfonts/euscript.dtx

raw
1 % \def\filename{euscript.dtx}
2 % \def\fileversion{3.00}
3 % \def\filedate{2009/06/22}
4 %
5 % \iffalse meta-comment
6 %
7 % American Mathematical Society
8 % Technical Support
9 % Publications Technical Group
10 % 201 Charles Street
11 % Providence, RI 02904
12 % USA
13 % tel: (401) 455-4080
14 % (800) 321-4267 (USA and Canada only)
15 % fax: (401) 331-3842
16 % email: [email protected]
17 %
18 % Copyright 2001, 2009 American Mathematical Society.
19 %
20 % Unlimited copying and redistribution of this file are permitted as
21 % long as this file is not modified. Modifications, and distribution
22 % of modified versions, are permitted, but only if the resulting file
23 % is renamed.
24 %
25 % \fi
26 %
27 %\iffalse
28 %<*driver>
29 \documentclass{amsdtx}
30 \usepackage{eucal}
31 \begin{document}
32 \title{The \pkg{eucal} and \pkg{euscript} packages}
33 \author{Frank Mittelbach\and Rainer Sch\"opf\and Michael Downes\\
34 Revised by David M. Jones}
35 \date{Version \fileversion, \filedate}
36 \DocInput{euscript.dtx}
37 \end{document}
38 %</driver>
39 %\fi
40 %
41 % \maketitle
42 %
43 % \section{Introduction}
44 %
45 % This package was written originally by Frank Mittelbach and Rainer
46 % Sch\"opf; later it was moved into the AMSFonts distribution
47 % with only minor modifications. It can be used with \LaTeXe{} with
48 % no dependency on the \pkg{amsmath} package.
49 %
50 % This file sets up some font shape definitions to use the Euler
51 % script symbols in math mode. These fonts are part of the AMSFonts
52 % collection which can be found on many \TeX{} servers. It is also
53 % directly available from the AMS and from \TeX{} user groups.
54 %
55 % \DescribeMacro\EuScript
56 % The expected normal use of the Euler Script alphabet is as a
57 % substitute for the Computer Modern calligraphic alphabet found in
58 % \fn{cmsy}. Therefore we change the meaning of \cn{mathcal}.
59 % \begin{verbatim}
60 % \[ \mathcal{A} = \EuScript{A} \neq \CMcal{A} \]
61 %\end{verbatim}
62 % will produce
63 % \[ \mathcal{A} = \EuScript{A} \neq \CMcal{A} \]
64 %
65 % Here is a complete table of the beautiful letters drawn by Hermann
66 % Zapf:
67 % \begin{displaymath}
68 % \newcommand{\E}[1]{\EuScript{#1} &}
69 % \begin{array}{*{10}c}
70 % \E{A} \E{B} \E{C} \E{D} \E{E} \E{F} \E{G} \E{H} \E{I} \\
71 % \E{J} \E{K} \E{L} \E{M} \E{N} \E{O} \E{P} \E{Q} \E{R} \\
72 % \E{S} \E{T} \E{U} \E{V} \E{W} \E{X} \E{Y} \E{Z}
73 % \end{array}
74 % \end{displaymath}
75 %
76 % \StopEventually{}
77 %
78 % \section{The Implementation}
79 %
80 % Package identification.
81 % \begin{macrocode}
82 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
83 [1994/12/01]% LaTeX date must be December 1994 or later
84 %<euscript>\ProvidesPackage{euscript}[2009/06/22 v3.00 Euler Script fonts]
85 %<eucal>\ProvidesPackage{eucal}[2009/06/22 v3.00 Euler Script fonts]
86 % \end{macrocode}
87 %
88 % We have three things to do: 1) identify the current package,
89 % 2) enlarge the font shape tables and 3) define the \meta{math
90 % alphabet identifier}.
91 %
92 % \begin{macro}{\EuScript}
93 % Now we define the \meta{math alphabet identifier} \cn{EuScript}
94 % both for the normal and the bold math version
95 % \begin{macrocode}
96 \DeclareMathAlphabet\EuScript{U}{eus}{m}{n}
97 \SetMathAlphabet\EuScript{bold}{U}{eus}{b}{n}
98 % \end{macrocode}
99 % \end{macro}
100 %
101 % For flexibility and backward compatibility with versions 2.1c and
102 % earlier, we save the old meaning of \cn{mathcal} as \cn{CMcal}, and
103 % use \cn{EuScript} as the initial name of the new math alphabet.
104 % Notice that we don't do any checking to make sure the previous
105 % version of \cn{mathcal} actually refers to \fn{cmsy}.
106 % \begin{macrocode}
107 \newcommand{\CMcal}{}
108 \let\CMcal=\mathcal
109 % \end{macrocode}
110 %
111 % See the \pkg{amsfonts} package documentation for a discussion of
112 % the obsolescence of the \opt{psamfonts} option.
113 % \begin{macrocode}
114 \DeclareOption{psamsfonts}{}
115 % \end{macrocode}
116 %
117 % Here is a table describing the action of the \pkg{eucal},
118 % \pkg{euscript}, and \pkg{eufrak} packages.
119 % \begin{center}
120 % \begin{tabular}{lll}
121 % Package& Option& Commands provided\\
122 % \hline
123 % \pkg{eucal}& none& \cn{mathcal}\\
124 % \pkg{eucal}& \opt{[mathcal]}& \cn{mathcal}\\
125 % \pkg{eucal}& \opt{[mathscr]}& \cn{mathscr} (\cn{mathcal} unchanged)\\
126 % \pkg{euscript}& none& \cn{EuScript} (obsolete)\\
127 % \pkg{euscript}& \opt{[mathcal]}& \cn{mathcal}\\
128 % \pkg{eufrak}& none& \parbox[t]{14pc}{\cn{mathfrak} (also
129 % obsolete \cn{EuFrak} for compatibility)}
130 % \end{tabular}
131 % \end{center}
132 %
133 % \begin{macrocode}
134 \DeclareOption{mathcal}{\renewcommand{\mathcal}{\EuScript}}
135 \DeclareOption{mathscr}{%
136 \providecommand{\mathscr}{}\renewcommand{\mathscr}{\EuScript}%
137 %<eucal> \let\mathcal=\CMcal
138 }
139 % \end{macrocode}
140 %
141 % Process the package options.
142 % \begin{macrocode}
143 %<eucal>\ExecuteOptions{mathcal}
144 \ProcessOptions
145 % \end{macrocode}
146 %
147 % The usual \cs{endinput} to ensure that random garbage at the end of
148 % the file doesn't get copied by \fn{docstrip}.
149 % \begin{macrocode}
150 \endinput
151 % \end{macrocode}
152 %
153 % \changes{v2.1a}{93/12/12}{Update for LaTeX2e}
154 % \changes{v2.1c}{1994/05/08}{Changed to new documentation standards.}
155 % \changes{v2.1d}{1994/10/14}{Moved to AMS-LaTeX distribution (mjd).}
156 % \changes{v2.1d}{1994/10/18}{Added psamsfonts option}
157 % \changes{v2.1d}{1994/10/18}{Changed cmd names to mathcal/mathscr}
158 % \changes{v2.1d}{1994/10/18}{Added eucal package}
159 % \changes{v2.1d}{1994/10/21}{Some documentation cleanup}
160 % \changes{v2.2}{1995/01/06}{Moved to amsfonts distrib}
161 % \changes{v2.2c}{1997/05/15}{%
162 % Removed dependency on mixed-case fd file names}
163 %
164 % \CheckSum{29}
165 % \Finale