Skip to content

pfandzelter/bibclean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bibclean cleans your bibfile.
Based on <https://github.com/caltechlibrary/bibtex>

Warning: strongly opinionated.

Install with go (>=1.22) installed: go install github.com/pfandzelter/bibclean@latest
(Or download the binary from the release page.)
(Or clone this repository and "go install".)

Usage: bibclean --in <bibfile.bib>  --out <newbibfile.bib> [--bbl <paper.bbl>] [--shorten <all, booktitle>] [--defaults=[ieee,acm,biblatex]] [--additional <type>:<field>]

If you specify the same input and output file, bibclean will overwrite your original. Use with caution.

Examples:

IEEE: bibclean --in bibliography.bib  --out bibliography.bib --bbl paper.bbl --shorten booktitle --defaults=ieee
IEEE (if you're over the page limit): bibclean --in bibliography.bib  --out bibliography.bib --bbl paper.bbl --shorten all --defaults=ieee
ACM: bibclean --in bibliography.bib  --out bibliography.bib --bbl paper.bbl --shorten none --defaults=acm
BibLaTeX: bibclean --in bibliography.bib  --out bibliography.bib --bbl paper.bbl --shorten none --defaults=biblatex
Wiley (AMA): bibclean --in bibliography.bib  --out bibliography.bib --bbl paper.bbl --shorten none --defaults=ieee --additional inproceedings:organization --additional inproceedings:address