aboutsummaryrefslogtreecommitdiff
path: root/title.tex
blob: 8acfd6df22b62cc15407ff3016833d9d286d24d3 (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{authblk,academicons}
  17. %\renewcommand*{\Authand}{ og }
  18. %\renewcommand*{\Authands}{ og }
  19. \renewcommand*{\Authsep}{\authorcr}
  20. \renewcommand*{\Authand}{\authorcr}
  21. \renewcommand*{\Authands}{\newline} %%new line after each author
  22. \newcommand*{\orcid}[1]{\href{https://orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
  23. \newcommand*{\rorid}[1]{\href{https://ror.org/#1}{\aiROR}}
  24. $for(by-author)$
  25. $if(it.attributes.equal-contributor)$% %% TODO: instead check lack of by-author.roles.supervisor
  26. \author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,∗$endif$$if(it.attributes.corresponding)$,†$endif$]{%
  27. $it.name.literal$%
  28. $if(it.orcid)$%
  29. \,\orcid{$it.orcid$}%
  30. $endif$%
  31. }
  32. $else$ %% FIXME: instead skip and append after author block
  33. \author[$for(it.affiliations)$$it.number$$endfor$$if(it.attributes.equal-contributor)$,∗$endif$$if(it.attributes.corresponding)$,†$endif$]{%
  34. \newline
  35. Vejleder:
  36. $it.name.literal$%
  37. $if(it.orcid)$%
  38. \,\orcid{$it.orcid$}%
  39. $endif$%
  40. }
  41. $endif$
  42. $endfor$
  43. $for(by-affiliation)$
  44. \affil[$it.number$]{%
  45. $it.name$%
  46. $if(it.department)$%
  47. {,}$it.department$%
  48. $endif$%
  49. $if(it.ror)$%
  50. \,\rorid{$it.ror$}%
  51. $endif$%
  52. }
  53. $endfor$
  54. \affil[]{Disse forfattere bidrog ligeværdigt til dette arbejde.}
  55. $for(by-author)$
  56. $if(it.attributes.corresponding)$% %% TODO: somehow set a flag to ensure printing only once
  57. \affil[]{Korresponderende forfatter.}
  58. $endif$
  59. $endfor$
  60. \date{$date$}
  61. $if(beamer)$
  62. $if(institute)$
  63. \institute{$for(institute)$$institute$$sep$ \and $endfor$}
  64. $endif$
  65. $if(titlegraphic)$
  66. \titlegraphic{\includegraphics{$titlegraphic$}}
  67. $endif$
  68. $if(logo)$
  69. \logo{\includegraphics{$logo$}}
  70. $endif$
  71. $endif$