Make long latex author lists from csv files.
Clone or download this github repository: https://github.com/cosmodesi/mkauthlist.
Do not use pip install mkauthlist
because that will use the DES code.
You may want to set a virtual enviroment to run it using
python3 -m venv mkauthlistDESI
source mkauthlistDESI/bin/activate
Then you can simply install it by
python3 -m pip install .
With this, if the code is changed/updated, for changes to take effect you will need to re-install. To avoid this, you can use
python3 -m pip install -e .
If you do not worry about conflicts with the DES version, you can install the code with one of the commands above without setting up a virtual environment.
If you download a CSV file from the DESI PubDB you should remove the empty lines with a CSV editor before using this script.
In the directory DESItests
you may find examples for KP (alphabetical) and first tier papers.
For KPs in JCAP format and including ORCID numbers run
mkauthlist -f --sort --orcid -j jcap example_alphabetical.csv example_alphabetical.tex
For first tier papers, edit the csv file to add a new column called FirstTier
, and assign natural numbers to the first tier according to their ordering (see example_firsttier.csv).
For first tier papers in JCAP with ORCID numbers run
mkauthlist -f --sort-firsttier --orcid -j jcap example_firsttier.csv example_firsttier.tex
To send affiliations to an appendix use
mkauthlist -f --sort --orcid -j jcap.appendix example_alphabetical.csv example_alphabetical_appendix.tex
or
mkauthlist -f --sort-firsttier --orcid -j jcap.appendix example_firsttier.csv example_firsttier_appendix.tex
respectively.
To generate the author list for arXiv, use -j arxiv
with the same sorting options, i.e.
mkauthlist -f --sort -j arxiv example_alphabetical.csv example_alphabetical.txt
or
mkauthlist -f --sort-firsttier -j arxiv example_firsttier.csv example_firsttier.txt
respectively.
The output with the --orcid
option requires \usepackage{orcidlink}
in the TeX preamble.