SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 71bc8eb3 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

append superscript to each author in tex file

parent 5154866b
No related branches found
No related tags found
1 merge request!52New Production page fixes and oversights
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment