emacs-citar / citar

Emacs package to quickly find and act on bibliographic references, and edit org, markdown, and latex academic documents.
GNU General Public License v3.0
485 stars 53 forks source link

Add org-mode markup to citar-insert-reference #836

Open leinfink opened 1 month ago

leinfink commented 1 month ago

Some CSL styles such as Chicago italicize some parts of the reference, usually the containing book or journal. This information is currently lost when inserting a reference using citar-insert-reference. If the current major-mode is org mode, would it be possible to use org mode markup to retain that information?

bdarcus commented 1 month ago

A few things:

First, that command is intended to be a lightweight thing, where you just want a quickly formatted reference.

Second, it's configurable. By default, it uses the citar template system, and pulls the data from the cache. Per other thread, that data is stripped of markup, as it's optimized for display, and we support multiple input formats.

The other included option uses citeproc.el for the formatting, which allows you to use CSL for styling there. But that function is still relying on the cached data for performance.

So at minimum, you of course have to be more specific about which function.

EDIT: see also https://github.com/emacs-citar/citar/pull/742, and linked issues.