summaryrefslogtreecommitdiff
path: root/_templates/title.tex
blob: 63360ee6ee49a0ba65c91e8a7c2697cf6f45be48 (plain)
  1. $if(title)$
  2. \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
  3. $endif$
  4. $if(subtitle)$
  5. $if(beamer)$
  6. $else$
  7. \usepackage{etoolbox}
  8. \makeatletter
  9. \providecommand{\subtitle}[1]{% add subtitle to \maketitle
  10.   \apptocmd{\@title}{\par {\large #1 \par}}{}{}
  11. }
  12. \makeatother
  13. $endif$
  14. \subtitle{$subtitle$}
  15. $endif$
  16. \usepackage{marvosym}
  17. \usepackage{authblk,academicons}
  18. %\renewcommand*{\Authand}{ og }
  19. %\renewcommand*{\Authands}{ og }
  20. \renewcommand*{\Authsep}{\authorcr}
  21. \renewcommand*{\Authand}{\authorcr}
  22. \renewcommand*{\Authands}{\newline} %%new line after each author
  23. \newcommand*{\orcid}[1]{\href{https://orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
  24. \newcommand*{\rorid}[1]{\href{https://ror.org/#1}{\aiROR}}
  25. $for(by-author)$
  26. $if(it.attributes.equal-contributor)$% %% TODO: instead check lack of by-author.roles.supervisor
  27. \author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,\YinYang$endif$$if(it.attributes.corresponding)$,∗$endif$]{%
  28. $it.name.literal$%
  29. $if(it.orcid)$%
  30. \,\orcid{$it.orcid$}%
  31. $endif$%
  32. }
  33. $else$ %% FIXME: instead skip and append after author block
  34. \author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,\YinYang$endif$$if(it.attributes.corresponding)$,∗$endif$]{%
  35. \newline
  36. Vejleder:
  37. $it.name.literal$%
  38. $if(it.orcid)$%
  39. \,\orcid{$it.orcid$}%
  40. $endif$%
  41. }
  42. $endif$
  43. $endfor$
  44. $for(by-affiliation)$
  45. \affil[$it.number$]{%
  46. $it.name$%
  47. $if(it.department)$%
  48. {,}$it.department$%
  49. $endif$%
  50. $if(it.ror)$%
  51. \,\rorid{$it.ror$}%
  52. $endif$%
  53. }
  54. $endfor$
  55. \affil[\YinYang]{Disse forfattere bidrog ligeværdigt til dette arbejde.}
  56. $for(by-author)$
  57. $if(it.attributes.corresponding)$% %% TODO: somehow set a flag to ensure printing only once
  58. \affil[]{Korresponderende forfatter: \href{mailto:$it.email$}{$it.email$}}
  59. $endif$
  60. $endfor$
  61. \date{$date$}
  62. $if(beamer)$
  63. $if(institute)$
  64. \institute{$for(institute)$$institute$$sep$ \and $endfor$}
  65. $endif$
  66. $if(titlegraphic)$
  67. \titlegraphic{\includegraphics{$titlegraphic$}}
  68. $endif$
  69. $if(logo)$
  70. \logo{\includegraphics{$logo$}}
  71. $endif$
  72. $endif$