summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/aomart
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-10 21:12:01 +0000
committerKarl Berry <karl@freefriends.org>2017-05-10 21:12:01 +0000
commit6d3c33529a0516037ff0b4534036366a978e00e7 (patch)
treebb24a4233fbac44f71a7a007424ec85763182ec0 /Master/texmf-dist/source/latex/aomart
parent282329a6844be443c1b77e547d48f5a849a62d68 (diff)
aomart (10may17)
git-svn-id: svn://tug.org/texlive/trunk@44282 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/aomart')
-rw-r--r--Master/texmf-dist/source/latex/aomart/aomart.dtx44
1 files changed, 34 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/aomart/aomart.dtx b/Master/texmf-dist/source/latex/aomart/aomart.dtx
index 4c3a87e8c66..9762462f6f4 100644
--- a/Master/texmf-dist/source/latex/aomart/aomart.dtx
+++ b/Master/texmf-dist/source/latex/aomart/aomart.dtx
@@ -1,5 +1,5 @@
% \iffalse
-% $Id: aomart.dtx,v 1.70 2017/04/13 02:24:55 boris Exp $
+% $Id: aomart.dtx,v 1.72 2017/05/09 19:25:37 boris Exp $
%
% Copyright 2010-2017, Princeton University (Mathematics Department)
% This work may be distributed and/or modified under the
@@ -23,7 +23,7 @@
% public domain.
%
% \fi
-% \CheckSum{1396}
+% \CheckSum{1441}
%
%
%% \CharacterTable
@@ -745,7 +745,7 @@
\ProvidesFile{aomart.dtx}
%</gobble>
%<class>\ProvidesClass{aomart}
-[2017/04/12 v1.19 Typesetting articles for the Annals of Mathematics]
+[2017/05/09 v1.20 Typesetting articles for the Annals of Mathematics]
% \end{macrocode}
%
%
@@ -1329,11 +1329,17 @@
%
% \begin{macro}{\subject}
% \changes{v1.18}{2017/02/15}{Drop scheme and primary/secondary}
+% \changes{v1.20}{2017/05/09}{Make primary and secondary subjects separated}
% Subjects:
% \begin{macrocode}
-\let\@subjects\@empty
-\def\subject#1#2#3{\ifx\@subjects\@empty\gdef\@subjects{#3}\else
- \g@addto@macro\@subjects{, #3}\fi}
+\let\@primarysubjects\@empty
+\let\@secondarysubjects\@empty
+\def\subject#1#2#3{%
+ \expandafter\ifx\csname @#1subjects\endcsname\@empty\relax
+ \expandafter\gdef\csname @#1subjects\endcsname{#3}%
+ \else
+ \expandafter\g@addto@macro\csname @#1subjects\endcsname{, #3}%
+ \fi}
% \end{macrocode}
%
% \end{macro}
@@ -1585,6 +1591,7 @@
% \changes{v1.16}{2016/12/03}{Added names, abstract, subjects,
% keywords, zblnumber, arxivnumber}
% \changes{v1.16}{2016/12/03}{Corrected the endpage bug}
+% \changes{v1.20}{2017/05/09}{Make primary and secondary subjects separated}
% This writes the information about the paper into the file
% |jobname.rpi|. Note that hyperref makes our life a little bit
% more complex
@@ -1633,7 +1640,8 @@
{\@percentchar arxiv=\@arxivnumber}%
\fi
\protected@write\@mainrpi{}%
- {\@percentchar subjects=\@subjects}%
+ {\@percentchar subjects=Primary \@primarysubjects; Secondary:
+ \@secondarysubjects}%
\protected@write\@mainrpi{}%
{\@percentchar keywords=\@keywords}%
\protected@write\@mainrpi{}%
@@ -1715,6 +1723,7 @@
%
% \begin{macro}{\@adminfootnotes}
% \changes{v1.11}{2012/07/23}{Added copyright statement}
+% \changes{v1.20}{2017/05/09}{Make primary and secondary subjects separated}
% We do not typeset keywords, so we change the definition:
% \begin{macrocode}
\def\@adminfootnotes{%
@@ -1722,7 +1731,10 @@
\ifx\@empty\@date\else \@footnotetext{\@setdate}\fi
\ifx\@empty\@subjclass\else \@footnotetext{\@setsubjclass}\fi
\ifx\@empty\@keywords\else\@setkeywords\fi
- \ifx\@empty\@subjects\else\@setsubjects\fi
+ \ifx\@empty\@primarysubjects
+ \ifx\@empty\@secondarysubjects
+ \else\@setsubjects\fi
+ \else\@setsubjects\fi
\ifx\@empty\thankses\else \@footnotetext{%
\def\par{\let\par\@par}\@setthanks}%
\fi
@@ -1752,14 +1764,26 @@
%
% \begin{macro}{\@setsubjects}
% \changes{v1.18}{2017/02/11}{Now we print subjects}
+% \changes{v1.20}{2017/05/09}{Make primary and secondary subjects separated}
% Setting subjects
% \begin{macrocode}
\def\@setsubjects{%
+ \let\@subjects\@empty
+ \ifx\@primarysubjects\@empty\else
+ \edef\@subjects{Primary: \@primarysubjects}%
+ \fi
+ \ifx\@secondarysubjects\@empty\else
+ \ifx\@primarysubjects\@empty
+ \edef\@subjects{Secondary: \@secondarysubjects}%
+ \else
+ \edef\@subjects{\@subjects; Secondary: \@secondarysubjects}%
+ \fi
+ \fi
\ifpdf
\hypersetup{pdfsubject=\@subjects}%
- \if@aom@oldkeywords\else
- \@footnotetext{AMS Classification: \@subjects}%
\fi
+ \if@aom@oldkeywords\else
+ \@footnotetext{AMS Classification: \@subjects.}%
\fi
}
% \end{macrocode}