diff --git a/scipost_django/production/management/commands/advance_git_repos.py b/scipost_django/production/management/commands/advance_git_repos.py index 9c10e08ccd84c9ae045ea560fe77957e1191eeb2..4c93d9a3d62dd09ab9f43bcb2fb1a1b6473c5117 100644 --- a/scipost_django/production/management/commands/advance_git_repos.py +++ b/scipost_django/production/management/commands/advance_git_repos.py @@ -255,12 +255,18 @@ class Command(BaseCommand): # Define the formatting functions def format_authors(authors: List[str]) -> str: + # Append a superscript to each author + authors = [ + author + "\\textsuperscript{" + str(i) + "}" + for i, author in enumerate(authors, start=1) + ] + *other_authors, last_author = authors if len(other_authors) == 0: return last_author else: - return ", ".join(other_authors) + " and " + last_author + return ",\n".join(other_authors) + "\nand " + last_author def format_title(title: str) -> str: return title + NEWLINE