From fa40a612ee2e372281bde0d187c97335904b47f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20L=C3=B6ffler?= Date: Mon, 1 Sep 2025 08:45:42 +0200 Subject: [PATCH] enable orcid and ror links in plos template --- contributors_plos.tex.j2 | 4 ++-- paper.tex | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contributors_plos.tex.j2 b/contributors_plos.tex.j2 index ea664cc..64f66ab 100644 --- a/contributors_plos.tex.j2 +++ b/contributors_plos.tex.j2 @@ -6,12 +6,12 @@ % Note: the zero-width character <200b> is in here on purpose (to not mess up authors without % affiliation) {%- for author in data.authors %} -{{ author.author }}​{% if author.affiliations %}\textsuperscript{{ "{" }}{{ author.affiliations|join(",") }}{% if author.corresponding_author is defined and author.corresponding_author %}*{% endif %}{{ "}" }}{% endif %} +{{ author.author }}​{% if author.affiliations %}\textsuperscript{{ "{" }}{{ author.affiliations|join(",") }}{% if author.corresponding_author is defined and author.corresponding_author %}*{% endif %}{% if author.orcid is defined %}\texorpdfstring{\thinspace\orcidlink{ {{-author.orcid-}} }}{}{% endif %}{{ "}" }}{% endif %} {%- endfor %} \\ \bigskip {%- for index, affiliation in data.affiliations.items() %} -\textbf{{ "{" }}{{ index }}{{ "}" }} {{ affiliation.name }} +\textbf{{ "{" }}{{ index }}{{ "}" }} {{ affiliation.name }}{% if affiliation.ror is defined %}\texorpdfstring{\thinspace\rorlink{ {{-affiliation.ror-}} }} {}{% endif %} \\ {%- endfor %} \bigskip diff --git a/paper.tex b/paper.tex index 3ea05b4..a7d4c2a 100644 --- a/paper.tex +++ b/paper.tex @@ -35,6 +35,9 @@ % colour can be used to apply background shading to table cells only \usepackage[table]{xcolor} +\usepackage{orcidlink} +\usepackage{rorlink} + % array package and thick rules for tables \usepackage{array}