Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI Filler & Bibliography Fixer

A simple tool to help you clean up your BibTeX files and automatically find missing DOIs for your articles.

Features

  • Standardizes your bibliography entries.
  • Deduplicates entries (merges duplicates, renames colliding IDs).
  • Enriches your bibliography by automatically finding missing DOIs from CrossRef.
  • Non-destructive: Creates a new file by default (e.g., myfile_fix.bib), keeping your original safe.

Installation

  1. Clone or Download this folder.
  2. Install dependencies. You need Python installed. Then run:
    pip install -r requirements.txt

Usage

It's super easy to use!

  1. Open your terminal.

  2. Navigate to this folder.

  3. Run the script on your bibliography file:

    python fix_bib.py path/to/your/bibliography.bib

    Example: If your file is named articles.bib:

    python fix_bib.py articles.bib

    To emit DOI verification details:

    python fix_bib.py articles.bib --verify
  4. The tool will think for a bit (finding DOIs takes a few seconds per article) and then create a new file named articles_fix.bib in the same folder.

Filter by citations in a .tex file

To keep only the entries cited in a LaTeX file, run:

python filter_bib.py path/to/your/bibliography.bib path/to/your/paper.tex

This creates bibliography_cited.bib by default and drops entries not cited in the .tex.

Try it out!

We have included a sample file for you to test. Run:

python fix_bib.py example.bib

It should create example_fix.bib with the missing DOI for the Google search engine paper.

What it does

  • It reads your .bib file.
  • It fixes common formatting issues.
  • It searches for missing DOIs online.
  • It saves a new clean file.

For Students / Tips

  • Always check the output! Automations differ from humans.
  • If the tool cannot find a DOI, it might be because the title is very generic or the service is temporarily unavailable.
  • This tool respects your existing DOIs; if you already have one, it won't overwrite it.

About

Tool to clean BibTeX files and automatically add missing DOIs from CrossRef.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages