This commit implements to changes:

* If a dedicated publication/publisher option (e.g., IEEE, ACM, LNCS)
  is provided, do not overwrite publisher attribute. This allows to
  specify a different publisher if needed. This can, e.g., be use
  to specify a society of IEEE:

  \usepackage[IEEE,publisher={IEEE Computer Society}, ...]{authorarchive}

* Changed the default publisher for the IEEE option from "IEEE Computer
  Society" to "IEEE". Please use the publisher-option if you want to
  specify a society.

Closes: https://github.com/adbrucker/authorarchive/issues/12
This commit is contained in:
Achim D. Brucker 2018-07-03 18:51:36 +01:00
parent dab24ef4e5
commit a5325662ac
1 changed files with 20 additions and 8 deletions

View File

@ -40,8 +40,8 @@
\DeclareStringOption[.]{bibtexdir} \DeclareStringOption[.]{bibtexdir}
\DeclareStringOption[https://duckduckgo.com/?q=]{baseurl} \DeclareStringOption[https://duckduckgo.com/?q=]{baseurl}
\DeclareStringOption[.pdf]{suffix} \DeclareStringOption[.pdf]{suffix}
\DeclareStringOption[UNKOWN PUBLISHER]{publisher}[] \DeclareStringOption[UNKNOWN PUBLISHER]{publisher}[]
\DeclareStringOption[UNKOWN YEAR]{year}[] \DeclareStringOption[UNKNOWN YEAR]{year}[]
\DeclareStringOption[]{key}[] \DeclareStringOption[]{key}[]
\DeclareStringOption[]{doi}[] \DeclareStringOption[]{doi}[]
\DeclareStringOption[]{doiText}[] \DeclareStringOption[]{doiText}[]
@ -122,7 +122,9 @@
%%%% sig-alternate.cls %%%% sig-alternate.cls
\ifAA@ACM% \ifAA@ACM%
\setkeys{AA}{publisher=ACM} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=ACM}
}{}
\global\boilerplate={} \global\boilerplate={}
\global\copyrightetc={} \global\copyrightetc={}
\renewcommand{\conferenceinfo}[2]{} \renewcommand{\conferenceinfo}[2]{}
@ -135,7 +137,9 @@
% %
%%%% acmart.cls %%%% acmart.cls
\ifAA@acmart% \ifAA@acmart%
\setkeys{AA}{publisher=ACM} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=ACM}
}{}
\renewcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{0.2cm-\paperheight}){#1}}} \renewcommand{\authorat}[1]{\AtPageUpperLeft{\put(\LenToUnit{\AA@x},\LenToUnit{0.2cm-\paperheight}){#1}}}
\setlength{\AA@width}{\textwidth} \setlength{\AA@width}{\textwidth}
\fi \fi
@ -147,7 +151,9 @@
\textsuperscript{\,\includegraphics[height=2\fontcharht\font`A]{vector_iD_icon}}}} \textsuperscript{\,\includegraphics[height=2\fontcharht\font`A]{vector_iD_icon}}}}
\else\relax\fi% \else\relax\fi%
% %
\setkeys{AA}{publisher=Springer-Verlag} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=Springer-Verlag}
}{}
\renewcommand{\authorcrfont}{\scriptsize} \renewcommand{\authorcrfont}{\scriptsize}
\@ifclasswith{llncs}{a4paper}{% \@ifclasswith{llncs}{a4paper}{%
\pdfpagesattr{/CropBox [92 114 523 780]}% \pdfpagesattr{/CropBox [92 114 523 780]}%
@ -162,7 +168,9 @@
% %
%%%% LNI %%%% LNI
\ifAA@LNI% \ifAA@LNI%
\setkeys{AA}{publisher=GI} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=GI}
}{}
\renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},35){#1}} \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},35){#1}}
\renewcommand{\authorcrfont}{\scriptsize} \renewcommand{\authorcrfont}{\scriptsize}
\pdfpagesattr{/CropBox [70 65 526.378 748.15]} % TODO \pdfpagesattr{/CropBox [70 65 526.378 748.15]} % TODO
@ -173,7 +181,9 @@
%%%% ENTCS %%%% ENTCS
\ifAA@ENTCS% \ifAA@ENTCS%
\addtolength{\voffset}{1cm} \addtolength{\voffset}{1cm}
\setkeys{AA}{publisher=Elsevier Science B.~V.} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=Elsevier Science B.~V.}
}{}
\renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},\LenToUnit{-.5cm-\the\ht\AA@authoratBox}){#1}} \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},\LenToUnit{-.5cm-\the\ht\AA@authoratBox}){#1}}
\renewcommand{\authorcrfont}{\scriptsize} \renewcommand{\authorcrfont}{\scriptsize}
\setlength{\AA@width}{\textwidth} \setlength{\AA@width}{\textwidth}
@ -181,7 +191,9 @@
% %
%%%% IEEE %%%% IEEE
\ifAA@IEEE% \ifAA@IEEE%
\setkeys{AA}{publisher=IEEE Computer Society} \ifthenelse{\equal{\AA@publisher}{UNKNOWN PUBLISHER}}{%
\setkeys{AA}{publisher=IEEE}
}{}
\renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},6){#1}} \renewcommand{\authorat}[1]{\put(\LenToUnit{\AA@x},6){#1}}
\renewcommand{\authorcrfont}{\scriptsize} \renewcommand{\authorcrfont}{\scriptsize}
\setlength{\AA@width}{\textwidth} \setlength{\AA@width}{\textwidth}