The quarto document quarto-file.md repeats the same affiliations:
---
title: "Hey!"
author:
- name: Birdy Bird
affiliations:
- University of Birds
- name: None
affiliations:
- University of Birds
format:
pdf:
keep-tex: true
template-partials:
- title.tex
include-in-header:
text: |
\usepackage[noblocks]{authblk}
\renewcommand*{\Authsep}{, }
\renewcommand*{\Authand}{, }
\renewcommand*{\Authands}{, }
\renewcommand\Affilfont{\small}
---
## Quarto
Quarto enables you to weave together content and executable code into a finished
document. To learn more about Quarto see <https://quarto.org>.
I want the same affiliations not to be repeated, but this does not work using the title.tex in the answer to a similar question:
$if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
$for(by-author)$
\author[$for(by-author.affiliations)$$it.number$$sep$,$endfor$]{$by-author.name.literal$}
$endfor$
$for(by-author)$
$if(by-author.affiliations)$
$for(by-author.affiliations)$
\affil[$it.number$]{$if(by-author.affiliations.name)$$by-author.affiliations.name$$endif$}
$endfor$
$endif$
$endfor$
\date{$date$}
How to make the same affiliations to appear only once (with the same superscript)?