Debian Codegraph @

texmf-dist/tex/latex/amscls/amsbooka.sty

raw
1 %%
2 %% This is file `amsbooka.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% amsbooka.dtx
8 %% This is a generated file.
9 %%
10 %% Copyright 1995, 2008, 2014 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 \ProvidesPackage{amsbooka}[2014/07/11 v2.08 monograph part/chapter authors]
41 \def\@gsm{gsm-l}
42 \def\@stml{stml-l}
43 \newif\if@ruledchapterhead
44 \@ruledchapterheadfalse
45 \ifx\@classname\@gsm \@ruledchapterheadtrue
46 \else\ifx\@classname\@stml \@ruledchapterheadtrue
47 \fi
48 \fi
49 \newif\if@rhchapnum
50 \@rhchapnumfalse
51 \DeclareOption{rhchapnum}{\@rhchapnumtrue}
52 \newif\if@rhchapsec
53 \@rhchapsecfalse
54 \DeclareOption{rhchapsec}{\@rhchapsectrue \@rhchapnumtrue}
55 \ProcessOptions\relax
56 \let\@schapterb\@schapter
57 \def\@schapter{\secdef\@schaptera\@schapterb}
58 \def\@schaptera[#1]#2{\typeout{#1}%
59 \let\@secnumber\@empty
60 \def\@toclevel{0}%
61 \ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{#2}%
62 \else \@tocwriteb\tocchapter{chapter}{#2}\fi
63 \chaptermark{#1}%
64 \addtocontents{lof}{\protect\addvspace{10\p@}}%
65 \addtocontents{lot}{\protect\addvspace{10\p@}}%
66 \@makeschapterhead{#2}\@afterheading
67 }
68 \def\@makechapterhead#1{%
69 \ifx\@classname\@gsm \@makegsmchapterhead{#1}%
70 \else \ifx\@classname\@stml \@makestmlchapterhead{#1}%
71 \else \@makeplainchapterhead{#1}%
72 \fi \fi
73 }
74 \newif\if@schapter \@schapterfalse
75 \def\@makeschapterhead#1{%
76 \@schaptertrue
77 \ifx\@classname\@gsm \@makegsmchapterhead{#1}%
78 \else \ifx\@classname\@stml \@makestmlchapterhead{#1}%
79 \else \@makeplainschapterhead{#1}%
80 \fi \fi
81 }
82 \def\@makeplainchapterhead#1{%
83 \global\topskip 7.5pc\relax
84 \@setcopyright
85 \let\copyrightyear\@empty
86 \begingroup
87 \def\title{}%
88 \def\author##1{%
89 \if@rhchapsec
90 \else \markleft{\MakeUppercase{##1}}%
91 \fi
92 \vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
93 \fontsize{\@xivpt}{18}\bfseries\centering
94 \ifnum\c@secnumdepth>\m@ne
95 \leavevmode \hskip-\leftskip
96 \rlap{\vbox to\z@{\vss
97 \centerline{\normalsize\mdseries
98 \MakeUppercase{\chaptername}\enspace\thechapter}
99 \vskip 3pc}}\hskip\leftskip
100 \fi
101 #1\par \endgroup
102 \skip@34\p@ \advance\skip@-\normalbaselineskip
103 \vskip\skip@
104 }
105 \def\@makeschapterhead#1{%
106 \global\topskip 7.5pc\relax
107 \@setcopyright
108 \let\copyrightyear\@empty
109 \begingroup
110 \def\title{}%
111 \def\author##1{%
112 \if@rhchapsec
113 \else \markleft{\MakeUppercase{##1}}%
114 \fi
115 \vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
116 \fontsize{\@xivpt}{18}\bfseries\centering
117 #1\par \endgroup
118 \skip@34\p@ \advance\skip@-\normalbaselineskip
119 \vskip\skip@
120 }
121 \def\@makeruledchapterhead#1{%
122 \global\topskip\normaltopskip
123 \begingroup
124 \def\author##1{%
125 \if@rhchapsec
126 \else \markleft{##1}%
127 \fi
128 \\ \hfil \\ \@chapauthorstyle ##1}%
129 \vbox to\topskip{%
130 \chapter@number
131 \vss
132 }\penalty\@M
133 \@chapheadstyle \raggedright
134 \noindent #1\par \endgroup
135 \if@index
136 \@indexstyle
137 \else
138 \@dropfolio
139 \@noindexstyle
140 \fi
141 \@afterheading
142 }
143 \def\@makeruledschapterhead#1{%
144 \global\topskip\normaltopskip
145 \begingroup
146 \def\author##1{%
147 \if@rhchapsec
148 \else \markleft{##1}%
149 \fi
150 \\ \hfil \\ \@chapauthorstyle ##1}%
151 \@chapheadstyle \raggedright
152 \noindent #1\par \endgroup
153 \if@index
154 \@indexstyle
155 \else
156 \@dropfolio
157 \@noindexstyle
158 \fi
159 \@afterheading
160 }
161 \def\@makegsmchapterhead#1{%
162 \def\@chapheadstyle{\Huge\bfseries \hsize24pc
163 \top@space{11pc}}%
164 \def\@chapauthorstyle{\LARGE\bfseries}%
165 \def\@indexstyle{%
166 \ifx\@empty\indexintro
167 \bb@space{7.5pc}%
168 \else
169 \vspace{3pc}%
170 \begingroup \small
171 \parbox[t]{27pc}{\leftskip3pc\normalfont\indexintro\par}%
172 \endgroup
173 \bb@space{3pc}%
174 \fi
175 }%
176 \def\@noindexstyle{\bb@space{7.5pc}}%
177 \if@schapter
178 \@makeruledschapterhead{#1}%
179 \else
180 \@makeruledchapterhead{#1}%
181 \fi
182 }
183 \def\@makestmlchapterhead#1{%
184 \def\@chapheadstyle{\fontsize\@xxpt{22}\selectfont\bfseries\hsize 21pc
185 \top@par@space{9pc}}%
186 \def\@chapauthorstyle{\LARGE\mdseries}%
187 \def\@indexstyle{%
188 \ifx\@empty\indexintro
189 \bb@par@space{6.5pc}%
190 \else
191 \vspace{2.5pc}%
192 \begingroup \small
193 \parbox[t]{22.5pc}{\leftskip2.5pc\normalfont\indexintro\par}%
194 \endgroup
195 \bb@par@space{2.5pc}%
196 \fi
197 }%
198 \def\@noindexstyle{\bb@par@space{6.5pc}}%
199 \if@schapter
200 \@makeruledschapterhead{#1}%
201 \else
202 \@makeruledchapterhead{#1}%
203 \fi
204 }
205 \if@rhchapnum
206 \else
207 \def\chapterrunhead#1#2#3{%
208 \def\@tempa{#3}%
209 \begingroup \def\\{ \ignorespaces}%
210 \uppercasenonmath\@tempa\@tempa
211 \endgroup
212 }
213 \fi
214 \def\partauthor{%
215 \def\author##1{\newline\phantom{Part 1.\enspace}{\mdseries\scshape##1}}}
216 \def\@part[#1]#2{%
217 \ifnum \c@secnumdepth >-2\relax \refstepcounter{part}%
218 \addcontentsline{toc}{part}{\partname\ \thepart.%
219 \protect\partauthor\protect\enspace\protect\noindent#1}%
220 \else
221 \addcontentsline{toc}{part}{#1}\fi
222 \begingroup
223 \def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}%
224 \centering
225 \ifnum \c@secnumdepth >-2\relax
226 {\fontsize{\@xviipt}{22}\bfseries
227 \partname\ \thepart} \vskip 20\p@ \fi
228 \fontsize{\@xxpt}{25}\bfseries
229 #1\vfil\vfil\endgroup \newpage\thispagestyle{empty}}
230 \def\@spart#1{\addcontentsline{toc}{part}%
231 {\protect\partauthor\protect\noindent#1}%
232 \begingroup
233 \def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}%
234 \centering
235 \fontsize{\@xxpt}{25}\bfseries
236 #1\vfil\vfil\endgroup \newpage\thispagestyle{empty}}
237 \setbox\z@\hbox{\kern1.5pc 999}
238 \renewcommand{\@pnumwidth}{\wd\z@}
239 \def\@tocline#1#2#3#4#5#6#7{\relax
240 \ifnum #1>\c@tocdepth % then omit
241 \else
242 \def\author##1{\newline\textsc{##1}}%
243 \par \addpenalty\@secpenalty\addvspace{#2}%
244 \begingroup \hyphenpenalty\@M
245 \@ifempty{#4}{%
246 \@tempdima\csname r@tocindent\number#1\endcsname\relax
247 }{%
248 \@tempdima#4\relax
249 }%
250 \parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
251 \rightskip\@pnumwidth plus.2\hsize \parfillskip-\@pnumwidth
252 #5\leavevmode\hskip-\@tempdima #6\nobreak\relax
253 \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
254 \nobreak
255 \endgroup
256 \fi
257 }
258 \let\copyrightyear\@empty
259 \if@ruledchapterhead \def\copyrightinfo#1#2{}\fi
260 \newcommand{\barefootnote}[1]{{%
261 \let\@makefnmark\relax \let\@thefnmark\relax
262 \@footnotetext{#1}}}
263 \newenvironment{inchapterbibliography}[1]{%
264 \let\sectionmark\@gobble
265 \@xp\section\@xp*\@xp{\bibname}%
266 \normalfont\footnotesize\labelsep .5em\relax
267 \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
268 \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
269 \leftmargin\labelwidth \advance\leftmargin\labelsep
270 \usecounter{enumiv}}%
271 \sloppy \clubpenalty\@M \widowpenalty\clubpenalty
272 \sfcode`\.=\@m
273 }{%
274 \def\@noitemerr{\@latex@warning{Empty `inchapterbibliography' environment}}%
275 \endlist
276 }
277 \endinput
278 %%
279 %% End of file `amsbooka.sty'.