summaryrefslogtreecommitdiff
path: root/title.tex
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-13 12:52:51 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-13 13:48:29 +0100
commit8595f75a94462d1edb2e9cd63060ac42d7fa87a9 (patch)
treec5a1b6a163475d3e4cdc0422cacbd80b5537357d /title.tex
parentaac88c8bfd610b97914d35eb1dccf9b250cecb43 (diff)
add affiliations, ORCID and ROR to PDF titlepage
Diffstat (limited to 'title.tex')
-rw-r--r--title.tex45
1 files changed, 44 insertions, 1 deletions
diff --git a/title.tex b/title.tex
index 540a370..8acfd6d 100644
--- a/title.tex
+++ b/title.tex
@@ -13,7 +13,50 @@ $else$
$endif$
\subtitle{$subtitle$}
$endif$
-\author{$for(authors)$$it.name.literal$$sep$ \and $endfor$}
+\usepackage{authblk,academicons}
+%\renewcommand*{\Authand}{ og }
+%\renewcommand*{\Authands}{ og }
+\renewcommand*{\Authsep}{\authorcr}
+\renewcommand*{\Authand}{\authorcr}
+\renewcommand*{\Authands}{\newline} %%new line after each author
+\newcommand*{\orcid}[1]{\href{https://orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
+\newcommand*{\rorid}[1]{\href{https://ror.org/#1}{\aiROR}}
+$for(by-author)$
+$if(it.attributes.equal-contributor)$% %% TODO: instead check lack of by-author.roles.supervisor
+\author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,∗$endif$$if(it.attributes.corresponding)$,†$endif$]{%
+ $it.name.literal$%
+ $if(it.orcid)$%
+ \,\orcid{$it.orcid$}%
+ $endif$%
+}
+$else$ %% FIXME: instead skip and append after author block
+\author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,∗$endif$$if(it.attributes.corresponding)$,†$endif$]{%
+ \newline
+ Vejleder:
+ $it.name.literal$%
+ $if(it.orcid)$%
+ \,\orcid{$it.orcid$}%
+ $endif$%
+}
+$endif$
+$endfor$
+$for(by-affiliation)$
+\affil[$it.number$]{%
+ $it.name$%
+ $if(it.department)$%
+ {,}$it.department$%
+ $endif$%
+ $if(it.ror)$%
+ \,\rorid{$it.ror$}%
+ $endif$%
+}
+$endfor$
+\affil[∗]{Disse forfattere bidrog ligeværdigt til dette arbejde.}
+$for(by-author)$
+$if(it.attributes.corresponding)$% %% TODO: somehow set a flag to ensure printing only once
+\affil[†]{Korresponderende forfatter.}
+$endif$
+$endfor$
\date{$date$}
$if(beamer)$
$if(institute)$