GithubHelp home page GithubHelp logo

bcardoso / bibtex-capf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mclear-tools/bibtex-capf

0.0 0.0 0.0 557 KB

Completion at point for bibtex bibliographies in prose writing

License: GNU General Public License v3.0

Emacs Lisp 100.00%

bibtex-capf's Introduction

bibtex-capf provides a backend using Emacs’s native completion-at-point function for the completion of bibtex keys in modes used for prose writing. This backend activates for citation styles used by pandoc-mode (@), latex-mode (\cite{}), and org-mode (cite:@). This package is largely a port of company-bibtex to Emacs’s native completion framework. It works particularly well with corfu, which enhances completion at point with a small completion popup.

screenshots/img.png

Initialization

Load the package and add bibtex-capf to capf-backends (there is a minor mode – bibtex-capf-mode – for easy activation and deactivation of the capf) using use-package and straight:
(use-package bibtex-capf
  :straight (:type git :host github :repo "mclear-tools/bibtex-capf")
  :hook ((org-mode markdown-mode tex-mode latex-mode reftex-mode) . bibtex-capf-mode)
  :custom
  (bibtex-capf-bibliography
   '("path/to/bib/file.bib")))

Customization

bibtex-capf reads from a bibliography file or files specified in bibtex-capf-bibliography:
(setq bibtex-capf-bibliography
    '("/home/cooluser/thesis/thesis1.bib"
      "/home/cooluser/thesis/thesi2.bib"))

Alternative Packages

Since this is Emacs, there are other ways to satisfy the user’s need for citation completion at point. Here are two notable ones:

bibtex-capf's People

Contributors

mclearc avatar bcardoso avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.