summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/amscls/amsbooka.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-08-07 21:56:51 +0000
committerKarl Berry <karl@freefriends.org>2014-08-07 21:56:51 +0000
commit1cd7d0593b789a713e7e40d41871c7b0e44396ce (patch)
treecc44e378e9a284e12039c4656695e1d4b60e8505 /Master/texmf-dist/tex/latex/amscls/amsbooka.sty
parent94965adad023c311265b401a1e7bef667d92d745 (diff)
amscls (5aug14)
git-svn-id: svn://tug.org/texlive/trunk@34870 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/amscls/amsbooka.sty')
-rw-r--r--Master/texmf-dist/tex/latex/amscls/amsbooka.sty187
1 files changed, 113 insertions, 74 deletions
diff --git a/Master/texmf-dist/tex/latex/amscls/amsbooka.sty b/Master/texmf-dist/tex/latex/amscls/amsbooka.sty
index 280a1fcfc3b..129582cd689 100644
--- a/Master/texmf-dist/tex/latex/amscls/amsbooka.sty
+++ b/Master/texmf-dist/tex/latex/amscls/amsbooka.sty
@@ -5,53 +5,54 @@
%% 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.
+%%
+%% ========================================================================
%%
-%%% ====================================================================
-%%% @LaTeX-file{
-%%% filename = "amsbooka.dtx",
-%%% version = "2.06a",
-%%% date = "2008/06/24",
-%%% time = "09:46:14 EDT",
-%%% checksum = "07052 384 1313 12859",
-%%% author = "American Mathematical Society",
-%%% 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 to this file, please rename
-%%% it to some other name.",
-%%% address = "American Mathematical Society,
-%%% 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",
-%%% email = "tech-support@ams.org",
-%%% codetable = "ISO/ASCII",
-%%% keywords = "latex, AMS, amslatex, ams-latex, monograph",
-%%% supported = "yes",
-%%% abstract = "This is part of the AMS-\LaTeX{} distribution.
-%%% 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
-%%% for inclusion in the table of contents",
-%%% docstring = "The checksum field above contains a CRC-16
-%%% checksum as the first value, followed by the
-%%% equivalent of the standard UNIX wc (word
-%%% count) utility output of lines, words, and
-%%% characters. This is produced by Robert
-%%% Solovay's checksum utility.",
-%%% }
-%%% ====================================================================
\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}[2008/05/19 v2.06 monograph part/chapter authors]
+\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}%
@@ -66,7 +67,7 @@
}
\def\@makechapterhead#1{%
\ifx\@classname\@gsm \@makegsmchapterhead{#1}%
- \else \ifx\@classname\@stml \@makestmlchaphead{#1}%
+ \else \ifx\@classname\@stml \@makestmlchapterhead{#1}%
\else \@makeplainchapterhead{#1}%
\fi \fi
}
@@ -74,15 +75,21 @@
\def\@makeschapterhead#1{%
\@schaptertrue
\ifx\@classname\@gsm \@makegsmchapterhead{#1}%
- \else \ifx\@classname\@stml \@makestmlchaphead{#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{\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
+ \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
@@ -95,26 +102,34 @@
\skip@34\p@ \advance\skip@-\normalbaselineskip
\vskip\skip@
}
-\def\@makeschapterhead#1{\global\topskip 7.5pc\relax
+\def\@makeschapterhead#1{%
+ \global\topskip 7.5pc\relax
+ \@setcopyright
+ \let\copyrightyear\@empty
\begingroup
\def\title{}%
- \def\author##1{\vskip1pc\fontsize{\@xiipt}{14}\mdseries\textsc{##1}}%
+ \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\@makeruledchaphead#1{%
+\def\@makeruledchapterhead#1{%
\global\topskip\normaltopskip
\begingroup
- \def\author##1{\\ \hfil \\ \@chapauthorstyle ##1}%
- \if@schapter
- \else
- \vbox to\topskip{%
- \chapter@number
- \vss
- }\penalty\@M
- \fi
+ \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
@@ -125,10 +140,14 @@
\fi
\@afterheading
}
-\def\@makeruledschaphead#1{%
+\def\@makeruledschapterhead#1{%
\global\topskip\normaltopskip
\begingroup
- \def\author##1{\\ \hfil \\ \@chapauthorstyle ##1}%
+ \def\author##1{%
+ \if@rhchapsec
+ \else \markleft{##1}%
+ \fi
+ \\ \hfil \\ \@chapauthorstyle ##1}%
\@chapheadstyle \raggedright
\noindent #1\par \endgroup
\if@index
@@ -155,9 +174,13 @@
\fi
}%
\def\@noindexstyle{\bb@space{7.5pc}}%
- \@makeruledchaphead{#1}%
+ \if@schapter
+ \@makeruledschapterhead{#1}%
+ \else
+ \@makeruledchapterhead{#1}%
+ \fi
}
-\def\@makestmlchaphead#1{%
+\def\@makestmlchapterhead#1{%
\def\@chapheadstyle{\fontsize\@xxpt{22}\selectfont\bfseries\hsize 21pc
\top@par@space{9pc}}%
\def\@chapauthorstyle{\LARGE\mdseries}%
@@ -174,11 +197,20 @@
}%
\def\@noindexstyle{\bb@par@space{6.5pc}}%
\if@schapter
- \@makeruledschaphead{#1}%
+ \@makeruledschapterhead{#1}%
\else
- \@makeruledchaphead{#1}%
+ \@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{%
@@ -202,18 +234,6 @@
\centering
\fontsize{\@xxpt}{25}\bfseries
#1\vfil\vfil\endgroup \newpage\thispagestyle{empty}}
-\def\@makegsmparthead#1{%
- \def\@partheadstyle{\Huge\bfseries \hsize24pc
- \top@space{18pc}}%
- \def\@partauthorstyle{\LARGE\bfseries}%
- \if@spart
- \@makeruledsparthead{#1}%
- \else
- \@makeruledparthead{#1}%
- \fi
-}
-\def\@makestmlparthead#1{%
-}
\setbox\z@\hbox{\kern1.5pc 999}
\renewcommand{\@pnumwidth}{\wd\z@}
\def\@tocline#1#2#3#4#5#6#7{\relax
@@ -235,6 +255,25 @@
\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'.