From 272f2c578c295fd9afb1791ed86dd2b191278465 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 25 Feb 2018 22:02:08 +0100 Subject: [PATCH] Improve norul handling --- CHANGELOG.md | 2 ++ authorarchive.sty | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4dd498..f3fabd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Updated LNCS output to the requirements of [Springer's Consent to Publish v3](http://resource-cms.springer.com/springer-cms/rest/v1/content/731196/data/v3). +- If `nourl` is active, the DOI is used as link for the QR code. +- Text is centered if no QR code (`nourl` + no DOI) is generated. ## [1.0.0] - 2018-02-21 ### Added diff --git a/authorarchive.sty b/authorarchive.sty index 029f8a8..25a7136 100644 --- a/authorarchive.sty +++ b/authorarchive.sty @@ -201,7 +201,13 @@ \AddToShipoutPicture*{% \setlength{\unitlength}{1mm}% \authorat{% - \ifAA@nourl\relax\else% + \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% \authorcrfont\parbox[b]{\AA@width-1.4cm}{