From d90760eebd1e5c4f107a27ed2c0252007ffb68d7 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Wed, 12 Apr 2023 09:45:32 +0200 Subject: [PATCH] Fix bibliography formatted export --- init.el | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 53f2e1c..c05c822 100644 --- a/init.el +++ b/init.el @@ -761,19 +761,23 @@ bibtex-autokey-titlewords 2 bibtex-autokey-titlewords-stretch 1)) +(use-package oc + :straight nil + :init + (require 'oc-csl) + (require 'oc-biblatex)) + (use-package citar :straight t :custom (org-cite-global-bibliography '("~/notes/bibliography/bibliography.bib")) (org-cite-export-processors '((beamer . biblatex) (latex . biblatex) - (t . (csl "~/notes/bibliography/chicago-author-date.csl")))) + (t . (csl "chicago-author-date.csl")))) (org-cite-insert-processor 'citar) (org-cite-follow-processor 'citar) (org-cite-activate-processor 'citar) (citar-bibliography org-cite-global-bibliography) - (citar-at-point-function 'embark-act) - (citar-format-reference-function 'citar-citeproc-format-reference) (citar-citeproc-csl-styles-dir "~/notes/bibliography/") (citar-citeproc-csl-locales-dir "~/notes/bibliography/") (citar-notes-paths '("~/notes/notes")) @@ -784,7 +788,8 @@ (use-package citar-embark :straight t :after citar embark - :no-require + :init + (setq citar-at-point-function 'embark-act) :config (citar-embark-mode)) (use-package org-roam