- Emacs Lisp 100%
| .forgejo/workflows | ||
| test | ||
| citar-typst.el | ||
| LICENSE | ||
| README.org | ||
Citar-Typst
Synopsis
(use-package citar-typst
:config
(citar-typst-mode))
Citar is an Emacs library to make it easy to work with citations in documents of various kinds. (LaTeX, Markdown, Org) This package extends Citar to support Typst files.
Description
Citar is an "Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents."1 Citar supports Markdown, Org-mode, and LaTeX documents.
Typst is an in-development LaTeX competitor. Key features of Typst are near-instant document compile times, sane and friendly syntax, and comprehensible error messages.
Typst has its own citation format that Citar does not support. Fortunately, the brilliant minds who cooked up Citar had the foresight to make Citar extensible—this package leverages that extensibility to make it so Citar can insert citations inside Typst documents.
The key function from Citar is citar-insert-citation. This reads the citation files and pulls up all the citation keys. You can then select a key with whatever completing-read interface you use, and Citar will insert the citation keys with the correct format for you. Citar-Typst adds the necessary backend functions so that citar-insert-citation does The Right Thing™ inside a Typst buffer.
Installation
Citar-Typst is available on MELPA. Once installed, turn on citar-typst-mode to enable the integration:
(use-package citar-typst
:config
(citar-typst-mode))
Issues and contributing
Please submit bugs on the issue tracker hosted on Codeberg. (link)
Pull requests are welcome! Before submitting a PR, please add tests for your submitted code and ensure they all pass.
Generative AI Policy
This policy will evolve.
Low-effort, AI-generated PRs and issues will be closed and submitters will be blocked from further participation. If you are blocked and feel that this was a mistake, you may submit an appeal to me (Ashton) personally via email. You are responsible for 100% of what you submit. If your only reason for including some code is "the AI did it", you will be barred from this project in disgrace. Don't make me denounce you via a Vouch-like system.
Issue descriptions and PR notes MUST be entirely human-written. (Exception: if English is not your native language, I am OK with you writing in your native language and then using an LLM to translate, provided you mention that you did this.) I built this software for humans to use and enjoy. I do not want to interface with robots while working on it.
You can use generative AI to assist in building features, provided you are mindful in its use. AI should reduce grunt work and improve code quality. For example, I used an LLM to generate most of the tests for this package—consequently, this package is much better tested than I would have had the patience for! Another good use is to help get some familiarity with Elisp.
You should seek to learn and write as much of the code yourself as you can.
Be smart, be responsible, and don't let the LLM do the thinking for you.
License
This software is released under the GPLv3.
Authors
Footnotes
"About" section from the Citar repository on GitHub.