Skip to content

vpratz/zotcite-betterbibtex

 
 

Repository files navigation

Zotcite BetterBibTeX

Zotcite BetterBibTeX is a Vim plugin that provides integration with Zotero. You can:

  • Do omni completion of Better BibTeX citation keys from Zotero database in Markdown, RMarkdown and Quarto documents.

  • Quickly see on the status bar information on the reference under the cursor.

  • Open the PDF attachment of the reference associated with the citation key under the cursor.

  • Extract highlighted text and text notes from PDF attachments of references.

  • Extract Zotero notes from Zotero database.

Zotcite BetterBibTeX is being developed and tested on Linux and should work flawlessly on other Unix systems, such as Mac OS X. It may require additional configuration on Windows.

Installation

Requirements:

  • Zotero >= 5

  • Better BibTeX for Zotero >= 6.7

  • Python 3

  • Python 3 module Neovim:

    pip install neovim

  • Python modules PyQt5 and popplerqt5 (only if you are going to extract annotations from PDF documents). On Debian based Linux distributions, you can install them with the command:

    sudo apt install python3-pyqt5 python3-poppler-qt5

Zotcite BetterBibTeX can be installed as any Vim plugin.

The Python module zotero does not import the vim module. Hence, its code could easily be adapted to other text editors such as Emacs.

Usage

The workflow is designed to enable the use of a bibliography created using Better BibTeX (e.g. using the Automatic export option). It's main purpose is to offer autocompletion of citation keys and providing information about the corresponding citations. To do so, it directly queries the corresponding databases zotero.sqlite and better-bibtex.sqlite in your Zotero folder, therfore no further plugins for the communication with Zotero are needed.

Please, read the plugin's documentation for further instructions.

Acknowledgment

Zotcite BetterBibTex is an adaptation of Zotcite, but not affiliated with the original plugin.

Zotcite's Python code was based on the citation.vim project.

About

Vim plugin for integration with Zotero

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.3%
  • Vim Script 36.7%