Sitelet https://github.com/papis/papis/wiki/User-scripts-examples
Skip to content

User scripts examples

Alejandro Gallo edited this page Nov 20, 2022 · 3 revisions

This page contains references and snippets of code of papis users to performe several tasks. They serve as reference and inspiration.

Useful aliases

Harvard database

Open papers in the harvard database, this command will check the doi of the paper and open the relevant paper entry in adsabs.harvard.edu.

alias ads="papis browse -k ads"

Add a paper querying crossref

You can add this function into your .bashrc file

xrefget() {
  papis explore    \
    crossref "$@"  \
    pick           \
    cmd 'papis add --from doi {doc[doi]}'
}

You can then query crossref, pick one of the retrieved paper metadata and add it to your library, i.e.

xrefget -a Einstein

Clone this wiki locally