Metadata-Version: 2.4
Name: bib_optimizer
Version: 0.0.1
Summary: bib_cleaner
Author-email: Ka Wa Yip <yipkawa@gmail.com>
Project-URL: Homepage, https://github.com/kwyip/bib_optimizer
Project-URL: Issues, https://github.com/kwyip/bib_optimizer/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# bib-cleaner
Oh, sure, because who doesn't love manually cleaning up messy `.bib` files? `bib_cleaner.py` heroically steps in to remove those lazy, *unused* citations and *reorder* the survivors exactly as they appear in the `.tex` file—because, clearly, chaos is the default setting for bibliographies.

In layman's terms, it automates bibliography management by removing unused citations and reordering the remaining ones to match their appearance in the `.tex` file.

**Input Files:**
- `main.tex` – The LaTeX source file.
- `ref.bib` – The original bibliography file.  

These input files will **remain unchanged**.

**Output File:**
- `ref_clean.bib` – The newly generated, cleaned bibliography file.

------------------------------------------------------------------------------
### Steps to Clean Your Bibliography

1. **Install Dependencies**  
   ```sh
   pip install bibtexparser  # Requires Python 3
2. **Run the Script**  
   ```sh
   python bib_cleaner.py main.tex ref.bib ref_clean.bib
3. **Use the Cleaned Bibliography**  
   Replace `ref.bib` with `ref_clean.bib` in your LaTeX project.



_____________
Lastly executed on Python `3.10` and bibtexparser `4.3`
