Skip to main content

Import Bibtex references from your reference manager to your Markdown-formatted website or book.

Project description

Bibtex to Markdown Converter

Download from PyPI Conda Discord GitHub Sponsors Twitter Follow GitHub followers

📚 Easily import publications from your reference manager to your Markdown-formatted website or book

Features

  • Import Bibtex publications (such as books, conference proceedings and journals) from your reference manager to your Markdown-formatted website or book
    • Simply export a BibTeX file from your reference manager, such as Zotero, and provide this as the input to the converter tool
  • Compatible with all static website generators such as Next, Astro, Gatsby, Hugo, etc.

Community

❤️ Support this open-source software

To help us develop this converter tool and the associated Wowchemy software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship and contributing.

Support development of the Academic CLI:

Prerequisites

  1. Install Python 3.11+ if it’s not already installed

For Building a Website with Hugo (Optional)

  1. Create a Hugo website such as by using the Hugo Academic Starter template for the Wowchemy website builder
  2. Download your site from GitHub, installing Hugo and its dependencies
  3. Version control your website
    • Ideally, version control your site with Git so that you can review the proposed changes and accept or reject them without risking breaking your site
    • Otherwise, if not using Git, backup your site folder prior to running this tool

Installation

Open your Terminal or Command Prompt app and install the Academic CLI tool:

pip3 install -U academic

Or, help test the latest development version:

pip3 install -U git+https://github.com/wowchemy/hugo-academic-cli.git

Usage

Download references from your reference manager, such as Zotero, in the Bibtex format.

Use the cd command to navigate to the folder containing your Bibtex file:

cd <MY_BIBTEX_FOLDER>

Import publications:

Say we downloaded our publications from our reference manager, such as Zotero, to a file named my_publications.bib within the website folder. We can import them into the default content/publication/ folder with:

academic import --bibtex my_publications.bib

Import publications to a specific folder (e.g. content/zh/publication):

Say our site has multiple languages, we may want to output the publications to a specific folder with:

academic import --bibtex my_publications.bib --publication-dir content/zh/publication/

Optional arguments:

  • --publication-dir PUBLICATION_DIR Folder to import publications to (defaults to content/publication)
  • --overwrite Overwrite any existing publications in the output folder
  • --normalize Normalize tags by converting them to lowercase and capitalizing the first letter (e.g. "sciEnCE" -> "Science")
  • --featured Flag these publications as featured (to appear in Featured Publications widget)
  • --verbose or -v Show verbose messages
  • --help Help

After importing publications, a full text PDF and image can be associated with each item and further details added via extra parameters.

Contribute

Interested in contributing to open source and open science?

Learn how to contribute code on Github.

Check out the open issues and contribute a Pull Request.

For local development, clone this repository and use Pipenv to install the tool using the following commands:

git clone https://github.com/wowchemy/bibtex-to-markdown.git
cd bibtex-to-markdown
poetry install
poetry run academic import --bibtex=tests/data/article.bib --publication-dir=debug --overwrite

Preparing a contribution:

  • Lint: make lint
  • Format: make format
  • Test: make test

License

Copyright 2018-present George Cushen.

Licensed under the MIT License.

PyPI - Downloads Conda License

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

academic-0.9.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

academic-0.9.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file academic-0.9.0.tar.gz.

File metadata

  • Download URL: academic-0.9.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for academic-0.9.0.tar.gz
Algorithm Hash digest
SHA256 4138fd13e4f75e25631eaa4482c23e4a926a29b771a867ebf22295f22c988679
MD5 a263729656286a175d843439ff277042
BLAKE2b-256 58adc702d7b9663c123b873fe51c42a864932639283ce5f9509a48859be0ee57

See more details on using hashes here.

File details

Details for the file academic-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: academic-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/22.6.0

File hashes

Hashes for academic-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 847d26b9a972dfabc2df6bdfee5a9521985b6ceb9bd7c7de09b182ec81df2270
MD5 081f1f7e436cb9e610a19f8b52278627
BLAKE2b-256 4cdbe700551b0b865daecbba9349c5b8ebd1e65ff1cf9d113d8387c97e84c5b4

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