diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-08-02 19:32:51 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-08-02 19:32:51 +0000 |
commit | 9da978a0f7f3a7a4a43656242ba48b3c209b9a26 (patch) | |
tree | b52df8e4e5cd4a85aad2f9d1f83bd986b4f53a3a /Master/texmf-dist/source/latex | |
parent | 37def44d2d953c874d2c87a0167b1cec4bf620b2 (diff) |
aomart 1.9, 2011/06/13
git-svn-id: svn://tug.org/texlive/trunk@23349 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/aomart/aomart.dtx | 82 |
1 files changed, 72 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/aomart/aomart.dtx b/Master/texmf-dist/source/latex/aomart/aomart.dtx index df1ef074c70..155d99aa3f5 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.51 2011-03-09 03:42:59 boris Exp $ +% $Id: aomart.dtx,v 1.54 2011-06-21 21:34:22 boris Exp $ % % Copyright 2010-2011, Princeton University (Mathematics Department) % This work may be distributed and/or modified under the @@ -23,7 +23,7 @@ % public domain. % % \fi -% \CheckSum{1053} +% \CheckSum{1089} % % %% \CharacterTable @@ -183,7 +183,9 @@ % \progname{amsart}~\cite{Graetzer00:MathIntoLaTeX, amsldoc} can be used in the % source. % -% +% The class should work with the +% \progname{Babel}~\cite{Braams05:Babel} package. At present, +% English, French and German languages are fully supported. % % \DescribeOptions{draft,final} % The options |draft| and |final| work in the same way as for @@ -221,6 +223,13 @@ % 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 +% compatibility reasons. +% +% % \DescribeOptions{8pt,9pt,10pt,11pt,12pt} % The size-changing options of \progname{amsart} class (|8pt|, |9pt|, % \dots, |12pt|) have no effect other than producing a warning in the @@ -675,7 +684,7 @@ \ProvidesFile{aomart.dtx} %</gobble> %<class>\ProvidesClass{aomart} -[2011/03/08 v1.7 Typesetting articles for the Annals of Mathematics] +[2011/06/21 v1.10 Typesetting articles for the Annals of Mathematics] % \end{macrocode} % % @@ -726,7 +735,6 @@ \@aom@manuscript@modefalse \DeclareOption{manuscript}{\@aom@manuscript@modetrue} % \end{macrocode} -% % \end{macro} % % @@ -737,6 +745,16 @@ \newif\if@aom@screen@mode \@aom@screen@modefalse \DeclareOption{screen}{\@aom@screen@modetrue} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\if@aom@olddoi} +% \changes{v1.10}{2011/06/21}{Added old DOI processing} +% DOI processing is different in the ``old'' and new mode. +% \begin{macrocode} +\newif\if@aom@olddoi +\@aom@olddoifalse +\DeclareOption{olddoi}{\@aom@olddoitrue} % \end{macrocode} % % \end{macro} @@ -792,6 +810,44 @@ % % \changes{v0.4}{2010/09/29}{Deleted lineno package dependence} % +% +% +%\subsection{Internationalization} +%\label{sec:babel} +% +% There are some papers published in languages other than English. +% The \progname{Babel} is expected to be used for them. Here we add some +% macros extending captions for these languages. +% +% +% First, let us define English defaults: +% +% +% \begin{macro}{\@aom@by} +% \changes{v1.10}{2011/06/21}{Added macro} +% This is just ``By'' in English: +% \begin{macrocode} +\def\@aom@by{By} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\@aom@and} +% \changes{v1.10}{2011/06/21}{Added macro} +% This is ``and'' in English: +% \begin{macrocode} +\def\@aom@and{and} +% \end{macrocode} +% \end{macro} +% +% Now we can define internationalization: +% \begin{macrocode} +\AtBeginDocument{\@ifpackageloaded{babel}{% + \addto\captionsfrench{\def\@aom@by{Par}\def\@aom@and{et}}% + \addto\captionsgerman{\def\@aom@by{Von}\def\@aom@and{und}}% + \addto\captionsenglish{\def\@aom@by{By}\def\@aom@and{and}}}{}} +% \end{macrocode} +% +% %\subsection{Fonts} %\label{sec:fonts} % @@ -987,7 +1043,7 @@ \fancyhead[CE]{\scriptsize\MakeUppercase\shortauthors} % \end{macrocode} % -% \changes{v0.3}{2010/09/26}{Addec DOI number in headers} +% \changes{v0.3}{2010/09/26}{Added DOI number in headers} % \changes{v0.9}{2010/12/04}{Changed font for the folio on the first % page} % \changes{v1.3}{2011/01/07}{Corrected bug with doinumber} @@ -1320,8 +1376,10 @@ % \end{macrocode} % \end{macro} % +% % \begin{macro}{\@setauthors} % \changes{v0.6}{2010/11/04}{'By' and 'and' are in Roman font now} +% \changes{v1.10}{2011/06/21}{Internationalization} % Now we typeset authors according to our specs. Again, we use this % occasion to set some PDF information: % \begin{macrocode} @@ -1333,13 +1391,13 @@ \centering\footnotesize \@topsep30\p@\relax \advance\@topsep by -\baselineskip \item\relax - \def\@@and{{\upshape and}} + \def\@@and{{\upshape \@aom@and}} \author@andify\authors \ifpdf \hypersetup{pdfauthor=\authors}% \fi \def\\{\protect\linebreak}% - \small By \scshape\authors% + \small \@aom@by{} \scshape\authors% \ifx\@empty\contribs \else ,\penalty-3 \space \@setcontribs @@ -1404,10 +1462,11 @@ % % \begin{macro}{\@@and} % \changes{v0.9}{2010/12/04}{Redefined macro} +% \changes{v1.10}{2011/06/21}{Added internationalization} % We want ``and'' in the footers to be lowercase. Since there is % some uppercase involved, we protect it: % \begin{macrocode} -\def\@@and{\MakeLowercase{and}} +\def\@@and{\MakeLowercase{\@aom@and}} % \end{macrocode} % % \end{macro} @@ -1676,9 +1735,12 @@ % % \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} % Typesetting doi\dots % \begin{macrocode} -\def\doi#1{\href{http://dx.doi.org/#1}{doi: \path{#1}}} +\def\doi#1{\if@aom@olddoi\href{http://dx.doi.org/#1}{doi: \path{#1}}% +\else\url{http://dx.doi.org/#1}\fi} % \end{macrocode} % \end{macro} % |