Added option for replacing full ORCID identifier by ORCID iD icon and a hyperlink.

This commit is contained in:
Achim D. Brucker 2018-04-25 09:57:54 +01:00
parent 3cd8693c62
commit b9e9c3f686
2 changed files with 15 additions and 8 deletions

View File

@ -19,9 +19,9 @@
## Installation ## Installation
Copy `authorarchive.sty` in a directory that is searched by LaTeX Copy `authorarchive.sty` and the directory `icons` in a directory that
(e.g,. either your `texmf` tree or the local directory with your main is searched by LaTeX (e.g,. either your `texmf` tree or the local
LaTeX file. directory with your main LaTeX file.
## Usage ## Usage
@ -57,11 +57,12 @@ works nicely for Acta Informatica.
### Boolean Switches ### Boolean Switches
| Switch | Meaning | | Switch | Meaning |
| -- | -- | | -- | -- |
| `nocopyright` | If present, no publisher's copyright notice is printed. Usual case for LNCS. | | `nocopyright` | If present, no publisher's copyright notice is printed. Usual case for LNCS. |
| `nourl` | If present, no link to the publication is inserted. | | `nourl` | If present, no link to the publication is inserted. |
| `nobib` | If present, no embedding of bibliographic entries is made. | | `nobib` | If present, no embedding of bibliographic entries is made. |
| `orcidicon` | For layouts displaying the author's ORCID identifiers as text, replace the ORCID identifier by the ORICD iD icon and a hyperlink (currently only supported for LNCS). |
### Key/Value Options ### Key/Value Options

View File

@ -58,6 +58,7 @@
\DeclareBoolOption{nocopyright} \DeclareBoolOption{nocopyright}
\DeclareBoolOption{nourl} \DeclareBoolOption{nourl}
\DeclareBoolOption{nobib} \DeclareBoolOption{nobib}
\DeclareBoolOption{orcidicon}
%\ProcessOptions\relax %\ProcessOptions\relax
@ -136,6 +137,11 @@
% %
%%%% LNCS %%%% LNCS
\ifAA@LNCS% \ifAA@LNCS%
\ifAA@orcidicon%
\renewcommand{\orcidID}[1]{\href{https://orcid.org/#1}{%
\textsuperscript{\,\includegraphics[height=2\fontcharht\font`A]{vector_iD_icon}}}}
\else\relax\fi%
%
\setkeys{AA}{publisher=Springer-Verlag} \setkeys{AA}{publisher=Springer-Verlag}
\renewcommand{\authorcrfont}{\scriptsize} \renewcommand{\authorcrfont}{\scriptsize}
\@ifclasswith{llncs}{a4paper}{% \@ifclasswith{llncs}{a4paper}{%