Giter Site home page Giter Site logo

arxbib's Introduction

arXbib

arXbib is a simple command line tool to generate bibtex entries from arXiv identifiers. It allows automatic patching of bibtex bibliography files, checking for double entries.

> ./arXbib.py 1507.03414


%%% contains utf-8, see: http://inspirehep.net/info/faq/general#utf8
%%% add \usepackage[utf8]{inputenc} to your latex preamble

@article{Aaij:2015tga,
      author         = "Aaij, Roel and others",
      title          = "{Observation of J/ψp Resonances Consistent with
                        Pentaquark States in Λ$_b^0$ → J/ψK$^-$p Decays}",
      collaboration  = "LHCb",
      journal        = "Phys. Rev. Lett.",
      volume         = "115",
      year           = "2015",
      pages          = "072001",
      doi            = "10.1103/PhysRevLett.115.072001",
      eprint         = "1507.03414",
      archivePrefix  = "arXiv",
      primaryClass   = "hep-ex",
      reportNumber   = "CERN-PH-EP-2015-153, LHCB-PAPER-2015-029",
      SLACcitation   = "%%CITATION = ARXIV:1507.03414;%%"
}

arXbib uses the bibtex entries generated by INSPIRE.

The full options can be viewed by doing

> ./arXbib.py
arXbib.py [-o <bibfile to patch>] [-k <new bibtex key>] [-f] <arXiv ID>
  • -o <bibfile to patch> a new entry will be appended to the bibfile. The script checks if the entry is already in the bibliography.
  • -k <new bibtex key> allows to change the bibtex key from the default one.
  • -f forces the entry to be written to the bibfile, even if duplicate entries are detected (the key has to be unique, though).
  • -i use arxiv id instead of inspire citation key by default (can be overriden for individual entries by -k

Installation

Make a python3 environment by using conda:

conda create --name py3 python=3.4

Activate the environment:

source activate py3

Install arxbib

pip install git+https://github.com/seneubert/arXbib.git

you are good to go.

Dependencies

arXbib is written in Python3.4 and needs the beautifulsoup parser.

arxbib's People

Contributors

pseyfert avatar seneubert avatar

Watchers

 avatar  avatar  avatar

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.