diff options
author | Karl Berry <karl@freefriends.org> | 2016-11-19 22:47:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-11-19 22:47:11 +0000 |
commit | 45d8e3acad728d8fe33cb6087853108ec51c783b (patch) | |
tree | ea7bc3d70512543f172b1a1c59705642d5331870 /Master/texmf-dist/source/latex/aomart | |
parent | e538025ee4c38ccd1f1ce84ea84fe5278529cad6 (diff) |
aomart (19nov16)
git-svn-id: svn://tug.org/texlive/trunk@42540 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/aomart')
-rw-r--r-- | Master/texmf-dist/source/latex/aomart/aomart.dtx | 53 |
1 files changed, 42 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/aomart/aomart.dtx b/Master/texmf-dist/source/latex/aomart/aomart.dtx index 035d9b39f64..0952c51658c 100644 --- a/Master/texmf-dist/source/latex/aomart/aomart.dtx +++ b/Master/texmf-dist/source/latex/aomart/aomart.dtx @@ -1,7 +1,7 @@ % \iffalse -% $Id: aomart.dtx,v 1.63 2015-02-18 18:01:50 boris Exp $ +% $Id: aomart.dtx,v 1.64 2016/11/18 21:41:12 boris Exp $ % -% Copyright 2010-2012, Princeton University (Mathematics Department) +% Copyright 2010-2016, Princeton University (Mathematics Department) % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3 of this license or (at your option) any @@ -23,7 +23,7 @@ % public domain. % % \fi -% \CheckSum{1217} +% \CheckSum{1226} % % %% \CharacterTable @@ -229,12 +229,17 @@ % acticle. If this option is selected, the links are blue colored, % and the margins are reduced. % -% \DescribeOption{olddoi} -% Starting from version~1.9 the formatting of DOI numbers changed -% according to the new recommendations from CrossRef. The option -% |olddoi| switches on the ``old'' formatting. It is used for +% \DescribeOption{olddoi}% +% Starting from version~1.9 (2011) the formatting of DOI numbers +% changed according to the new recommendations from CrossRef. The +% option |olddoi| switches on the ``old'' formatting. It is used for % compatibility reasons. % +% \DescribeOption{doi2016}% +% Starting from version~1.5 (2016) the formatting of DOI numbers +% changed again according to Crossref recommendations. The option +% |doi2016| switches to the version existed between 2011 and 2016. +% % % \DescribeOptions{8pt,9pt,10pt,11pt,12pt} % The size-changing options of \progname{amsart} class (|8pt|, |9pt|, @@ -723,7 +728,7 @@ \ProvidesFile{aomart.dtx} %</gobble> %<class>\ProvidesClass{aomart} -[2015/02/18 v1.14a Typesetting articles for the Annals of Mathematics] +[2016/11/18 v1.15 Typesetting articles for the Annals of Mathematics] % \end{macrocode} % % @@ -798,6 +803,21 @@ % % \end{macro} % +% +% \begin{macro}{\if@aom@doiMMXVI} +% \changes{v1.15}{2016/11/18}{Added another options} +% DOI processing is different in the 2016 and new mode +% \begin{macrocode} +\newif\if@aom@doiMMXVI +\@aom@doiMMXVIfalse +\DeclareOption{doi2016}{\@aom@doiMMXVItrue} +% \end{macrocode} +% +% \end{macro} +% +% +% +% % All other options are passed to \progname{amsart}: % \begin{macrocode} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsart}} @@ -1903,11 +1923,22 @@ % \begin{macro}{\doi} % \changes{v1.2}{2011/01/05}{Now we properly treat numbers with underscores} % \changes{v1.9}{2011/06/13}{Changed doi look} -% \changes{v1.10}{2011/06/21}{Introduced the logic for old doi formatting} +% \changes{v1.10}{2011/06/21}{Introduced the logic for old doi +% formatting} +% \changes{v1.15}{2016/11/18}{Doi according to the new Crossref +% recommendations} % Typesetting doi\dots % \begin{macrocode} -\def\doi#1{\if@aom@olddoi\href{http://dx.doi.org/#1}{doi: \path{#1}}% -\else\url{http://dx.doi.org/#1}\fi} +\def\doi#1{% + \if@aom@doiMMXVI + \url{http://dx.doi.org/#1}% + \else + \if@aom@olddoi + \href{http://dx.doi.org/#1}{doi: \path{#1}}% + \else + \url{https://doi.org/#1}% + \fi + \fi} % \end{macrocode} % \end{macro} % |