Skip to main content

A small utility that uses BibTool to extract the references used in a Pandoc Markdown file.

Project description

extract_bib

Test

A small utility that uses BibTool to extract only the works cited in a Pandoc Markdown file from a BibTeX file.

If your workflow involves writing in Markdown and converting that Markdown to TeX with Pandoc, and you keep a large bibliography in a single BibTeX file, this utility will allow you to extract only the works cited in the Markdown file into a separate BibTeX file for distribution/portability.

It is intended as part of a transparent, plain text academic workflow.

It is based on this ruby Gist.

Installation

pip install extract_bib

Usage

To extract the references in great_paper.md that you keep in your ~/Documents/references.bib and place them in great_paper.bib, run:

extract_bib --bibtex-file ~/Documents/references.bib great_paper.md great_paper.bib

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

extract_bib-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

extract_bib-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file extract_bib-1.0.0.tar.gz.

File metadata

  • Download URL: extract_bib-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for extract_bib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 303db2f2d75627fa11b8602439c88116459df020293b333cb9163eb8d68c1a1d
MD5 78536017b11d8fb3b56918df4c980416
BLAKE2b-256 3ed43cfd48c4efa7b155bf3c00d011abaf9deb4f790f5e89651219ac11a71b0d

See more details on using hashes here.

File details

Details for the file extract_bib-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: extract_bib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for extract_bib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0ffeda9bcc84d030b8bb972446682637102040d6c3ec460a22f788bb4b1163
MD5 922dc390b8afd91caef76f4d034a283c
BLAKE2b-256 d71c3709edd68b0dc07cf9881ce7f810ead2feeb45bb179c847c14d63bef5a9d

See more details on using hashes here.

Supported by

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