Skip to content

Commit

Permalink
add ROR to affiliations
Browse files Browse the repository at this point in the history
  • Loading branch information
knarrff committed Feb 13, 2025
1 parent c217ced commit 567f23b
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 19 deletions.
11 changes: 9 additions & 2 deletions contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@
for author in data["authors"]:
if 'affiliations' in author:
affiliations.extend(author["affiliations"])
data["affiliations"] = {aff: i + 1 for i, aff in enumerate(list(dict.fromkeys(affiliations)))}
# make sure affiliations are not duplicated - here by checking for exact name string
affiliations = list({aff['name']: aff for aff in affiliations}.values())

# create and add unique index and also a reverse lookup table
data["affiliations"] = {i + 1: aff for i, aff in enumerate(affiliations)}
aff_index_by_name = {aff['name']: i for i, aff in data["affiliations"].items()}

# attach index to authors
for author in data["authors"]:
if 'affiliations' in author:
author["affiliations"] = [data["affiliations"][aff] for aff in author["affiliations"]]
author["affiliations"] = [aff_index_by_name[aff['name']] for aff in author["affiliations"]]

env = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.getcwd()),
Expand Down
4 changes: 2 additions & 2 deletions contributors.tex.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
{%- for author in data.authors %}
\author[​{% if author.affiliations %}{{ author.affiliations|join(", ") }}{% endif %}]{{ "{" }}{{ author.author }}{% if author.orcid is defined %}\texorpdfstring{\thinspace\orcidlink{ {{-author.orcid-}} }}{}{% endif %}{{ "}" }}
{%- endfor %}
{%- for affiliation, index in data.affiliations.items() %}
\affil[{{ index }}]{{ "{" }}{{ affiliation }}{{ "}" }}
{%- for index, affiliation in data.affiliations.items() %}
\affil[{{ index }}]{{ "{" }}{{ affiliation.name }}{% if affiliation.ror is defined %}\texorpdfstring{\thinspace\rorlink{ {{-affiliation.ror-}} }} {}{% endif %}{{ "}" }}
{%- endfor %}
45 changes: 30 additions & 15 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ authors:
lastName: Ankenbrandt
initials: MJA
affiliations:
- Center for Computational and Theoretical Biology, University of Würzburg, Germany
- name: Center for Computational and Theoretical Biology, University of Würzburg, Germany
ror: https://ror.org/00fbnyb24
orcid: 0000-0002-6620-807X

- author: "Leyla Jael Castro"
firstName: Leyla Jael
lastName: Castro
initials: LC
affiliations:
- Semantic Technologies team, ZB MED Information Centre for Life Sciences, Germany
- name: Semantic Technologies team, ZB MED Information Centre for Life Sciences, Germany
ror: https://ror.org/0259fwx54
orcid: 0000-0003-3986-0510
email: [email protected]

Expand All @@ -21,7 +23,8 @@ authors:
lastName: Caspart
initials: RC
affiliations:
- Scientific Computing Center, Karlsruher Institut für Technologie, Germany
- name: Scientific Computing Center, Karlsruher Institut für Technologie, Germany
ror: https://ror.org/04t3en479
orcid: 0000-0002-5502-9412
tier: 1

Expand All @@ -30,7 +33,8 @@ authors:
lastName: Flemisch
initials: BF
affiliations:
- Institute for Modelling Hydraulic and Environmental Systems, University of Stuttgart, Germany
- name: Institute for Modelling Hydraulic and Environmental Systems, University of Stuttgart, Germany
ror: https://ror.org/04vnq7t77
orcid: 0000-0001-8188-620X
email: [email protected]
tier: 1
Expand All @@ -40,7 +44,8 @@ authors:
lastName: Goth
initials: FG
affiliations:
- Institute for Theoretical Physics and Astrophysics, University of Würzburg, Germany
- name: Institute for Theoretical Physics and Astrophysics, University of Würzburg, Germany
ror: https://ror.org/00fbnyb24
orcid: 0000-0003-2707-4790
email: [email protected]
acknowledgements: |
Expand All @@ -54,7 +59,8 @@ authors:
lastName: Grad
initials: JNG
affiliations:
- Institute for Computational Physics, University of Stuttgart, Germany
- name: Institute for Computational Physics, University of Stuttgart, Germany
ror: https://ror.org/04vnq7t77
orcid: 0000-0002-5821-4912
email: [email protected]
acknowledgements: |
Expand All @@ -73,7 +79,8 @@ authors:
lastName: Hagdorn
initials: MH
affiliations:
- Geschäftsbereich IT, Charité Universitätsmedizin Berlin, Germany
- name: Geschäftsbereich IT, Charité Universitätsmedizin Berlin, Germany
ror: https://ror.org/001w7jn25
orcid: 0000-0002-5076-4864
email: [email protected]

Expand All @@ -82,7 +89,8 @@ authors:
lastName: Kempf
initials: DK
affiliations:
- Heidelberg University, Scientific Software Center, Germany
- name: Heidelberg University, Scientific Software Center, Germany
ror: https://ror.org/038t36y30
orcid: 0000-0002-6140-2332
email: [email protected]
acknowledgements: |
Expand All @@ -95,7 +103,8 @@ authors:
lastName: Linxweiler
initials: JL
affiliations:
- Technische Universität Braunschweig, Germany
- name: Technische Universität Braunschweig, Germany
ror: https://ror.org/010nsgg66
orcid: 0000-0002-2755-5087
email: [email protected]
tier: 1
Expand All @@ -105,7 +114,8 @@ authors:
lastName: Loewe
initials: AL
affiliations:
- Karlsruhre Institute of Technology (KIT)
- name: Karlsruhre Institute of Technology (KIT)
ror: https://ror.org/04t3en479
orcid: 0000-0002-2487-4744
email: [email protected]

Expand All @@ -114,7 +124,8 @@ authors:
lastName: Löffler
initials: FL
affiliations:
- Competence Center Digital Research, Friedrich Schiller University Jena, Germany
- name: Competence Center Digital Research, Friedrich Schiller University Jena, Germany
ror: https://ror.org/05qpz1x62
orcid: 0000-0001-6643-6323
email: [email protected]
tier: 1
Expand All @@ -124,7 +135,8 @@ authors:
lastName: Schäfer
initials: PMS
affiliations:
- Competence Center Digital Research, Friedrich Schiller University Jena, Germany
- name: Competence Center Digital Research, Friedrich Schiller University Jena, Germany
ror: https://ror.org/05qpz1x62
orcid: 0000-0003-3931-6670
email: [email protected]
tier: 1
Expand All @@ -134,7 +146,8 @@ authors:
lastName: Sommer
initials: PS
affiliations:
- Institute of Carbon Cycles, Helmholtz Coastal Data Center, Helmholtz-Zentrum Hereon, Germany
- name: Institute of Carbon Cycles, Helmholtz Coastal Data Center, Helmholtz-Zentrum Hereon, Germany
ror: https://ror.org/03qjp1d79
orcid: 0000-0001-6171-7716
email: [email protected]

Expand All @@ -143,7 +156,8 @@ authors:
lastName: Speck
initials: RS
affiliations:
- Jülich Supercomputing Centre, Forschungszentrum Jülich GmbH, Germany
- name: Jülich Supercomputing Centre, Forschungszentrum Jülich GmbH, Germany
ror: https://ror.org/02nv7yv05
orcid: 0000-0002-3879-1210
email: [email protected]
tier: 1
Expand All @@ -153,7 +167,8 @@ authors:
lastName: Struck
initials: AS
affiliations:
- Cluster of Excellence Matters of Activity. Image Space Material at Humboldt-Universitaet zu Berlin
- name: Cluster of Excellence Matters of Activity. Image Space Material at Humboldt-Universitaet zu Berlin
ror: https://ror.org/01hcx6992
orcid: 0000-0002-1173-9228
email: [email protected]
acknowledgements: |
Expand Down
1 change: 1 addition & 0 deletions paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

\usepackage{libertine}
\usepackage{orcidlink}
\usepackage{rorlink}
\renewcommand\Affilfont{\small}

\usepackage{hyperref}
Expand Down
81 changes: 81 additions & 0 deletions rorlink.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
%%
%% This is file `rorlink.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rorlink.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright (C) 2023 by Florian Lukas <[email protected]>
%% --------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{rorlink}
[2023/06/23 1.1.0 Linked ROR logo macro package]
%% Required packages
\RequirePackage{hyperref}
\RequirePackage{tikz}
\RequirePackage{xparse}
\RequirePackage{etoolbox}
%% Set standard color of the ROR institution
\definecolor{rorlogocol}{HTML}{53BAA1}
%% Set global option |blackwhite| for depicting the logo only in black and white.
\DeclareOption{blackwhite}{\definecolor{rorlogocol}{HTML}{000000}}
\DeclareOption*{\PackageWarning{rorlink}{Unknown option -- \CurrentOption --}}
\ProcessOptions\relax
%% Load tikz library for processing svg-paths.
\usetikzlibrary{svg.path}
%% The original svg-path received from the file \url{https://raw.githubusercontent.com/ror-community/ror-logos/main/ror-icon-rgb.svg}
\tikzset{
rorlogo/.pic={
\fill[rorlogocol] svg{M68.65,4.16L56.52,22.74L44.38,4.16L68.65,4.16Z}
svg{M119.41,4.16L107.28,22.74L95.14,4.16L119.41,4.16Z}
svg{M44.38,115.47L56.52,96.88L68.65,115.47L44.38,115.47Z}
svg{M95.14,115.47L107.28,96.88L119.41,115.47L95.14,115.47Z};
\fill[black] svg{M145.53,63.71C149.83,62.91 153.1,61 155.33,57.99C157.57,54.98 158.68,51.32 158.68,47.03C158.68,43.47 158.06,40.51 156.83,38.13C155.6,35.75 153.93,33.86 151.84,32.45C149.75,31.05 147.31,30.04 144.53,29.44C141.75,28.84 138.81,28.54 135.72,28.54L112.16,28.54L112.16,47.37C111.97,46.82 111.77,46.28 111.55,45.74C109.92,41.79 107.64,38.42 104.71,35.64C101.78,32.86 98.32,30.72 94.3,29.23C90.29,27.74 85.9,26.99 81.14,26.99C76.38,26.99 72,27.74 67.98,29.23C63.97,30.72 60.5,32.86 57.57,35.64C54.95,38.13 52.85,41.1 51.27,44.54C51.04,42.07 50.46,39.93 49.53,38.13C48.3,35.75 46.63,33.86 44.54,32.45C42.45,31.05 40.01,30.04 37.23,29.44C34.45,28.84 31.51,28.54 28.42,28.54L4.87,28.54L4.87,89.42L18.28,89.42L18.28,65.08L24.9,65.08L37.63,89.42L53.71,89.42L38.24,63.71C42.54,62.91 45.81,61 48.04,57.99C48.14,57.85 48.23,57.7 48.33,57.56C48.31,58.03 48.3,58.5 48.3,58.98C48.3,63.85 49.12,68.27 50.75,72.22C52.38,76.17 54.66,79.54 57.59,82.32C60.51,85.1 63.98,87.24 68,88.73C72.01,90.22 76.4,90.97 81.16,90.97C85.92,90.97 90.3,90.22 94.32,88.73C98.33,87.24 101.8,85.1 104.73,82.32C107.65,79.54 109.93,76.17 111.57,72.22C111.79,71.69 111.99,71.14 112.18,70.59L112.18,89.42L125.59,89.42L125.59,65.08L132.21,65.08L144.94,89.42L161.02,89.42L145.53,63.71ZM36.39,50.81C35.67,51.73 34.77,52.4 33.68,52.83C32.59,53.26 31.37,53.52 30.03,53.6C28.68,53.69 27.41,53.73 26.2,53.73L18.29,53.73L18.29,39.89L27.06,39.89C28.26,39.89 29.5,39.98 30.76,40.15C32.02,40.32 33.14,40.65 34.11,41.14C35.08,41.63 35.89,42.33 36.52,43.25C37.15,44.17 37.47,45.4 37.47,46.95C37.47,48.6 37.11,49.89 36.39,50.81ZM98.74,66.85C97.85,69.23 96.58,71.29 94.91,73.04C93.25,74.79 91.26,76.15 88.93,77.13C86.61,78.11 84.01,78.59 81.15,78.59C78.28,78.59 75.69,78.1 73.37,77.13C71.05,76.16 69.06,74.79 67.39,73.04C65.73,71.29 64.45,69.23 63.56,66.85C62.67,64.47 62.23,61.85 62.23,58.98C62.23,56.17 62.67,53.56 63.56,51.15C64.45,48.74 65.72,46.67 67.39,44.92C69.05,43.17 71.04,41.81 73.37,40.83C75.69,39.86 78.28,39.37 81.15,39.37C84.02,39.37 86.61,39.86 88.93,40.83C91.25,41.8 93.24,43.17 94.91,44.92C96.57,46.67 97.85,48.75 98.74,51.15C99.63,53.56 100.07,56.17 100.07,58.98C100.07,61.85 99.63,64.47 98.74,66.85ZM143.68,50.81C142.96,51.73 142.06,52.4 140.97,52.83C139.88,53.26 138.66,53.52 137.32,53.6C135.97,53.69 134.7,53.73 133.49,53.73L125.58,53.73L125.58,39.89L134.35,39.89C135.55,39.89 136.79,39.98 138.05,40.15C139.31,40.32 140.43,40.65 141.4,41.14C142.37,41.63 143.18,42.33 143.81,43.25C144.44,44.17 144.76,45.4 144.76,46.95C144.76,48.6 144.4,49.89 143.68,50.81Z};
}
}
%% The original height of the svg file is 119.27pt. The macro here uses 1/119.27 as unit.
\newcommand{\@OrigHeightRecipROR}{0.008384338}
%% The logo is adjusted to the used font size and an optional option |blackwhite| for depicting the logo in only black and white colors is set.
\newlength{\@curXheightROR}
\DeclareDocumentCommand\rorlink{om}{%
\IfNoValueTF{#1}{%
\texorpdfstring{%
\setlength{\@curXheightROR}{\fontcharht\font`X}%
\href{#2}{\XeTeXLinkBox{\mbox{%
\begin{tikzpicture}[yscale=-\@OrigHeightRecipROR*\@curXheightROR,%
xscale=\@OrigHeightRecipROR*\@curXheightROR,transform shape]%
\pic{rorlogo};%
\end{tikzpicture}%
}}}}{}%
}{%
\ifstrequal{#1}{blackwhite}{%
\begingroup%
\definecolor{rorlogocol}{HTML}{000000}
\texorpdfstring{%
\setlength{\@curXheightROR}{\fontcharht\font`X}%
\href{#2}{\XeTeXLinkBox{\mbox{%
\begin{tikzpicture}[yscale=-\@OrigHeightRecipROR*\@curXheightROR,%
xscale=\@OrigHeightRecipROR*\@curXheightROR,transform shape]%
\pic{rorlogo};%
\end{tikzpicture}%
}}}}{}%
\endgroup%
}{\PackageWarning{rorlink}{The defined optional argument is unknown, thus, set to blank.}{\rorlink{#2}}}%
}%
}%
\endinput% \end{macrocode}

\endinput
%%
%% End of file `rorlink.sty'.

0 comments on commit 567f23b

Please sign in to comment.