You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tex-compiler/texmf-dist/tex/latex/amscls/amsbooka.sty

279 lines
7.8 KiB

%%
%% This is file `amsbooka.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% amsbooka.dtx
%% This is a generated file.
%%
%% Copyright 1995, 2008, 2014 American Mathematical Society.
%%
%% American Mathematical Society
%% Technical Support
%% Publications Technical Group
%% 201 Charles Street
%% Providence, RI 02904
%% USA
%% tel: (401) 455-4080
%% (800) 321-4267 (USA and Canada only)
%% fax: (401) 331-3842
%% email: tech-support@ams.org
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is the American Mathematical
%% Society.
%%
%% ========================================================================
%%
\NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
[1995/06/01]% LaTeX date must be June 1995 or later
\ProvidesPackage{amsbooka}[2014/07/11 v2.08 monograph part/chapter authors]
\def\@gsm{gsm-l}
\def\@stml{stml-l}
\newif\if@ruledchapterhead
\@ruledchapterheadfalse
\ifx\@classname\@gsm \@ruledchapterheadtrue
\else\ifx\@classname\@stml \@ruledchapterheadtrue
\fi
\fi
\newif\if@rhchapnum
\@rhchapnumfalse
\DeclareOption{rhchapnum}{\@rhchapnumtrue}
\newif\if@rhchapsec
\@rhchapsecfalse
\DeclareOption{rhchapsec}{\@rhchapsectrue \@rhchapnumtrue}
\ProcessOptions\relax
\let\@schapterb\@schapter
\def\@schapter{\secdef\@schaptera\@schapterb}
\def\@schaptera[#1]#2{\typeout{#1}%
\let\@secnumber\@empty
\def\@toclevel{0}%
\ifx\chaptername\appendixname \@tocwriteb\tocappendix{chapter}{#2}%
\else \@tocwriteb\tocchapter{chapter}{#2}\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\@makeschapterhead{#2}\@afterheading
}
\def\@makechapterhead#1{%
\ifx\@classname\@gsm \@makegsmchapterhead{#1}%
\else \ifx\@classname\@stml \@makestmlchapterhead{#1}%
\else \@makeplainchapterhead{#1}%
\fi \fi
}
\newif\if@schapter \@schapterfalse
\def\@makeschapterhead#1{%
\@schaptertrue
\ifx\@classname\@gsm \@makegsmchapterhead{#1}%
\else \ifx\@classname\@stml \@makestmlchapterhead{#1}%
\else \@makeplainschapterhead{#1}%
\fi \fi
}
\def\@makeplainchapterhead#1{%
\global\topskip 7.5pc\relax
\@setcopyright
\let\copyrightyear\@empty
\begingroup
\def\title{}%
\def\author##1{%
\if@rhchapsec
\else \markleft{\MakeUppercase{##1}}%
\fi
\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
\fontsize{\@xivpt}{18}\bfseries\centering
\ifnum\c@secnumdepth>\m@ne
\leavevmode \hskip-\leftskip
\rlap{\vbox to\z@{\vss
\centerline{\normalsize\mdseries
\MakeUppercase{\chaptername}\enspace\thechapter}
\vskip 3pc}}\hskip\leftskip
\fi
#1\par \endgroup
\skip@34\p@ \advance\skip@-\normalbaselineskip
\vskip\skip@
}
\def\@makeschapterhead#1{%
\global\topskip 7.5pc\relax
\@setcopyright
\let\copyrightyear\@empty
\begingroup
\def\title{}%
\def\author##1{%
\if@rhchapsec
\else \markleft{\MakeUppercase{##1}}%
\fi
\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
\fontsize{\@xivpt}{18}\bfseries\centering
#1\par \endgroup
\skip@34\p@ \advance\skip@-\normalbaselineskip
\vskip\skip@
}
\def\@makeruledchapterhead#1{%
\global\topskip\normaltopskip
\begingroup
\def\author##1{%
\if@rhchapsec
\else \markleft{##1}%
\fi
\\ \hfil \\ \@chapauthorstyle ##1}%
\vbox to\topskip{%
\chapter@number
\vss
}\penalty\@M
\@chapheadstyle \raggedright
\noindent #1\par \endgroup
\if@index
\@indexstyle
\else
\@dropfolio
\@noindexstyle
\fi
\@afterheading
}
\def\@makeruledschapterhead#1{%
\global\topskip\normaltopskip
\begingroup
\def\author##1{%
\if@rhchapsec
\else \markleft{##1}%
\fi
\\ \hfil \\ \@chapauthorstyle ##1}%
\@chapheadstyle \raggedright
\noindent #1\par \endgroup
\if@index
\@indexstyle
\else
\@dropfolio
\@noindexstyle
\fi
\@afterheading
}
\def\@makegsmchapterhead#1{%
\def\@chapheadstyle{\Huge\bfseries \hsize24pc
\top@space{11pc}}%
\def\@chapauthorstyle{\LARGE\bfseries}%
\def\@indexstyle{%
\ifx\@empty\indexintro
\bb@space{7.5pc}%
\else
\vspace{3pc}%
\begingroup \small
\parbox[t]{27pc}{\leftskip3pc\normalfont\indexintro\par}%
\endgroup
\bb@space{3pc}%
\fi
}%
\def\@noindexstyle{\bb@space{7.5pc}}%
\if@schapter
\@makeruledschapterhead{#1}%
\else
\@makeruledchapterhead{#1}%
\fi
}
\def\@makestmlchapterhead#1{%
\def\@chapheadstyle{\fontsize\@xxpt{22}\selectfont\bfseries\hsize 21pc
\top@par@space{9pc}}%
\def\@chapauthorstyle{\LARGE\mdseries}%
\def\@indexstyle{%
\ifx\@empty\indexintro
\bb@par@space{6.5pc}%
\else
\vspace{2.5pc}%
\begingroup \small
\parbox[t]{22.5pc}{\leftskip2.5pc\normalfont\indexintro\par}%
\endgroup
\bb@par@space{2.5pc}%
\fi
}%
\def\@noindexstyle{\bb@par@space{6.5pc}}%
\if@schapter
\@makeruledschapterhead{#1}%
\else
\@makeruledchapterhead{#1}%
\fi
}
\if@rhchapnum
\else
\def\chapterrunhead#1#2#3{%
\def\@tempa{#3}%
\begingroup \def\\{ \ignorespaces}%
\uppercasenonmath\@tempa\@tempa
\endgroup
}
\fi
\def\partauthor{%
\def\author##1{\newline\phantom{Part 1.\enspace}{\mdseries\scshape##1}}}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}%
\addcontentsline{toc}{part}{\partname\ \thepart.%
\protect\partauthor\protect\enspace\protect\noindent#1}%
\else
\addcontentsline{toc}{part}{#1}\fi
\begingroup
\def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}%
\centering
\ifnum \c@secnumdepth >-2\relax
{\fontsize{\@xviipt}{22}\bfseries
\partname\ \thepart} \vskip 20\p@ \fi
\fontsize{\@xxpt}{25}\bfseries
#1\vfil\vfil\endgroup \newpage\thispagestyle{empty}}
\def\@spart#1{\addcontentsline{toc}{part}%
{\protect\partauthor\protect\noindent#1}%
\begingroup
\def\author##1{\\ \hfil \\ \fontsize{\@xivpt}{20}\mdseries\itshape ##1}%
\centering
\fontsize{\@xxpt}{25}\bfseries
#1\vfil\vfil\endgroup \newpage\thispagestyle{empty}}
\setbox\z@\hbox{\kern1.5pc 999}
\renewcommand{\@pnumwidth}{\wd\z@}
\def\@tocline#1#2#3#4#5#6#7{\relax
\ifnum #1>\c@tocdepth % then omit
\else
\def\author##1{\newline\textsc{##1}}%
\par \addpenalty\@secpenalty\addvspace{#2}%
\begingroup \hyphenpenalty\@M
\@ifempty{#4}{%
\@tempdima\csname r@tocindent\number#1\endcsname\relax
}{%
\@tempdima#4\relax
}%
\parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax
\rightskip\@pnumwidth plus.2\hsize \parfillskip-\@pnumwidth
#5\leavevmode\hskip-\@tempdima #6\nobreak\relax
\hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par
\nobreak
\endgroup
\fi
}
\let\copyrightyear\@empty
\if@ruledchapterhead \def\copyrightinfo#1#2{}\fi
\newcommand{\barefootnote}[1]{{%
\let\@makefnmark\relax \let\@thefnmark\relax
\@footnotetext{#1}}}
\newenvironment{inchapterbibliography}[1]{%
\let\sectionmark\@gobble
\@xp\section\@xp*\@xp{\bibname}%
\normalfont\footnotesize\labelsep .5em\relax
\renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty
\list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth \advance\leftmargin\labelsep
\usecounter{enumiv}}%
\sloppy \clubpenalty\@M \widowpenalty\clubpenalty
\sfcode`\.=\@m
}{%
\def\@noitemerr{\@latex@warning{Empty `inchapterbibliography' environment}}%
\endlist
}
\endinput
%%
%% End of file `amsbooka.sty'.