diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-25 13:03:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-25 13:03:10 +0000 |
commit | 7b00186ba550c87b73c55cec261d0282300aa5a6 (patch) | |
tree | fe4dedea5ff55f5e31b6eb28724e29ffb72bdf29 /Master | |
parent | ce300eaa7e3071cd7f547d71d42aa8e64169c088 (diff) |
amsbooka.sty [only] update (20may08)
git-svn-id: svn://tug.org/texlive/trunk@8345 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/tex/latex/amscls/amsbooka.sty | 115 |
1 files changed, 85 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/amscls/amsbooka.sty b/Master/texmf-dist/tex/latex/amscls/amsbooka.sty index bb449b6677a..54d1862176f 100644 --- a/Master/texmf-dist/tex/latex/amscls/amsbooka.sty +++ b/Master/texmf-dist/tex/latex/amscls/amsbooka.sty @@ -9,33 +9,32 @@ %%% ==================================================================== %%% @LaTeX-file{ %%% filename = "amsbooka.dtx", -%%% version = "2.02", -%%% date = "2005/04/26", -%%% time = "13:19:26 EDT", +%%% version = "2.06", +%%% date = "2008/05/19", +%%% time = "09:46:14 EDT", %%% author = "American Mathematical Society", -%%% copyright = "Copyright 1995, 1999 American Mathematical Society, -%%% all rights reserved. Copying of this file is -%%% authorized only if either: -%%% (1) you make absolutely no changes to your copy, -%%% including name; OR -%%% (2) if you do make changes, you first rename it -%%% to some other name.", +%%% copyright = "Copyright 1995, 2008 American Mathematical Society. +%%% Licensed under the LaTeX Project Public License +%%% version 1.3c or (at your option) any later version. +%%% The latest version of this license is in +%%% http://www.latex-project.org/lppl.txt +%%% If you make any changes, please rename it to +%%% some other name.", %%% address = "American Mathematical Society, -%%% Technical Support, -%%% Electronic Products and Services, -%%% P. O. Box 6248, -%%% Providence, RI 02940, +%%% Publications Technical Group, +%%% 201 Charles Street, +%%% Providence, RI 02904-2294, %%% USA", %%% telephone = "401-455-4080 or (in the USA and Canada) %%% 800-321-4AMS (321-4267)", %%% FAX = "401-331-3842", -%%% checksum = "49141 298 1079 10230", -%%% email = "tech-support@ams.org (Internet)", +%%% checksum = "07052 384 1313 12859", +%%% email = "tech-support@ams.org", %%% codetable = "ISO/ASCII", %%% keywords = "latex, amslatex, ams-latex, monograph", %%% supported = "yes", %%% abstract = "This is part of the AMS-\LaTeX{} distribution. -%%% It contains code to augment the AMS-LaTeX{} +%%% It contains code to augment the AMS-\LaTeX{} %%% monograph document classes, providing the ability %%% to include an author's name along with a chapter %%% title, and to pass the author information along @@ -50,15 +49,35 @@ %%% ==================================================================== \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX) [1994/12/01]% LaTeX date must December 1994 or later -\ProvidesPackage{amsbooka}[2005/04/26 v2.02 monograph part/chapter authors] +\ProvidesPackage{amsbooka}[2008/05/19 v2.06 monograph part/chapter authors] \def\@gsm{gsm-l} \def\@stml{stml-l} +\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 \begingroup @@ -69,11 +88,22 @@ \leavevmode \hskip-\leftskip \rlap{\vbox to\z@{\vss \centerline{\normalsize\mdseries - \uppercase\@xp{\chaptername}\enspace\thechapter} - \vskip 3pc}}\hskip\leftskip\fi - #1\par \endgroup + \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 + \begingroup + \def\title{}% + \def\author##1{\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}% + \fontsize{\@xivpt}{18}\bfseries\centering + #1\par \endgroup \skip@34\p@ \advance\skip@-\normalbaselineskip - \vskip\skip@ } + \vskip\skip@ +} \def\@makeruledchapterhead#1{% \global\topskip\normaltopskip \begingroup @@ -87,8 +117,22 @@ \if@index \@indexstyle \else - \@dropfolio - \@noindexstyle + \@dropfolio + \@noindexstyle + \fi + \@afterheading +} +\def\@makeruledschapterhead#1{% + \global\topskip\normaltopskip + \begingroup + \def\author##1{\\ \hfil \\ \@chapauthorstyle ##1}% + \@chapheadstyle \raggedright + \noindent #1\par \endgroup + \if@index + \@indexstyle + \else + \@dropfolio + \@noindexstyle \fi \@afterheading } @@ -108,8 +152,12 @@ \fi }% \def\@noindexstyle{\bb@space{7.5pc}}% - \@makeruledchapterhead{#1}% - } + \if@schapter + \@makeruledschapterhead{#1}% + \else + \@makeruledchapterhead{#1}% + \fi +} \def\@makestmlchapterhead#1{% \def\@chapheadstyle{\fontsize\@xxpt{22}\selectfont\bfseries\hsize 21pc \top@par@space{9pc}}% @@ -126,8 +174,12 @@ \fi }% \def\@noindexstyle{\bb@par@space{6.5pc}}% - \@makeruledchapterhead{#1}% - } + \if@schapter + \@makeruledschapterhead{#1}% + \else + \@makeruledchapterhead{#1}% + \fi +} \def\partauthor{% \def\author##1{\newline\phantom{Part 1.\enspace}{\mdseries\scshape##1}}} \def\@part[#1]#2{% @@ -151,6 +203,8 @@ \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 @@ -163,12 +217,13 @@ \@tempdima#4\relax }% \parindent\z@ \leftskip#3\relax \advance\leftskip\@tempdima\relax - \rightskip\@pnumwidth plus4em \parfillskip-\@pnumwidth + \rightskip\@pnumwidth plus.2\hsize \parfillskip-\@pnumwidth #5\leavevmode\hskip-\@tempdima #6\nobreak\relax \hfil\hbox to\@pnumwidth{\@tocpagenum{#7}}\par \nobreak \endgroup - \fi} + \fi +} \endinput %% %% End of file `amsbooka.sty'. |