Skip to content

Make long latex author lists from csv files.

License

Notifications You must be signed in to change notification settings

cosmodesi/mkauthlist

 
 

Repository files navigation

Build License

mkauthlist

Make long latex author lists from csv files.

Installation

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.

Usage

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.

Additional TeX packages

The output with the --orcid option requires \usepackage{orcidlink} in the TeX preamble.

About

Make long latex author lists from csv files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TeX 79.0%
  • Python 21.0%