From 295f42218614bf528aa01e4ca77b8a561e0360e2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 11 Feb 2025 23:15:37 +0100 Subject: include author metadata on front page --- _extensions/ruc-play/stylish-report/title.tex | 75 ++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) (limited to '_extensions') diff --git a/_extensions/ruc-play/stylish-report/title.tex b/_extensions/ruc-play/stylish-report/title.tex index 8783079..8fda033 100644 --- a/_extensions/ruc-play/stylish-report/title.tex +++ b/_extensions/ruc-play/stylish-report/title.tex @@ -13,7 +13,78 @@ $else$ $endif$ \subtitle{$subtitle$} $endif$ -\author{$for(authors)$$it.name.literal$$sep$ \and $endfor$} +\usepackage{marvosym} +\usepackage{authblk,academicons} +%\renewcommand*{\Authand}{ og } +%\renewcommand*{\Authands}{ og } +\renewcommand*{\Authsep}{\authorcr} +\renewcommand*{\Authand}{\authorcr} +\renewcommand*{\Authands}{\newline} %%new line after each author +\renewcommand{\Affilfont}{\small} +\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.metadata.credit.supervision)$ +$else$ +\author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,\YinYang$endif$$if(it.attributes.corresponding)$,∗$endif$]{% + $if(it.url)$% + \href{$it.url$}{% + $endif$% + $it.name.literal$% + $if(it.metadata.alternate)$% + \ ($for(it.metadata.alternate)$$it$$sep$,$endfor$)% + $endif$% + $if(it.url)$% + }% + $endif$% + $if(it.orcid)$% + \,\orcid{$it.orcid$}% + $endif$% +} +$endif$ +$endfor$ +$for(by-author)$ +$if(it.metadata.credit.supervision)$ +\author[$for(it.affiliations)$$it.number$$endfor$]{% + \vspace{1em} + Supervisor: + $if(it.url)$% + \href{$it.url$}{% + $endif$% + $it.name.literal$% + $if(it.metadata.alternate)$% + \ ($for(it.metadata.alternate)$$it$$sep$,$endfor$)% + $endif$% + $if(it.url)$% + }% + $endif$% + $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$ +$if(some-author-has.attributes.equal-contributor)$ +\affil[\YinYang]{These authors contributed equally to this work.} +$endif$ +$if(some-author-has.attributes.corresponding)$ +$for(by-author)$ +$if(it.attributes.corresponding)$% +\affil[∗]{Corresponding author: \href{mailto:$it.email$}{$it.email$}} +$endif$ +$endfor$ +$endif$ \date{$date$} $if(beamer)$ $if(institute)$ @@ -24,4 +95,4 @@ $if(titlegraphic)$ $if(logo)$ \logo{\includegraphics{$logo$}} $endif$ -$endif$ \ No newline at end of file +$endif$ -- cgit v1.2.3