Skip to main content

String-based Pauli algebraic manipulations

Project description

logo

PyPI - Python Version Static Badge Static Badge

bib-optimizer

Oh, sure, because who doesn't love manually cleaning up messy .bib files? bib_optimizer.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:

  1. removing unused citations,
  2. reordering the remaining ones to match their order of 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_opt.bib – A placeholder filename for the newly generated, cleaned, and ordered bibliography file.

Installation

It can be installed with pip, ideally by using a virtual environment. Open up a terminal and install the package and the dependencies with:

    pip install bib_optimizer

or

    python -m pip install bib_optimizer

🐍 This requires Python 3.8 or newer versions


Steps to Clean Your Bibliography

  1. Prepare the input files (e.g., by downloading them from Overleaf).

  2. Run the command to generate a new .bib file (for example, you may name it ref_opt.bib):

           bibopt main.tex ref.bib ref_opt.bib

  3. Use the Cleaned Bibliography
    Replace ref.bib with ref_opt.bib in your LaTeX project.


Test

You may test the installation using the sample input files (sample_main.tex and sample_ref.bib) located in the test folder.

sample_main_shot  sample_ref_shot

sample_main.tex and sample_ref.bib

sample_ref_opt_shot

A sample ref_opt.bib after running bibopt sample_main.tex sample_ref.bib ref_opt.bib


♥ Lastly executed on Python 3.10 on 2025-04-16.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stringebraic-0.0.3.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stringebraic-0.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file stringebraic-0.0.3.tar.gz.

File metadata

  • Download URL: stringebraic-0.0.3.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.19

File hashes

Hashes for stringebraic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 eda90d22bfbce15698266dcf5357070711df1c9a2ba3cd6820fdf342bf523107
MD5 5f42d0f22cfb44d7603dabe4c92b35c0
BLAKE2b-256 b08a915d4645464851ac7796eeda1cd447e52b45bb4d566314b608c04454c340

See more details on using hashes here.

File details

Details for the file stringebraic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: stringebraic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.19

File hashes

Hashes for stringebraic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 500b9816f6d1ca8c4f975b78fa0597fc652c523173c787932c0ddb87cb7dbe89
MD5 9324c2af60663b3e34e4df521e39036d
BLAKE2b-256 d1656cb13b2f0a35d576f368163ac51b600b60eb05d3cea522b1e3853f3eaf52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page