Skip to main content

A tool for managing bibliographies

Project description

TexBib

Texbib is a program that helps you to manage your BibTeX references.

Test status PyPI status

Installation

I recommend installing texbib using pipx or a similar tool with the following command

pipx install texbib

Usage

Basics

To add the contents of a BibTeX foo.bib file to the global bibliography type into a shell

$ bib add foo.bib

You can also pipe BibTeX data via stdin:

$ cat paper.bib | bib add -

You can specify as many files as you want in a single command. The entries in the bibliography can be addressed by the ID that is specified in the BibTeX file.

You can also add a reference via its DOI, either in the doi:… format or as URL starting with https://doi.org/.

$ bib add doi:10.1002/andp.19053220806

This will make a request to the crossref API. ISBNs are also supported:

$ bib add 9780123456789

Preprints from arXiv may be added similarly:

$ bib add arXiv:1306.4856

The full-text PDF can be downloaded at the same time (only supported for arXiv at the moment):

$ bib add arXiv:1306.4856 --fulltext

Viewing References

Have a look at the references in the bibliography with:

$ bib show

Sort by ID (-s i), author (-s a), title (-s t), or year (-s d):

$ bib show -s a

Reverse the sort order:

$ bib show -s d -r

Show details for specific entries:

$ bib detail foo2000
$ bib detail foo2000 --format bibtex

Search for references matching patterns:

$ bib find quantum
$ bib find author title -s d
$ bib find -b myBib "search term"    # search in specific bibliography

Modifying references

Edit an entry in your editor ($EDITOR or nano):

$ bib edit foo2000

Link a local PDF file to an entry:

$ bib link-file foo2000 paper.pdf

If the reference was added with the --fulltext flag it will already have been linked. Open the PDF associated with an entry:

$ bib open foo2000

Using Bibliographies

You can group your references into bibliographies. To create one called myBib

$ bib init myBib

After creation it is your new active bibliography. Everything you add and remove will be applied to it instead of the default one.

To see what bibliographies exist and which is active

$ bib list
  default
* myBib

To change the active bibliography to an existing one use the checkout command.

$ bib checkout default

A bibliography can be removed with

$ bib delete myBib

Or renamed:

$ bib rename oldName newName

Exporting

Later you probably want to create a new file with all the references in your document directory. Use the handy dump command for that.

$ bib dump

This will print the full bibliography onto stdout. Dump to a specific file:

$ bib dump myreferences.bib

Removing References

To remove a single item with ID foo2000 from the active bibliography

$ bib rm foo2000

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

texbib-0.5.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

texbib-0.5.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file texbib-0.5.0.tar.gz.

File metadata

  • Download URL: texbib-0.5.0.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for texbib-0.5.0.tar.gz
Algorithm Hash digest
SHA256 39c5bd19d507fc52f261ef9ba0ae8ea493e787460b602eb795b9103b12575b6a
MD5 359ea7fb657d427bd27bcca0922a07e9
BLAKE2b-256 deb1392a4dd2c9e6e710a56f839b2491426fa373d1a1ab3718f63459c049b37d

See more details on using hashes here.

File details

Details for the file texbib-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: texbib-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for texbib-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f892ab49c85d3d903f1221705e473890a31d8e93db10eb1b76b8f75c18f187d
MD5 50cbb7960015e53a9556b34a121ac698
BLAKE2b-256 55f474df3685d28de4b506860b5432bec7062ffebf0f45e99b10e48c94fc024c

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