summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/aomart
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-30 20:03:22 +0000
committerKarl Berry <karl@freefriends.org>2022-05-30 20:03:22 +0000
commite2f9c0f49df6e2b1aa60fff5ed97c2502fdb673d (patch)
treedbccf19a4c732e97978d0470b03d9efbe6f47089 /Master/texmf-dist/tex/latex/aomart
parent343d7e44799222c8d6b55d3590bced2b5ec4157c (diff)
aomart (30may22)
git-svn-id: svn://tug.org/texlive/trunk@63442 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/aomart')
-rw-r--r--Master/texmf-dist/tex/latex/aomart/aomart.cls72
1 files changed, 66 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/aomart/aomart.cls b/Master/texmf-dist/tex/latex/aomart/aomart.cls
index 539c9413def..b029c8af3cc 100644
--- a/Master/texmf-dist/tex/latex/aomart/aomart.cls
+++ b/Master/texmf-dist/tex/latex/aomart/aomart.cls
@@ -37,7 +37,7 @@
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{aomart}
-[2021/04/10 v1.25 Typesetting articles for the Annals of Mathematics]
+[2022/04/30 v1.27 Typesetting articles for the Annals of Mathematics]
\long\def\aom@size@warning#1{%
\ClassWarning{aomart}{Size-changing option #1 will not be
honored}}%
@@ -183,6 +183,7 @@
\annalsurl{http://annals.math.princeton.edu/about}
\@onlypreamble{\title}
\@onlypreamble{\author}
+\@onlypreamble{\contrib}
\@onlypreamble{\email}
\@onlypreamble{\address}
\@onlypreamble{\curraddr}
@@ -239,6 +240,53 @@
}
\edef\author{\@nx\@dblarg
\@xp\@nx\csname\string\author\endcsname}
+\def\@currentcontribution{}
+\def\@currentcontributors{}
+\def\contribs{}
+\newif\if@startcontribgroup
+\@startcontribgroupfalse
+\def\@processcurrentcontribgroup{%
+ \ifx\@currentcontributors\@empty\else
+ \def\@@and{{\upshape \@aom@and}}%
+ \author@andify\@currentcontributors
+ \ifx\contribs\@empty\else
+ \g@addto@macro\contribs{\and}%
+ \fi
+ \expandafter\g@addto@macro\expandafter\contribs
+ \expandafter{\@currentcontribution}%
+ \g@addto@macro\contribs{\space}%
+ \expandafter\g@addto@macro\expandafter\contribs
+ \expandafter{\@currentcontributors}%
+ \fi
+}
+\renewcommand{\contrib}[2][]{%
+ \def\@tempa{#1}%
+ \@startcontribgrouptrue
+ \ifx\@tempa\@empty\relax
+ \ifx\@currentcontribution\@empty\relax
+ \ClassError{aomart}{You must define contribution for
+ contributors}{The first \contrib command must have the
+ optional argument indicating the contribution}%
+ \else
+ \@startcontribgroupfalse
+ \fi
+ \fi
+ \ifx\@currentcontribution\@tempa\relax
+ \@startcontribgroupfalse
+ \fi
+ \if@startcontribgroup
+ \@processcurrentcontribgroup
+ \gdef\@currentcontribution{#1}%
+ \gdef\@currentcontributors{#2}%
+ \else
+ \g@addto@macro\@currentcontributors{\and#2}%
+ \fi
+ \g@addto@macro\@names{\and contributor=#2;}%
+ \g@addto@macro\@names{role=}%
+ \expandafter\g@addto@macro\expandafter%
+ \@names\expandafter{\@currentcontribution}%
+ \g@addto@macro\@names{;}%
+}
\renewcommand{\email}[2][]{%
\g@addto@macro\addresses{\email{#1}{#2}}%
\g@addto@macro\@names{email=#2;}%
@@ -404,7 +452,7 @@
{\@percentchar abstract=\@aom@abstract}%
\protected@write\@mainrpi{}%
{\@percentchar articlelanguage=\languagename}%
- \closeout\@mainrpi
+ \AtEndDocument{\closeout\@mainrpi}%
\fi
\egroup}
\def\@maketitle@hook{\aom@write@paper@info\global\let\@maketitle@hook\@empty}
@@ -425,24 +473,25 @@
\centering\footnotesize \@topsep30\p@\relax
\advance\@topsep by -\baselineskip
\item\relax
- \def\@@and{{\upshape \@aom@and}}
+ \def\@@and{{\upshape \@aom@and}}%
\author@andify\authors
\ifpdf
\hypersetup{pdfauthor=\authors}%
\fi
\def\\{\protect\linebreak}%
\small \@aom@by{} \scshape\authors%
+ \@processcurrentcontribgroup
\ifx\@empty\contribs
\else
,\penalty-3 \space \@setcontribs
- \@closetoccontribs
\fi
\endtrivlist
\endgroup
\fi}
\def\@setcontribs{%
- \@xcontribs
- {\scshape \xcontribs}%
+ \def\@@and{{\upshape \@aom@and}}%
+ \author@andify\contribs
+ \contribs
}
\def\@adminfootnotes{%
\let\@makefnmark\relax \let\@thefnmark\relax
@@ -629,6 +678,17 @@
\tabskip\z@skip
\cr
}
+\newcommand\funding[3][]{%
+ \protected@write\@mainrpi{}%
+ {\@percentchar sponsor=#2, grantid=#3}%
+ \def\@tempa{#1}\relax%
+ \ifx\@tempa\@empty\relax
+ \def\@tempb{#3}%
+ #2%
+ \ifx\@tempb\@empty\relax\else\ (grant~#3)\fi
+ \else
+ #1
+ \fi}
\endinput
%%
%% End of file `aomart.cls'.