From 414c0caafcdee7f3b275d68644ac718ce430a5bb Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Wed, 7 Mar 2018 22:11:17 +0000 Subject: [PATCH] Improved/checked position of self-archiving text for all currently supported classes (and the default configuration using article.cls). --- authorarchive.sty | 57 +++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/authorarchive.sty b/authorarchive.sty index 0f829a8..f6e7546 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -106,7 +106,7 @@ \setlength\AA@x{1in+\hoffset+\oddsidemargin} \newcommand{\authorcrfont}{\footnotesize} -\newcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{-\paperheight}){#1}}} +\newcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{.2cm-\paperheight}){#1}}} \newcommand{\authorwidth}[1]{\setlength{\AA@width}{#1}} \setlength{\AA@width}{\textwidth} @@ -122,7 +122,7 @@ \renewcommand{\conferenceinfo}[2]{} \renewcommand{\authorcrfont}{\scriptsize} \setlength\AA@x{1in+\hoffset+\oddsidemargin} - \setlength\AA@y{-\textheight+\topmargin+\headheight} % -\voffset-\topmargin-\headheight-\footskip} + \setlength\AA@y{-\textheight+\topmargin+\headheight-\footskip} % -\voffset-\topmargin-\headheight-\footskip} \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},\LenToUnit{\AA@y}){#1}} \setlength{\AA@width}{\columnwidth} \fi @@ -130,14 +130,14 @@ %%%% acmart.cls \ifAA@acmart% \setkeys{AA}{publisher=ACM} - \renewcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{-\paperheight}){#1}}} + \renewcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{0.2cm-\paperheight}){#1}}} \setlength{\AA@width}{\textwidth} \fi % %%%% LNCS \ifAA@LNCS% \setkeys{AA}{publisher=Springer-Verlag} - \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},27){#1}} + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},23){#1}} \renewcommand{\authorcrfont}{\scriptsize} \pdfpagesattr{/CropBox [92 65 523 731]}% LNCS page: 152x235 mm \setlength{\AA@width}{\textwidth} @@ -158,26 +158,15 @@ \ifAA@ENTCS% \addtolength{\voffset}{1cm} \setkeys{AA}{publisher=Elsevier Science B.~V.} - \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},-250){#1}} + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},\LenToUnit{-.5cm-\the\ht\AA@authoratBox}){#1}} \renewcommand{\authorcrfont}{\scriptsize} - \def\@oddfoot{} - \def\@evenfoot{} - \def\firstfootline{} - \headsep 8pt - \renewcommand\rightheadline{\ifnum\value{page}=\hypergetpageref{FirstPage}\relax - \else{\hfil\scriptsize\emph{\lastname / \AA@publication} \hfil {\rmfamily\thepage}}\fi} - \renewcommand\leftheadline{\scriptsize{\rmfamily\thepage} \hfil \emph{\lastname / - \AA@publication}\hfil} - % 467.717 x 680.315 pts - % \pdfpagesattr{/CropBox [70 110 535 850]} - \pdfpagesattr{/CropBox [70 95 535 775]} \setlength{\AA@width}{\textwidth} \fi % %%%% IEEE \ifAA@IEEE% \setkeys{AA}{publisher=IEEE Computer Society} - \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},12){#1}} + \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},6){#1}} \renewcommand{\authorcrfont}{\scriptsize} \setlength{\AA@width}{\textwidth} \setcounter{tocdepth}{2} @@ -194,22 +183,27 @@ \AtEndDocument{\label{LastPage}} + +\newsavebox{\AA@authoratBox} + \AddToShipoutPicture*{% \setlength{\unitlength}{1mm}% - \authorat{% - \bgroup% - \normallineskiplimit=0pt% - \ifAA@nourl% - \ifx\AA@doi\@empty% - \hspace{0.585cm} - \else% - \raisebox{.5cm}[.5cm]{\qrcode[hyperlink,height=1.17cm,padding]{https://doi.org/\AA@doi}}% - \fi% - \else% - \raisebox{.5cm}[.5cm]{\qrcode[hyperlink,height=1.17cm,padding]{\AA@baseurl/\AA@key\AA@suffix}}% - \fi% - \egroup% - \authorcrfont\parbox[b]{\AA@width-1.4cm}{ + \savebox{\AA@authoratBox}{% + \parbox{1.4cm}{% + \bgroup% + \normallineskiplimit=0pt% + \ifAA@nourl% + \ifx\AA@doi\@empty% + \hspace{0.585cm} + \else% + \qrcode[hyperlink,height=1.17cm,padding]{https://doi.org/\AA@doi}% + \fi% + \else% + \qrcode[hyperlink,height=1.17cm,padding]{\AA@baseurl/\AA@key\AA@suffix}% + \fi% + \egroup% + }% + \parbox{\AA@width-1.4cm}{\authorcrfont% \ifAA@LNCS% \AA@publication, pp. \thepage--\pageref{LastPage}, \AA@year. \ifAA@nocopyright\relax\else @@ -328,4 +322,5 @@ \fi } } + \authorat{\raisebox{\the\ht\AA@authoratBox}{\usebox{\AA@authoratBox}}} }