summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/aomart
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/aomart')
-rw-r--r--Master/texmf-dist/source/latex/aomart/aomart.dtx28
1 files changed, 24 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/aomart/aomart.dtx b/Master/texmf-dist/source/latex/aomart/aomart.dtx
index 0061436bdc6..df1ef074c70 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.50 2011-03-06 20:53:54 boris Exp $
+% $Id: aomart.dtx,v 1.51 2011-03-09 03:42:59 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{1031}
+% \CheckSum{1053}
%
%
%% \CharacterTable
@@ -675,7 +675,7 @@
\ProvidesFile{aomart.dtx}
%</gobble>
%<class>\ProvidesClass{aomart}
-[2011/03/06 v1.6 Typesetting articles for the Annals of Mathematics]
+[2011/03/08 v1.7 Typesetting articles for the Annals of Mathematics]
% \end{macrocode}
%
%
@@ -1004,7 +1004,27 @@
\chead{\scriptsize%
\href{\@annalsurl}{Annals of Mathematics} \textbf{\currentvolume}
(\currentyear),
- \start@page--\end@page\\
+% \end{macrocode}
+% \changes{v1.7}{2011/03/08}{Suppressed page number in the header for
+% one-page articles}
+% We always print the starting page. However, we print the last page
+% only if it does not coincide with the first page. There are two
+% cases here: first, the last page may still be
+% |\pageref{LastPage}|. In this case we need to extract the numerical
+% value of the counter---note that hyperref is in action!
+% Second, we could redefine the last page, and it is no
+% longer |\pageref{LastPage}|. In this case we need to compare the
+% value with the first page.
+% \begin{macrocode}
+ \start@page%
+ \def\tempa{\pageref{LastPage}}%
+ \edef\tempb{\start@page}%
+ \ifx\tempa\end@page
+ \edef\tempa{\HyPsd@@@pageref{LastPage}}%
+ \else
+ \edef\tempa{\end@page}%
+ \fi
+ \ifx\tempa\tempb\else--\end@page\fi\\
\ifx\@doinumber\@empty\else
\edef\@doinumber{\@doinumber}%
\expandafter\doi\expandafter{\@doinumber}\fi}%