Skip to main content

Create and validate publication lists from INSPIREHEP and generate LaTeX/PDF output

Project description

ListOfPublicationsFromInspireHEP

Python application

Create a list of publications from InspireHEP and produce a LaTeX document and a PDF. This tool can be useful when the list is very long and there are some LaTeX errors in the BibTeX entries.

Run it

The simplest way to run the CLI commands once without installing them is uvx:

uvx listofpublicationsfrominspirehep -h
uvx listofpublicationsfrominspirehep check-biblio -h

Install

The simplest persistent install for end users is pipx:

pipx install listofpublicationsfrominspirehep

After installation, all commands are available:

listofpublications --help
listofpublications check-biblio --help
listofpublications create-bibtex --help
listofpublications create-latex --help

Legacy individual commands are also available (backward compatible):

check_biblio --help
create_bibtex --help
create_latex --help

From a local checkout, you can still install it with pip in editable mode:

python -m pip install -e .

Requirements

To generate the final PDF you need a working LaTeX toolchain with pdflatex and bibtex available in PATH.

check_biblio also invokes LaTeX checks and may open your editor for manual fixes, so you should also have the EDITOR environment variable configured.

How to use it

First create the BibTeX file downloading all your bib entries:

listofpublications create-bibtex --help
listofpublications create-bibtex --query "author%3AR.Turra.1%20and%20collection%3APublished"

This downloads the entries from inspirehep.net and produces a BibTeX file as bibtex_YYYY-MM-DD.bib.

Note: If you get problems downloading from INSPIREHEP, you can manually download the BibTeX from inspire.hep going to your profile and using the "cite all" button. However, this is limited to 1000 entries. If needed, select different years and merge the files.

Then fix LaTeX/Unicode errors:

listofpublications check-biblio --fix-unicode <bibtexfilename.bib>

Finally generate the PDF:

listofpublications create-latex <bibtexfilename_new.bib>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

listofpublicationsfrominspirehep-0.1.3.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file listofpublicationsfrominspirehep-0.1.3.tar.gz.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5a05bae43bfad03e722cc23bb620ac529395bb7de655b18eb8c17cd655eae74d
MD5 8caa7062f0e88a251ace299c998087b2
BLAKE2b-256 fe6d1a8c1d6451004d5d395c5df694f1cfe5f04419ce9514d3fda44e2156abf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.3.tar.gz:

Publisher: publish-pypi.yml on wiso/ListOfPublicationsFromInspireHEP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file listofpublicationsfrominspirehep-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23d402458221629ff78dc3980c90ddb01299ddc3ff0d89638ac20f3989ac1936
MD5 47824fd78d34f3afeb91ae722d5edfd0
BLAKE2b-256 d55d49ad4e2cda284275cbed5083e7c9a7b203703598dee3852cb47a63c78078

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.3-py3-none-any.whl:

Publisher: publish-pypi.yml on wiso/ListOfPublicationsFromInspireHEP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page