Giter VIP home page Giter VIP logo

pubs's Introduction

Pubs

Pubs brings your bibliography to the command line.

Pubs organizes your bibliographic documents together with the bibliographic data associated to them and provides command line access to basic and advanced manipulation of your library.

Pubs is built with the following principles in mind:

  • all papers are referenced using unique citation keys,
  • bibliographic data (i.e. pure bibtex information) is kept separated from metadata (including links to pdf or tags),
  • everything is stored in plain text so it can be manually edited or version controlled.

Notice: pubs is still in early development and cannot be considered as stable.

Getting started

Create your library (by default, goes to '~/.pubs/').

pubs init

Import existing data from bibtex (pubs will try to automatically copy documents defined as 'file' in bibtex):

pubs import path/to/collection.bib

or for a .bib file containing a single reference:

pubs add reference.bib -d article.pdf

pubs can also automatically retrieve the bibtex from a doi:

pubs add -D 10.1007/s00422-012-0514-6 -d article.pdf

or an ISBN (dashes are ignored):

pubs add -I 978-0822324669 -d article.pdf

References always up-to-date

If you use latex, you can automatize references, by creating a bash script with:

#!/bin/bash
pubs export > references.bib
latex manuscript.tex
bibtex manuscript
latex manuscript.tex

This ensure that your reference file is always up-to-date; you can cite a paper in your manuscript a soon as you add it in pubs. This means that if you have, for instance, a doi on a webpage, you only need to do:

pubs add -D 10.1007/s00422-012-0514-6

and then add \cite{Loeb_2012} in your manuscript. After running the bash script, the citation will correctly appear in your compiled pdf.

Customization

Pubs is designed to interact well with your command line tool chain. You can add custom commands to pubs by defining aliases in your config file. Here are a few examples.

[alias]
print = open -w lp
count = !pubs list -k | wc -l

For more advanced functionalities, pubs also support plugins. Actually alias is itself a plugin!

Requirements

Authors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.