aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_extensions/ruc-play/stylish-report/title.tex75
1 files changed, 73 insertions, 2 deletions
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$