Debian Codegraph @

texmf-dist/tex/latex/amscls/amsldoc.cls

raw
1 %%
2 %% This is file `amsldoc.cls',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% amsdtx.dtx (with options: `amsldoc')
8 %% This is a generated file.
9 %%
10 %% Copyright 1996, 1999, 2004, 2009 American Mathematical Society.
11 %%
12 %% American Mathematical Society
13 %% Technical Support
14 %% Publications Technical Group
15 %% 201 Charles Street
16 %% Providence, RI 02904
17 %% USA
18 %% tel: (401) 455-4080
19 %% (800) 321-4267 (USA and Canada only)
20 %% fax: (401) 331-3842
21 %% email: [email protected]
22 %%
23 %% This work may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% http://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This work has the LPPL maintenance status `maintained'.
32 %%
33 %% The Current Maintainer of this work is the American Mathematical
34 %% Society.
35 %%
36 %% ========================================================================
37 %%
38 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
39 [1995/06/01]% LaTeX date must be June 1995 or later
40 \ProvidesClass{amsldoc}[2009/08/19 v2.07]
41 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
42 \ProcessOptions
43 \LoadClass{book}
44 \IfFileExists{url.sty}{%
45 \RequirePackage{url}\relax
46 \@gobble
47 }{%
48 \@firstofone
49 }
50 {
51 \DeclareRobustCommand{\url}[1]{%
52 \def\@tempa{#1}%
53 \texttt{\urlsetup $\expandafter\strip@prefix\meaning\@tempa$}%
54 }%
55 \def\urlsetup{%
56 \check@mathfonts \textfont\@ne\the\font \textfont\z@\the\font
57 \urlfix +\urlfix\=\urlfix\:\urlfix\-\urlfix\.\urlfix\,\urlfix\;%
58 \urlbreak\&\urlbreak\/\urlbreak\?%
59 }%
60 \def\urlbreak#1{%
61 \mathcode`#1="8000
62 \begingroup \lccode`\~=`#1 \lowercase{\endgroup \edef~}%
63 {\mathchar\number`#1\penalty\hyphenpenalty}%
64 }%
65 \def\urlfix#1{%
66 \mathcode`#1=`#1\relax
67 }%
68 }
69 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
70 \providecommand{\qq}[1]{\textquotedblleft#1\/\textquotedblright}
71 \providecommand{\mdash}{\textemdash\penalty\exhyphenpenalty}
72 \providecommand{\ndash}{\textendash\penalty\exhyphenpenalty}
73 \let\@xp\expandafter
74 \def\actualchar{@}
75 \def\quotechar{"}
76 \def\levelchar{!}
77 \def\encapchar{|}
78 \def\verbatimchar{+}
79 \newif\ifcodeline@index
80 \newcommand*{\autoindex}[1]{%
81 \index{#1\ifcodeline@index\encapchar usage\fi}%
82 }
83 \newcommand{\ntt}{\normalfont\ttfamily}
84 \newcommand*{\indexcs}[1]{%
85 \@xp\@xp\@xp\@indexcs\@xp\@nobslash\string#1\@nil
86 }
87 \def\@indexcs#1\@nil{%
88 \autoindex{#1\actualchar
89 \string\verb\quotechar*\verbatimchar
90 \@xp\@bothoftwo\string\ #1\@empty
91 \verbatimchar
92 }%
93 }
94 \def\@bothoftwo#1#2{#1#2}
95 \def\category@index#1#2{%
96 {\ntt#2}%
97 \@category@index{#1}{#2}%
98 }
99 \def\@category@index#1#2{%
100 \autoindex{%
101 #2\actualchar\string\texttt{#2}%
102 \ifx\@nil#1\@nil\else\space#1\fi
103 }%
104 }
105 \chardef\bslchar=`\\ % p. 424, TeXbook
106 \newcommand{\addbslash}{\expandafter\@addbslash\string}
107 \def\@addbslash#1{\bslchar\@nobslash#1}
108 \newcommand{\nobslash}{\expandafter\@nobslash\string}
109 \def\@nobslash#1{\ifnum`#1=\bslchar\else#1\fi}
110 \def\@boxorbreak{%
111 \leavevmode
112 \ifmmode\hbox\else\ifdim\lastskip=\z@\penalty9999 \fi\fi
113 }
114 \DeclareRobustCommand{\cs}[1]{%
115 \@boxorbreak{%
116 \ntt
117 \addbslash#1\@empty
118 \@xp\@xp\@xp\@indexcs\@xp\@nobslash\string#1\@nil
119 }%
120 }
121 \let\cn\cs
122 \DeclareTextSymbol{\lbracechar}{OT1}{123}
123 \DeclareTextSymbolDefault{\lbracechar}{OT1}
124 \DeclareTextSymbol{\rbracechar}{OT1}{125}
125 \DeclareTextSymbolDefault{\rbracechar}{OT1}
126
127 \providecommand{\embrace}[1]{%
128 \begingroup \ntt\lbracechar#1\rbracechar\endgroup}
129 \providecommand{\cnbreak}{\penalty999\hskip0pt\relax}
130 \providecommand{\cnm}[2]{\cn{#1}\cnbreak\embrace{#2}}
131 \providecommand{\cnmm}[3]{\cn{#1}\cnbreak\embrace{#2}\cnbreak\embrace{#3}}
132 \providecommand{\cnom}[1]{\cn{#1}\cnbreak\ommitude}
133 \providecommand{\ommitude}[2][]{{\ntt[#1]}\cnbreak\embrace{#2}}
134 \providecommand{\cnmsm}[4]{%
135 \cn{#1}\cnbreak\embrace{#2}\cnbreak *\embrace{#4}}
136 \DeclareRobustCommand{\cls}{\category@index{class}}
137 \DeclareRobustCommand{\pkg}{\category@index{package}}
138 \DeclareRobustCommand{\opt}{\category@index{option}}
139 \DeclareRobustCommand{\env}{\category@index{environment}}
140 \DeclareRobustCommand{\fn}{\category@index{}}
141 \DeclareRobustCommand{\bst}{\category@index{\string\BibTeX{} style}}
142 \DeclareRobustCommand{\cnt}{\category@index{counter}}
143 \DeclareRobustCommand{\fnt}{\category@index{font}}
144 \def\allowtthyphens{\begingroup
145 \fontencoding{OT1}\fontfamily{cmtt}%
146 \expandafter\let\csname OT1+cmtt\endcsname\relax
147 \try@load@fontshape
148 \endgroup
149 \expandafter\let\csname OT1+cmtt\endcsname\@empty
150 }
151 \hfuzz2pc
152 \vbadness9999 \hbadness5000
153 \def\AmS{{\protect\usefont{OMS}{cmsy}{m}{n}%
154 A\kern-.1667em\lower.5ex\hbox{M}\kern-.125emS}}
155 \def\latex/{{\protect\LaTeX}}
156 \def\amslatex/{{\protect\AmS-\protect\LaTeX}}
157 \def\tex/{{\protect\TeX}}
158 \def\amstex/{{\protect\AmS-\protect\TeX}}
159 \def\bibtex/{{Bib\protect\TeX}}
160 \def\makeindx/{MakeIndex}
161 \def\xypic/{XY\mbox{-}pic}
162 \newcommand{\Textures}{\textit{Textures}}
163 \def\<#1>{\textit{$\langle$#1\/$\rangle$}}
164 \def\@listi{%
165 \leftmargin\leftmargini
166 \topsep 3\p@ \@plus2\p@ \@minus\p@
167 \parsep \p@ \@plus\p@ \itemsep\parsep
168 }
169 \let\@listI\@listi
170 \@listi
171 \def\@listii{%
172 \leftmargin\leftmarginii
173 \labelwidth\leftmarginii \advance\labelwidth-\labelsep
174 \topsep\p@\@plus\p@ \@minus\p@
175 \parsep\z@skip \itemsep\z@skip
176 }
177 \def\@listiii{%
178 \leftmargin\leftmarginiii
179 \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
180 \topsep\z@skip \parsep\z@skip \itemsep\z@skip
181 }
182 \newenvironment{histnote}{%
183 \trivlist\item[\hspace{\labelsep}\bfseries Historical Note:]%
184 }{%
185 \endtrivlist
186 }
187 \def\@starttoc#1{\begingroup
188 \let\autoindex\@gobble
189 \makeatletter
190 \@input{\jobname.#1}\if@filesw
191 \expandafter\newwrite\csname tf@#1\endcsname
192 \immediate\openout
193 \csname tf@#1\endcsname \jobname.#1\relax
194 \fi \global\@nobreakfalse \endgroup}
195 \newcommand{\gloss}[1]{}
196 \newcommand*{\secref}[1]{\S\ref{#1}}
197 \newcommand{\qc}[1]{}% check for prior definition
198 \edef\qc#1{\noexpand\protect\expandafter\noexpand\csname qc \endcsname
199 \noexpand\protect#1}
200 \@namedef{qc }#1#2{\begingroup\ntt
201 \ifx\ #2\char`\ \else\escapechar\m@ne\string#2\fi\endgroup}
202 \DeclareRobustCommand{\qcat}{\qc\@}%
203 \DeclareRobustCommand{\qcamp}{\qc\&}%
204 \DeclareRobustCommand{\qcbang}{\qc\!}%
205 \DeclareRobustCommand{\arg}[1]{{\ntt\##1}}
206 \newcommand{\openbox}{\leavevmode
207 \hbox to.77778em{%
208 \hfil\vrule
209 \vbox to.675em{\hrule width.6em\vfil\hrule}%
210 \vrule\hfil}}
211 \newcommand{\qedsymbol}{\openbox}
212 \def\mail{\texttt}
213 \def\*#1{\def\@tempa{#1}\def\@tempb{*}%
214 \ifx\@tempa\@tempb \expandafter\index
215 \else #1\index{#1}\fi}
216 \def\ncn#1{{\let\index\@gobble\cn{#1}}}
217
218 \DeclareRobustCommand{\cnbang}{%
219 \ncn{\!}\index{"!@{\ntt\bslchar\qcbang}}}
220 \DeclareRobustCommand{\cnat}{%
221 \ncn{\!}\index{"@@{\ntt\bslchar\qcat}}}
222 \def\5{\penalty500 }
223 \newenvironment{error}{%
224 \begingroup\catcode`\\=12 \expandafter\endgroup\errora
225 }{%
226 \endtrivlist
227 }
228 \newcommand{\errora}[1]{%
229 \trivlist
230 \item[\hskip\labelsep\errorbullet\enspace
231 \ntt\frenchspacing\def\@tempa{#1}%
232 \expandafter\strip@prefix\meaning\@tempa]\leavevmode\par
233 }
234 \newcommand{\errorbullet}{\rule[-.5pt]{2.5pt}{7.5pt}%
235 \rule[-.5pt]{5pt}{2.5pt}\kern-2.5pt%
236 \rule[4.5pt]{2.5pt}{2.5pt}}
237 \newcommand{\errexa}{\par\noindent\textit{Example}:\ }
238 \newcommand{\errexpl}{\par\noindent\textit{Explanation}:\ }
239 \renewcommand\frontmatter{\clearpage
240 \@mainmatterfalse\pagenumbering{roman}}
241 \renewcommand\mainmatter{\clearpage
242 \@mainmattertrue\pagenumbering{arabic}}
243 \renewcommand\backmatter{\clearpage \@mainmatterfalse}
244 \renewcommand\part{\clearpage
245 \thispagestyle{plain}%
246 \if@twocolumn
247 \onecolumn
248 \@tempswatrue
249 \else
250 \@tempswafalse
251 \fi
252 \hbox{}\vfil
253 \secdef\@part\@spart}
254 \def\@part[#1]#2{%
255 \ifnum \c@secnumdepth >-2\relax
256 \refstepcounter{part}%
257 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
258 \else
259 \addcontentsline{toc}{part}{#1}%
260 \fi
261 \markboth{}{}%
262 {\centering
263 \interlinepenalty \@M
264 \reset@font
265 \ifnum \c@secnumdepth >-2\relax
266 \Large\bfseries \partname~\thepart
267 \par
268 \vskip 20\p@
269 \fi
270 \Large \bfseries #2\par}%
271 \@endpart}
272 \def\@spart#1{%
273 {\centering
274 \interlinepenalty \@M
275 \reset@font
276 \Large \bfseries #1\par}%
277 \@endpart}
278 \def\@endpart{\vfil\newpage
279 \if@twoside
280 \hbox{}%
281 \thispagestyle{empty}%
282 \newpage
283 \fi
284 \if@tempswa
285 \twocolumn
286 \fi}
287 \renewcommand\chapter{\par \@afterindentfalse
288 \secdef\@chapter\@schapter}
289 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
290 \if@mainmatter
291 \refstepcounter{chapter}%
292 \typeout{\@chapapp\space\thechapter.}%
293 \addcontentsline{toc}{chapter}%
294 {\protect\numberline{\thechapter}#1}%
295 \else
296 \addcontentsline{toc}{chapter}{#1}\fi
297 \else
298 \addcontentsline{toc}{chapter}{#1}
299 \fi
300 \chaptermark{#1}%
301 \addtocontents{lof}{\protect\addvspace{10\p@}}%
302 \addtocontents{lot}{\protect\addvspace{10\p@}}%
303 \if@twocolumn
304 \@topnewpage[\@makechapterhead{#2}]%
305 \else
306 \@makechapterhead{#2}%
307 \@afterheading
308 \fi}
309 \def\@makechapterhead#1{%
310 \vspace{1.5\baselineskip}%
311 {\parindent \z@ \raggedright \reset@font
312 \ifnum \c@secnumdepth >\m@ne
313 \large\bfseries \@chapapp\space\thechapter
314 \par\nobreak
315 \vskip.5\baselineskip\relax
316 \fi
317 #1\par\nobreak
318 \vskip\baselineskip
319 }}
320 \def\@schapter#1{\if@twocolumn
321 \@topnewpage[\@makeschapterhead{#1}]%
322 \else
323 \@makeschapterhead{#1}%
324 \@afterheading
325 \fi}
326 \def\@makeschapterhead#1{%
327 \vspace*{1.5\baselineskip}%
328 {\parindent \z@ \raggedright
329 \reset@font
330 \large \bfseries #1\par\nobreak
331 \vskip\baselineskip
332 }}
333 \def\@removefromreset#1#2{\let\@tempb\@elt
334 \expandafter\let\expandafter\@tempa\csname c@#1\endcsname
335 \def\@elt##1{\expandafter\ifx\csname c@##1\endcsname\@tempa\else
336 \noexpand\@elt{##1}\fi}%
337 \expandafter\edef\csname cl@#2\endcsname{\csname cl@#2\endcsname}%
338 \let\@elt\@tempb}
339 \@removefromreset{footnote}{chapter}
340 \def\ps@headings{%
341 \let\@oddfoot\@empty\let\@evenfoot\@empty
342 \def\@evenhead{\thepage\hfil{\footnotesize\leftmark{}{}}}%
343 \def\@oddhead{{\footnotesize\rightmark{}{}}\hfil\thepage}%
344 \let\@mkboth\markboth
345 \def\chaptermark##1{%
346 \markboth {\uppercase{\ifnum \c@secnumdepth >\m@ne
347 \if@mainmatter
348 \@chapapp\ \thechapter. \ \fi
349 \fi
350 ##1}}{}}%
351 \def\sectionmark##1{%
352 \markright {\uppercase{\ifnum \c@secnumdepth >\z@
353 \thesection. \ \fi
354 ##1}}}}
355 \renewcommand\section{\@startsection {section}{1}{\z@}%
356 {-.6\baselineskip \@plus -3\p@}%
357 {.4\baselineskip}
358 {\reset@font\normalsize\bfseries}}
359 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
360 {-.3\baselineskip\@plus -2\p@}%
361 {.2\baselineskip}%
362 {\reset@font\normalsize\bfseries}}
363 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
364 {-.2\baselineskip\@plus -2\p@}%
365 {.2\baselineskip}%
366 {\reset@font\normalsize\bfseries}}
367 \renewenvironment{theindex}{%
368 \if@twocolumn \@restonecolfalse \else \@restonecoltrue \fi
369 \columnseprule \z@ \columnsep 35\p@
370 \let\autoindex\@gobble
371 \twocolumn[\@makeschapterhead{\indexname}]%
372 \addcontentsline{toc}{chapter}{\indexname}%
373 \@mkboth{\uppercase{\indexname}}{\uppercase{\indexname}}%
374 \thispagestyle{plain}\parindent\z@
375 \parskip\z@ \@plus .3\p@\relax
376 \let\item\@idxitem
377 }{%
378 \if@restonecol\onecolumn\else\clearpage\fi
379 }
380 \long\def\@makecaption#1#2{%
381 \addvspace\abovecaptionskip
382 \begingroup
383 \countdef\@parcycles=8 % local count register
384 \@parcycles\z@
385 \@setpar{\advance\@parcycles\@ne \ifnum\@parcycles>999
386 \@@par\@parcycles\z@\fi
387 \ifhmode \unskip\hskip\parfillskip\penalty-\@M\fi}%
388 \@hangfrom{\textbf{#1.} }\vadjust{\penalty\m@ne}#2%
389 \endgroup
390 \ifhmode\unpenalty\fi\par
391 \ifnum\lastpenalty=\m@ne % only one line in the caption
392 \unpenalty \setbox\@tempboxa\lastbox
393 \nointerlineskip
394 \hbox to\hsize{\hfill\unhbox\@tempboxa\unskip\hfill}%
395 \fi
396 \nobreak\vskip\belowcaptionskip
397 }
398 \renewenvironment{table}{%
399 \belowcaptionskip\abovecaptionskip \abovecaptionskip\z@skip
400 \@float{table}%
401 }{%
402 \end@float
403 }
404 \renewenvironment{table*}{%
405 \belowcaptionskip\abovecaptionskip \abovecaptionskip\z@skip
406 \@dblfloat{table}%
407 }{%
408 \end@dblfloat
409 }
410 \setcounter{topnumber}{4}\setcounter{bottomnumber}{4}
411 \setcounter{totalnumber}{4}\setcounter{dbltopnumber}{4}
412 \renewcommand{\topfraction}{.97}\renewcommand{\bottomfraction}{.97}
413 \renewcommand{\textfraction}{.03}\renewcommand{\floatpagefraction}{.9}
414 \renewcommand{\dbltopfraction}{.97}
415 \renewcommand{\dblfloatpagefraction}{.9}
416 \setlength{\floatsep}{8pt plus6pt}
417 \setlength{\textfloatsep}{10pt plus8pt}
418 \setlength{\intextsep}{8pt plus6pt}
419 \setlength{\dblfloatsep}{8pt plus6pt}
420 \setlength{\dbltextfloatsep}{10pt plus8pt}
421 \setlength{\@fptop}{0pt}\setlength{\@fpsep}{8pt}%
422 \setlength{\@fpbot}{0pt plus 1fil}
423 \setlength{\@dblfptop}{0pt}\setlength{\@dblfpsep}{8pt}%
424 \setlength{\@dblfpbot}{0pt plus 1fil}
425
426 \pagestyle{headings}
427 \AtBeginDocument{\catcode`\|=\active }
428 \def\activevert{\verb|}
429 \expandafter\gdef\expandafter\dospecials\expandafter
430 {\dospecials \do\|}%
431 \expandafter\gdef\expandafter\@sanitize\expandafter
432 {\@sanitize \@makeother\|}
433 \begingroup\catcode`\|=\active \gdef|{\protect\activevert{}}\endgroup
434 \newcommand{\arrayargpatch}{%
435 \let\@oldarray\@array
436 \edef\@array[##1]##2{\catcode\number`\|=\number\catcode`\|
437 \catcode\number`\@=\number\catcode`\@ \relax
438 \let\noexpand\@array\noexpand\@oldarray
439 \noexpand\@array[##1]{##2}}%
440 \catcode`\|=12 \catcode`\@=12 \relax
441 }
442 \newenvironment{ctab}{%
443 \par\topsep\medskipamount
444 \trivlist\centering
445 \item[]%
446 \arrayargpatch
447 \begin{tabular}%
448 }{%
449 \end{tabular}%
450 \endtrivlist
451 }
452 \hyphenation{base-line-skip}
453 \endinput
454 %%
455 %% End of file `amsldoc.cls'.