If the option "startpage" is not given, do not refer to page page

ranges in the self archiving text.

Fixes: https://github.com/adbrucker/authorarchive/issues/10
This commit is contained in:
Achim D. Brucker 2018-06-23 13:41:15 +01:00
parent 6d84a22bd9
commit dab24ef4e5
1 changed files with 10 additions and 5 deletions

View File

@ -46,7 +46,7 @@
\DeclareStringOption[]{doi}[] \DeclareStringOption[]{doi}[]
\DeclareStringOption[]{doiText}[] \DeclareStringOption[]{doiText}[]
\DeclareStringOption[]{publisherurl}[] \DeclareStringOption[]{publisherurl}[]
\DeclareStringOption[1]{startpage}[] \DeclareStringOption[UNKNOWN START PAGE]{startpage}[]
\DeclareStringOption[UNKNOWN PUBLICATION]{publication}[] \DeclareStringOption[UNKNOWN PUBLICATION]{publication}[]
\DeclareBoolOption{ACM} \DeclareBoolOption{ACM}
@ -111,7 +111,12 @@
\newcommand{\authorwidth}[1]{\setlength{\AA@width}{#1}} \newcommand{\authorwidth}[1]{\setlength{\AA@width}{#1}}
\setlength{\AA@width}{\textwidth} \setlength{\AA@width}{\textwidth}
\setcounter{page}{\AA@startpage} \def\AA@pageinfo{}
\ifthenelse{\equal{\AA@startpage}{UNKNOWN START PAGE}}{%
}{%
\setcounter{page}{\AA@startpage}%
\def\AA@pageinfo{pp. \thepage--\pageref{\aa@lastpage}, }
}
@ -219,8 +224,8 @@
}% }%
\parbox{\AA@width-1.4cm}{\authorcrfont% \parbox{\AA@width-1.4cm}{\authorcrfont%
\ifAA@LNCS% \ifAA@LNCS%
\AA@publication, pp. \thepage--\pageref{\aa@lastpage}, \AA@year. \AA@publication, \AA@pageinfo \AA@year. %
\ifAA@nocopyright\relax\else \ifAA@nocopyright\else
\textcopyright~\AA@year~\AA@publisher. \textcopyright~\AA@year~\AA@publisher.
\fi \fi
This is the author's This is the author's
@ -255,7 +260,7 @@
by permission of \AA@publisher{} % by permission of \AA@publisher{} %
\fi \fi
for your personal use. Not for redistribution. The definitive for your personal use. Not for redistribution. The definitive
version was published in \emph{\AA@publication}, pp.~\thepage--\pageref{\aa@lastpage}, \AA@year% version was published in \emph{\AA@publication}, \AA@pageinfo \AA@year%
\ifx\AA@doi\@empty% \ifx\AA@doi\@empty%
\ifx\AA@publisherurl\@empty% \ifx\AA@publisherurl\@empty%
.% .%