Giter Site home page Giter Site logo

doi-arxiv-to-bibtex-refs's Introduction

doi-arxiv-to-bibtex-refs

An implementation of arxiv2bib and doi2bib into latex using Python

As explained in [1], the usual way of citing references in Latex could be made easier by using directly the doi (unique identifier)

Execute python script Python_libs/Split.py in order to generate a .bib reference file. Or directly call it from your Latex project (see [3])

The script browses all the .tex files contained in the directories and sub-directories. It detects the citation keys \cite{key} in DOI or arXiv id format. For each identifier, the information is retrieved and a .bib file is generated. A list of existing reference files .bib can be merged with the generated file.

As an exemple, if you use arXiv format \cite{2003.02751v2} or a doi \cite{10.1016/j.jcp.2018.10.045}, the following information will be added in the .bib file

@article{2003.02751v2, Author = {Ehsan Haghighat and Maziar Raissi and Adrian Moure and Hector Gomez and Ruben Juanes}, Title = {A deep learning framework for solution and discovery in solid mechanics}, ... }

@article{10.1016/j.jcp.2018.10.045, doi = {10.1016/j.jcp.2018.10.045}, url = {https://doi.org/10.1016%2Fj.jcp.2018.10.045}, year = 2019, month = {feb}, ... }

The arXiv format detection and retrieving uses the library arxiv2bib [2].

I adapted a code from [1] with some changes as :

1. Verification for doi format

2. Replacing the usual ref key by the doi so that it matches the \cite{doi}

3. Proper export to bib file

4. Sub folder checking for .tex files research

5. arXiv id support thanks to arxiv2bib module

6. Adding some comments

[1] Simplifying the management of scientific reference and citation with a minimalist DOI-BibTex-LaTeX approach, Wei Li, dx.doi.org/10.15761/CMID.1000139

[2] arxiv2bib repository package, https://pypi.org/project/arxiv2bib/

[3] More from my blog post https://graynaud.github.io/gh-pages/making-references-easier-in-latex/

doi-arxiv-to-bibtex-refs's People

Contributors

graynaud avatar

Stargazers

Christian Cahig avatar Charly avatar

Watchers

Bohémond Couka 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.