| 1 |
% \def\filename{amsbooka.dtx} |
| 2 |
% \def\fileversion{2.08} |
| 3 |
% \def\filedate{2014/07/11} |
| 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 1995, 2008, 2014 American Mathematical Society. |
| 19 |
% |
| 20 |
% This work may be distributed and/or modified under the |
| 21 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 22 |
% of this license or (at your option) any later version. |
| 23 |
% The latest version of this license is in |
| 24 |
% http://www.latex-project.org/lppl.txt |
| 25 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 26 |
% version 2005/12/01 or later. |
| 27 |
% |
| 28 |
% This work has the LPPL maintenance status `maintained'. |
| 29 |
% |
| 30 |
% The Current Maintainer of this work is the American Mathematical |
| 31 |
% Society. |
| 32 |
% |
| 33 |
% \fi |
| 34 |
% |
| 35 |
% \iffalse |
| 36 |
%<*driver> |
| 37 |
\documentclass{amsdtx} |
| 38 |
|
| 39 |
\CodelineIndex |
| 40 |
|
| 41 |
\begin{document} |
| 42 |
\title{The \pkg{amsbooka} package} |
| 43 |
\author{American Mathematical Society\\Barbara Beeton} |
| 44 |
\date{Version \fileversion, \filedate} |
| 45 |
\DocInput{amsbooka.dtx} |
| 46 |
\end{document} |
| 47 |
%</driver> |
| 48 |
% \fi |
| 49 |
% |
| 50 |
% \maketitle |
| 51 |
% |
| 52 |
% \MakeShortVerb\| |
| 53 |
% |
| 54 |
% \section{Introduction} |
| 55 |
% |
| 56 |
% This package is an add-on to the \amslatex/ document classes for |
| 57 |
% monographs. It provides the facility to include an author's name |
| 58 |
% with a part or chapter title of a monograph, and automatically pass |
| 59 |
% the author information on to the table of contents for presentation |
| 60 |
% in a style compatible with the regular (series-specific) TOC style. |
| 61 |
% It also provides facilities to add elements often associated with |
| 62 |
% separately authored chapters, including a copyright notice, |
| 63 |
% uunumbered footnotes, and a section-level bibliography. |
| 64 |
% |
| 65 |
% This package may become part of the \amslatex/ collection of |
| 66 |
% document classes and related packages. |
| 67 |
% |
| 68 |
% \StopEventually{} |
| 69 |
% |
| 70 |
% Standard file identification. |
| 71 |
% \begin{macrocode} |
| 72 |
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX) |
| 73 |
[1995/06/01]% LaTeX date must be June 1995 or later |
| 74 |
\ProvidesPackage{amsbooka}[2014/07/11 v2.08 monograph part/chapter authors] |
| 75 |
% \end{macrocode} |
| 76 |
% |
| 77 |
% \section{User instructions} |
| 78 |
% |
| 79 |
% \textbf{Getting started:} The front matter of the book must include |
| 80 |
% (at least) a \cn{title} and \cn{\maketitle}. If these are absent, |
| 81 |
% an unintelligible error message will result. This is caused by |
| 82 |
% the redefinition of the \cn{author} command, which is ordinarily |
| 83 |
% expected to occur only in the book's front matter. |
| 84 |
% |
| 85 |
% \subsection{Chapter and part headings} |
| 86 |
% |
| 87 |
% A part or chapter with no associated author is input in the usual |
| 88 |
% way:\\[2pt] |
| 89 |
% \verb|\part{|\<full title>\verb|}|\\ |
| 90 |
% \verb|\chapter[|\<short title>\verb|]{|\<full title>\verb|}|\\[2pt] |
| 91 |
% The part or chapter title will be set in the regular style for |
| 92 |
% the series. |
| 93 |
% |
| 94 |
% If an author is to be associated with a chapter, then the short |
| 95 |
% title \emph{must} be provided, and the author is included within |
| 96 |
% the full title, thus:\\[2pt] |
| 97 |
% \verb|\chapter[|\<short title>\verb|]{|\<full title>% |
| 98 |
% \verb| \author{|\<author name>\verb|}}| |
| 99 |
% |
| 100 |
% \vspace{2pt} |
| 101 |
% |
| 102 |
% This works for both \verb|\chapter| and \verb|\chapter*|. |
| 103 |
% Similarly, a part title with an associated author must include |
| 104 |
% the author as follows:\\[2pt] |
| 105 |
% \verb|\part{|\<full title>\verb| \author{|\<author name>\verb|}}|\\[2pt] |
| 106 |
% No short title is required for a part title with author. |
| 107 |
% |
| 108 |
% The author name will be set following the title and also included |
| 109 |
% in the table of contents, both in the appropriate style for the |
| 110 |
% series. |
| 111 |
% |
| 112 |
% When an author is specified for a chapter, the left-hand running |
| 113 |
% head will be the author name; the right-hand running head will |
| 114 |
% be the chapter title, taken from the short title. For a chapter |
| 115 |
% with no specified author, the running heads will be the same as |
| 116 |
% for an ``ordinary'' monograph: chapter title on the left and |
| 117 |
% section heading on the right, except that, if the chapter has |
| 118 |
% no sections, the chapter title will also appear on the right. |
| 119 |
% |
| 120 |
% By default, ``authored'' chapters will be numbered, but chapter |
| 121 |
% numbers will be omitted from the running heads. (Most volumes |
| 122 |
% encountered so far in this style are essentially collections.) |
| 123 |
% Chapter numbers can be restored to the running heads by using the |
| 124 |
% documentclass option \opt{[rhchapnum]}. In the present version |
| 125 |
% of \pkg{amsbooka} this is an all-or-nothing proposition, but |
| 126 |
% this decision may be reconsidered if an example emerges in which |
| 127 |
% there is justification for including chapter numbers in some |
| 128 |
% running heads but not in others. |
| 129 |
% |
| 130 |
% Similarly, the ``standard'' monograph running heads (chapter on |
| 131 |
% the left, section on the right) can be forced for all authored |
| 132 |
% chapters by specifying the documentclass option \opt{[rhchapsec]}. |
| 133 |
% With this option, chapter numbers will not be suppressed. Again, |
| 134 |
% this is an all-or-nothing choice. |
| 135 |
% |
| 136 |
% \subsection{Elements at the bottom of the first page} |
| 137 |
% |
| 138 |
% If information such as a previous publication or an alternate |
| 139 |
% source is noted, this should appear on the first page of the |
| 140 |
% chapter as an unnumbered footnote. Enter this immediately |
| 141 |
% after the \verb|\chapter| title, using this command:\\[2pt] |
| 142 |
% \verb|\barefootnote{|\<footnote text>\verb|}| |
| 143 |
% |
| 144 |
% \vspace{2pt} |
| 145 |
% |
| 146 |
% If a separate copyright notice is required for a chapter, |
| 147 |
% enter it as follows:\\[2pt] |
| 148 |
% \verb|\copyrightinfo{|\<year>\verb|}{|\<copyright holder>\verb|}|\\[2pt] |
| 149 |
% If this command is not input for a chapter, no notice will appear. |
| 150 |
% |
| 151 |
% \subsection{Bibliography within a chapter} |
| 152 |
% |
| 153 |
% The bibliography of a monograph usually appears as a separate chapter. |
| 154 |
% However, for collections addressed by the present package, each |
| 155 |
% individual chapter may have its own reference list, which should |
| 156 |
% be treated as a section. |
| 157 |
% |
| 158 |
% If the chapter bibliography has been prepared for \pkg{amsrefs}, |
| 159 |
% specify \env{bibsection} to obtain the proper format. (See the |
| 160 |
% \pkg{amsrefs} documentation for details.) |
| 161 |
% |
| 162 |
% If the chapter bibliography has been prepared using \BibTeX, |
| 163 |
% substitute\\[2pt] |
| 164 |
% \verb|\begin{inchapterbibliography}|\\ |
| 165 |
% \verb|...|\\ |
| 166 |
% \verb|\end{inchapterbibliography}|\\[2pt] |
| 167 |
% for the usual \env{thebibliography} environment. The actual contents |
| 168 |
% of the bibliography should be included within the chapter file, |
| 169 |
% not read in from a separate \fn{.bbl} file. If the heading of |
| 170 |
% this section needs to be changed,\\[2pt] |
| 171 |
% \verb|\renewcommand{\bibname}{...}| |
| 172 |
% |
| 173 |
% |
| 174 |
% \section{Implementation} |
| 175 |
% |
| 176 |
% This package is meant for use with all AMS monograph series. |
| 177 |
% Two series, GSM and STML, have special requirements, so provide |
| 178 |
% matching strings that can be used to identify them. Other series |
| 179 |
% may be added to this list, so also provide a switch that can be |
| 180 |
% used to identify them collectively. |
| 181 |
% \begin{macrocode} |
| 182 |
\def\@gsm{gsm-l} |
| 183 |
\def\@stml{stml-l} |
| 184 |
\newif\if@ruledchapterhead |
| 185 |
\@ruledchapterheadfalse |
| 186 |
\ifx\@classname\@gsm \@ruledchapterheadtrue |
| 187 |
\else\ifx\@classname\@stml \@ruledchapterheadtrue |
| 188 |
\fi |
| 189 |
\fi |
| 190 |
% \end{macrocode} |
| 191 |
% |
| 192 |
% Some ramifications with running heads are best addressed with |
| 193 |
% defaults that can be overridden by options. |
| 194 |
% |
| 195 |
% First option: force ``standard'' (chapter/section) running heads. |
| 196 |
% \begin{macrocode} |
| 197 |
\newif\if@rhchapnum |
| 198 |
\@rhchapnumfalse |
| 199 |
\DeclareOption{rhchapnum}{\@rhchapnumtrue} |
| 200 |
% \end{macrocode} |
| 201 |
% |
| 202 |
% Next option: force ``standard'' (chapter/section) running heads. |
| 203 |
% This also turns on chapter numbers in the running heads. |
| 204 |
% \begin{macrocode} |
| 205 |
\newif\if@rhchapsec |
| 206 |
\@rhchapsecfalse |
| 207 |
\DeclareOption{rhchapsec}{\@rhchapsectrue \@rhchapnumtrue} |
| 208 |
% \end{macrocode} |
| 209 |
% |
| 210 |
% \begin{macrocode} |
| 211 |
\ProcessOptions\relax |
| 212 |
% \end{macrocode} |
| 213 |
% |
| 214 |
% \subsection{Chapter headings} |
| 215 |
% |
| 216 |
% \begin{macro}{@schaptera} |
| 217 |
% \begin{macro}{@schapterb} |
| 218 |
% In order to associate an author name with an unnumbered chapter, |
| 219 |
% we need to redefine \cs{@schapter} to accept a bracketed optional |
| 220 |
% version for the running head. The original version, without |
| 221 |
% optional text, is still required for the bibliography and index |
| 222 |
% as well as for other unauthored chapters. Use the original |
| 223 |
% \cs{@schapter} for this by giving it another name, and check |
| 224 |
% again for the presence of a bracketed option. |
| 225 |
% \begin{macrocode} |
| 226 |
\let\@schapterb\@schapter |
| 227 |
\def\@schapter{\secdef\@schaptera\@schapterb} |
| 228 |
\def\@schaptera[#1]#2{\typeout{#1}% |
| 229 |
\let\@secnumber\@empty |
| 230 |
\def\@toclevel{0}% |
| 231 |
\ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{#2}% |
| 232 |
\else \@tocwriteb\tocchapter{chapter}{#2}\fi |
| 233 |
\chaptermark{#1}% |
| 234 |
\addtocontents{lof}{\protect\addvspace{10\p@}}% |
| 235 |
\addtocontents{lot}{\protect\addvspace{10\p@}}% |
| 236 |
\@makeschapterhead{#2}\@afterheading |
| 237 |
} |
| 238 |
% \end{macrocode} |
| 239 |
% \end{macro} |
| 240 |
% \end{macro} |
| 241 |
% |
| 242 |
% \begin{macro}{@makechapterhead} |
| 243 |
% \begin{macro}{@makeschapterhead} |
| 244 |
% Redefine the commands \cs{@makechapterhead} and \cs{@makeschapterhead} |
| 245 |
% from the regular monograph document classes, handling special cases |
| 246 |
% as necessary. |
| 247 |
% \begin{macrocode} |
| 248 |
\def\@makechapterhead#1{% |
| 249 |
\ifx\@classname\@gsm \@makegsmchapterhead{#1}% |
| 250 |
\else \ifx\@classname\@stml \@makestmlchapterhead{#1}% |
| 251 |
\else \@makeplainchapterhead{#1}% |
| 252 |
\fi \fi |
| 253 |
} |
| 254 |
\newif\if@schapter \@schapterfalse |
| 255 |
\def\@makeschapterhead#1{% |
| 256 |
\@schaptertrue |
| 257 |
\ifx\@classname\@gsm \@makegsmchapterhead{#1}% |
| 258 |
\else \ifx\@classname\@stml \@makestmlchapterhead{#1}% |
| 259 |
\else \@makeplainschapterhead{#1}% |
| 260 |
\fi \fi |
| 261 |
} |
| 262 |
% \end{macrocode} |
| 263 |
% \end{macro} |
| 264 |
% \end{macro} |
| 265 |
% |
| 266 |
% \begin{macro}{@makeplainchapterhead} |
| 267 |
% \begin{macro}{@makeschapterhead} |
| 268 |
% The ``plain'' chapter head style is used for nearly all AMS |
| 269 |
% monograph series. The title is set in the usual style, with |
| 270 |
% the author name centered below in small caps.\\ |
| 271 |
% The author name is set up to be the left-hand running head, |
| 272 |
% as it would be for a journal or proceedings article. This |
| 273 |
% will be effected only for chapters with an \cn{author}. |
| 274 |
% It can also be suppressed with the \opt{[rhchapsec]} option.\\ |
| 275 |
% If a copyright notice is included, suppress it for the next |
| 276 |
% chapter. |
| 277 |
% \begin{macrocode} |
| 278 |
\def\@makeplainchapterhead#1{% |
| 279 |
\global\topskip 7.5pc\relax |
| 280 |
\@setcopyright |
| 281 |
\let\copyrightyear\@empty |
| 282 |
\begingroup |
| 283 |
\def\title{}% |
| 284 |
\def\author##1{% |
| 285 |
\if@rhchapsec |
| 286 |
\else \markleft{\MakeUppercase{##1}}% |
| 287 |
\fi |
| 288 |
\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}% |
| 289 |
\fontsize{\@xivpt}{18}\bfseries\centering |
| 290 |
\ifnum\c@secnumdepth>\m@ne |
| 291 |
\leavevmode \hskip-\leftskip |
| 292 |
\rlap{\vbox to\z@{\vss |
| 293 |
\centerline{\normalsize\mdseries |
| 294 |
\MakeUppercase{\chaptername}\enspace\thechapter} |
| 295 |
\vskip 3pc}}\hskip\leftskip |
| 296 |
\fi |
| 297 |
#1\par \endgroup |
| 298 |
\skip@34\p@ \advance\skip@-\normalbaselineskip |
| 299 |
\vskip\skip@ |
| 300 |
} |
| 301 |
\def\@makeschapterhead#1{% |
| 302 |
\global\topskip 7.5pc\relax |
| 303 |
\@setcopyright |
| 304 |
\let\copyrightyear\@empty |
| 305 |
\begingroup |
| 306 |
\def\title{}% |
| 307 |
\def\author##1{% |
| 308 |
\if@rhchapsec |
| 309 |
\else \markleft{\MakeUppercase{##1}}% |
| 310 |
\fi |
| 311 |
\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}% |
| 312 |
\fontsize{\@xivpt}{18}\bfseries\centering |
| 313 |
#1\par \endgroup |
| 314 |
\skip@34\p@ \advance\skip@-\normalbaselineskip |
| 315 |
\vskip\skip@ |
| 316 |
} |
| 317 |
% \end{macrocode} |
| 318 |
% \end{macro} |
| 319 |
% \end{macro} |
| 320 |
% |
| 321 |
% \begin{macro}{@makeruledchapterhead} |
| 322 |
% \begin{macro}{@makeruledschapterhead} |
| 323 |
% GSM and STML require a rule at the top of the page and a smaller |
| 324 |
% rule above the page number at the bottom. Other specs are |
| 325 |
% publication-specific. |
| 326 |
% \begin{macrocode} |
| 327 |
\def\@makeruledchapterhead#1{% |
| 328 |
\global\topskip\normaltopskip |
| 329 |
\begingroup |
| 330 |
\def\author##1{% |
| 331 |
\if@rhchapsec |
| 332 |
\else \markleft{##1}% |
| 333 |
\fi |
| 334 |
\\ \hfil \\ \@chapauthorstyle ##1}% |
| 335 |
\vbox to\topskip{% |
| 336 |
\chapter@number |
| 337 |
\vss |
| 338 |
}\penalty\@M |
| 339 |
\@chapheadstyle \raggedright |
| 340 |
\noindent #1\par \endgroup |
| 341 |
\if@index |
| 342 |
\@indexstyle |
| 343 |
\else |
| 344 |
\@dropfolio |
| 345 |
\@noindexstyle |
| 346 |
\fi |
| 347 |
\@afterheading |
| 348 |
} |
| 349 |
\def\@makeruledschapterhead#1{% |
| 350 |
\global\topskip\normaltopskip |
| 351 |
\begingroup |
| 352 |
\def\author##1{% |
| 353 |
\if@rhchapsec |
| 354 |
\else \markleft{##1}% |
| 355 |
\fi |
| 356 |
\\ \hfil \\ \@chapauthorstyle ##1}% |
| 357 |
\@chapheadstyle \raggedright |
| 358 |
\noindent #1\par \endgroup |
| 359 |
\if@index |
| 360 |
\@indexstyle |
| 361 |
\else |
| 362 |
\@dropfolio |
| 363 |
\@noindexstyle |
| 364 |
\fi |
| 365 |
\@afterheading |
| 366 |
} |
| 367 |
% \end{macrocode} |
| 368 |
% \end{macro} |
| 369 |
% \end{macro} |
| 370 |
% |
| 371 |
% \begin{macro}{@makegsmchapterhead} |
| 372 |
% The style for GSM requires a rule at the top of the page, with |
| 373 |
% the chapter title flush left, bold, and the author information |
| 374 |
% below the title also flush left and bold but in a smaller size. |
| 375 |
% \begin{macrocode} |
| 376 |
\def\@makegsmchapterhead#1{% |
| 377 |
\def\@chapheadstyle{\Huge\bfseries \hsize24pc |
| 378 |
\top@space{11pc}}% |
| 379 |
\def\@chapauthorstyle{\LARGE\bfseries}% |
| 380 |
\def\@indexstyle{% |
| 381 |
\ifx\@empty\indexintro |
| 382 |
\bb@space{7.5pc}% |
| 383 |
\else |
| 384 |
\vspace{3pc}% |
| 385 |
\begingroup \small |
| 386 |
\parbox[t]{27pc}{\leftskip3pc\normalfont\indexintro\par}% |
| 387 |
\endgroup |
| 388 |
\bb@space{3pc}% |
| 389 |
\fi |
| 390 |
}% |
| 391 |
\def\@noindexstyle{\bb@space{7.5pc}}% |
| 392 |
\if@schapter |
| 393 |
\@makeruledschapterhead{#1}% |
| 394 |
\else |
| 395 |
\@makeruledchapterhead{#1}% |
| 396 |
\fi |
| 397 |
} |
| 398 |
% \end{macrocode} |
| 399 |
% \end{macro} |
| 400 |
% |
| 401 |
% \begin{macro}{@makestmlchapterhead} |
| 402 |
% The style for STML is similar to that for GSM, except for the |
| 403 |
% smaller page size and the author information set in lightface |
| 404 |
% in the LARGE size. |
| 405 |
% \begin{macrocode} |
| 406 |
\def\@makestmlchapterhead#1{% |
| 407 |
\def\@chapheadstyle{\fontsize\@xxpt{22}\selectfont\bfseries\hsize 21pc |
| 408 |
\top@par@space{9pc}}% |
| 409 |
\def\@chapauthorstyle{\LARGE\mdseries}% |
| 410 |
\def\@indexstyle{% |
| 411 |
\ifx\@empty\indexintro |
| 412 |
\bb@par@space{6.5pc}% |
| 413 |
\else |
| 414 |
\vspace{2.5pc}% |
| 415 |
\begingroup \small |
| 416 |
\parbox[t]{22.5pc}{\leftskip2.5pc\normalfont\indexintro\par}% |
| 417 |
\endgroup |
| 418 |
\bb@par@space{2.5pc}% |
| 419 |
\fi |
| 420 |
}% |
| 421 |
\def\@noindexstyle{\bb@par@space{6.5pc}}% |
| 422 |
\if@schapter |
| 423 |
\@makeruledschapterhead{#1}% |
| 424 |
\else |
| 425 |
\@makeruledchapterhead{#1}% |
| 426 |
\fi |
| 427 |
} |
| 428 |
% \end{macrocode} |
| 429 |
% \end{macro} |
| 430 |
% |
| 431 |
% \subsection{Running heads} |
| 432 |
% |
| 433 |
% \begin{macro}{chapterrunhead} |
| 434 |
% Unless overridden by the \opt{[]} option, omit chapter numbers |
| 435 |
% from the right-hand running head with chapter title. (Explicit |
| 436 |
% line breaks with \verb|\\| are converted to spaces.) |
| 437 |
% \begin{macrocode} |
| 438 |
\if@rhchapnum |
| 439 |
\else |
| 440 |
\def\chapterrunhead#1#2#3{% |
| 441 |
\def\@tempa{#3}% |
| 442 |
\begingroup \def\\{ \ignorespaces}% |
| 443 |
\uppercasenonmath\@tempa\@tempa |
| 444 |
\endgroup |
| 445 |
} |
| 446 |
\fi |
| 447 |
% \end{macrocode} |
| 448 |
% \end{macro} |
| 449 |
% |
| 450 |
% \subsection{Part headings} |
| 451 |
% |
| 452 |
% \begin{macro}{@plainpart} |
| 453 |
% The ``plain'' part head style is used for nearly all AMS |
| 454 |
% monograph series. The title is set in the usual style, with |
| 455 |
% the author name centered below in italic. |
| 456 |
% \begin{macrocode} |
| 457 |
\def\partauthor{% |
| 458 |
\def\author##1{\newline\phantom{Part 1.\enspace}{\mdseries\scshape##1}}} |
| 459 |
\def\@part[#1]#2{% |
| 460 |
\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}% |
| 461 |
\addcontentsline{toc}{part}{\partname\ \thepart.% |
| 462 |
\protect\partauthor\protect\enspace\protect\noindent#1}% |
| 463 |
\else |
| 464 |
\addcontentsline{toc}{part}{#1}\fi |
| 465 |
\begingroup |
| 466 |
\def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}% |
| 467 |
\centering |
| 468 |
\ifnum \c@secnumdepth >-2\relax |
| 469 |
{\fontsize{\@xviipt}{22}\bfseries |
| 470 |
\partname\ \thepart} \vskip 20\p@ \fi |
| 471 |
\fontsize{\@xxpt}{25}\bfseries |
| 472 |
#1\vfil\vfil\endgroup \newpage\thispagestyle{empty}} |
| 473 |
\def\@spart#1{\addcontentsline{toc}{part}% |
| 474 |
{\protect\partauthor\protect\noindent#1}% |
| 475 |
\begingroup |
| 476 |
\def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}% |
| 477 |
\centering |
| 478 |
\fontsize{\@xxpt}{25}\bfseries |
| 479 |
#1\vfil\vfil\endgroup \newpage\thispagestyle{empty}} |
| 480 |
% \end{macrocode} |
| 481 |
% \end{macro} |
| 482 |
% |
| 483 |
% \subsection{Table of Contents} |
| 484 |
% |
| 485 |
% Allow more space for the page number than provided in \cls{amsbook}; |
| 486 |
% that is only 1.6em, and results in unpleasantly long text. |
| 487 |
% \begin{macrocode} |
| 488 |
\setbox\z@\hbox{\kern1.5pc 999} |
| 489 |
\renewcommand{\@pnumwidth}{\wd\z@} |
| 490 |
% \end{macrocode} |
| 491 |
% |
| 492 |
% \begin{macro}{@tocline} |
| 493 |
% Replace the \cs{@tocline} command to include the \cn{author} |
| 494 |
% information. This will be set in small caps on the line following |
| 495 |
% the chapter title, with the same indentation as the title. |
| 496 |
% \begin{macrocode} |
| 497 |
\def\@tocline#1#2#3#4#5#6#7{\relax |
| 498 |
\ifnum #1>\c@tocdepth % then omit |
| 499 |
\else |
| 500 |
\def\author##1{\newline\textsc{##1}}% |
| 501 |
\par \addpenalty\@secpenalty\addvspace{#2}% |
| 502 |
\begingroup \hyphenpenalty\@M |
| 503 |
\@ifempty{#4}{% |
| 504 |
\@tempdima\csname r@tocindent\number#1\endcsname\relax |
| 505 |
}{% |
| 506 |
\@tempdima#4\relax |
| 507 |
}% |
| 508 |
\parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax |
| 509 |
\rightskip\@pnumwidth plus.2\hsize \parfillskip-\@pnumwidth |
| 510 |
#5\leavevmode\hskip-\@tempdima #6\nobreak\relax |
| 511 |
\hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par |
| 512 |
\nobreak |
| 513 |
\endgroup |
| 514 |
\fi |
| 515 |
} |
| 516 |
% \end{macrocode} |
| 517 |
% \end{macro} |
| 518 |
% |
| 519 |
% \subsection{Other features} |
| 520 |
% |
| 521 |
% \subsubsection{Copyright notice} |
| 522 |
% A copyright notice is sometimes wanted on separately authored |
| 523 |
% chapters of a ``composite'' monograph or volume of collected works. |
| 524 |
% Provide the ability to add this feature if required, using the |
| 525 |
% same command, \cn{copyrightinfo}, used for journal and proceedings |
| 526 |
% articles. \cn{copyrightinfo} is present in \cls{amsbook}, so it |
| 527 |
% suffices to set an appropriate default to suppress it unless it |
| 528 |
% is requested explicitly. |
| 529 |
% \begin{macrocode} |
| 530 |
\let\copyrightyear\@empty |
| 531 |
% \end{macrocode} |
| 532 |
% |
| 533 |
% For now, don't allow a copyright notice for GSM or STML or other |
| 534 |
% books with a similar design. The need is unlikely, but the more |
| 535 |
% important reason is that the style needs rethinking if such a |
| 536 |
% notice is to be included. |
| 537 |
% \begin{macrocode} |
| 538 |
\if@ruledchapterhead \def\copyrightinfo#1#2{}\fi |
| 539 |
% \end{macrocode} |
| 540 |
% |
| 541 |
% \begin{macro}{barefootnote} |
| 542 |
% \subsubsection{``Bare'' footnotes} |
| 543 |
% Unnumbered footnotes (such as those that appear on the first page |
| 544 |
% of a journal or proceedings article) are needed to provide information |
| 545 |
% regarding earlier publication and the like. |
| 546 |
% \begin{macrocode} |
| 547 |
\newcommand{\barefootnote}[1]{{% |
| 548 |
\let\@makefnmark\relax \let\@thefnmark\relax |
| 549 |
\@footnotetext{#1}}} |
| 550 |
% \end{macrocode} |
| 551 |
% \end{macro} |
| 552 |
% |
| 553 |
% \begin{macro}{inchapterbibliography} |
| 554 |
% \subsubsection{Chapter-specific bibliography} |
| 555 |
% Separately authored chapters often have individual bibliographies, |
| 556 |
% which should be presented as sections, not chapters. For now, |
| 557 |
% disable the mark for the section header (copying the code from |
| 558 |
% the initial value in \cls{amsbook}); it should not appear as |
| 559 |
% the right-hand running head if the author/chapter title headers |
| 560 |
% are in effect. Still to be determined is whether the section title |
| 561 |
% ``Bibliography'' should appear in the running head if no author is |
| 562 |
% specified and the ``standard'' running heads are used. |
| 563 |
% \begin{macrocode} |
| 564 |
\newenvironment{inchapterbibliography}[1]{% |
| 565 |
\let\sectionmark\@gobble |
| 566 |
\@xp\section\@xp*\@xp{\bibname}% |
| 567 |
\normalfont\footnotesize\labelsep .5em\relax |
| 568 |
\renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty |
| 569 |
\list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}% |
| 570 |
\leftmargin\labelwidth \advance\leftmargin\labelsep |
| 571 |
\usecounter{enumiv}}% |
| 572 |
\sloppy \clubpenalty\@M \widowpenalty\clubpenalty |
| 573 |
\sfcode`\.=\@m |
| 574 |
}{% |
| 575 |
\def\@noitemerr{\@latex@warning{Empty `inchapterbibliography' environment}}% |
| 576 |
\endlist |
| 577 |
} |
| 578 |
% \end{macrocode} |
| 579 |
% \end{macro} |
| 580 |
% |
| 581 |
% \subsection{Boilerplate} |
| 582 |
% |
| 583 |
% The usual \cs{endinput} to ensure that random garbage at the end of |
| 584 |
% the file doesn't get copied by \fn{docstrip}. |
| 585 |
% \begin{macrocode} |
| 586 |
\endinput |
| 587 |
% \end{macrocode} |
| 588 |
% |
| 589 |
% \CheckSum{566} |
| 590 |
% \Finale |