From b9e9c3f686246a5f040a84e2630aa27a51512d4f Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Wed, 25 Apr 2018 09:57:54 +0100 Subject: [PATCH] Added option for replacing full ORCID identifier by ORCID iD icon and a hyperlink. --- README.md | 17 +++++++++-------- authorarchive.sty | 6 ++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b697df7..dc4c6d1 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ ## Installation -Copy `authorarchive.sty` in a directory that is searched by LaTeX -(e.g,. either your `texmf` tree or the local directory with your main -LaTeX file. +Copy `authorarchive.sty` and the directory `icons` in a directory that +is searched by LaTeX (e.g,. either your `texmf` tree or the local +directory with your main LaTeX file. ## Usage @@ -57,11 +57,12 @@ works nicely for Acta Informatica. ### Boolean Switches -| Switch | Meaning | -| -- | -- | -| `nocopyright` | If present, no publisher's copyright notice is printed. Usual case for LNCS. | -| `nourl` | If present, no link to the publication is inserted. | -| `nobib` | If present, no embedding of bibliographic entries is made. | +| Switch | Meaning | +| -- | -- | +| `nocopyright` | If present, no publisher's copyright notice is printed. Usual case for LNCS. | +| `nourl` | If present, no link to the publication is inserted. | +| `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 diff --git a/authorarchive.sty b/authorarchive.sty index 82aacfe..5905fd9 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -58,6 +58,7 @@ \DeclareBoolOption{nocopyright} \DeclareBoolOption{nourl} \DeclareBoolOption{nobib} +\DeclareBoolOption{orcidicon} %\ProcessOptions\relax @@ -136,6 +137,11 @@ % %%%% 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} \renewcommand{\authorcrfont}{\scriptsize} \@ifclasswith{llncs}{a4paper}{%