Tidy the citar configuration
This commit is contained in:
parent
465069ff2e
commit
226a280c6c
43
README.org
43
README.org
@ -225,8 +225,6 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
|
||||
'(package-selected-packages
|
||||
'(async ; asynchroneous processing
|
||||
auctex ; Aalborg University Center TeX
|
||||
citar ; bibliography handling
|
||||
citar-embark ; citar and embark integration
|
||||
company ; complete anything
|
||||
consult ; consult completing-read
|
||||
embark ; act on any buffer selection
|
||||
@ -1979,30 +1977,35 @@ configuration.
|
||||
#+name: lst:configure-oc-cite+citar
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'oc
|
||||
;; Org-9.5 needs the requirements, but Org-9.6 does not.
|
||||
(require 'oc-biblatex)
|
||||
(require 'oc-csl)
|
||||
|
||||
(custom-set-variables
|
||||
'(org-cite-export-processors '((latex biblatex)
|
||||
(t csl)))
|
||||
'(org-cite-global-bibliography '("~/VCS/research/refs.bib")))
|
||||
|
||||
(when (require 'citar nil 'noerror)
|
||||
(custom-set-variables
|
||||
'(org-cite-activate-processor 'citar)
|
||||
'(org-cite-follow-processor 'citar)
|
||||
'(org-cite-insert-processor 'citar))))
|
||||
(require 'oc-csl))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(when (require 'citar nil 'noerror)
|
||||
(custom-set-variables
|
||||
'(citar-bibliography '("~/VCS/research/refs.bib"))
|
||||
'(citar-library-file-extensions '("djvu" "pdf"))
|
||||
'(citar-library-paths '("~/VCS/research/papers/")))
|
||||
(define-key org-mode-map (kbd "C-c b") #'org-cite-insert))
|
||||
|
||||
(when (ensure-package-installation 'citar 'citar-embark)
|
||||
(with-eval-after-load 'embark
|
||||
(when (fboundp 'citar-embark-mode)
|
||||
(citar-embark-mode +1)))
|
||||
|
||||
(define-key org-mode-map (kbd "C-c b") #'org-cite-insert))
|
||||
(with-eval-after-load 'oc
|
||||
(custom-set-variables
|
||||
'(org-cite-export-processors '((latex biblatex)
|
||||
(t csl)))
|
||||
'(org-cite-global-bibliography '("~/VCS/research/refs.bib")))
|
||||
(when (require 'citar nil 'noerror)
|
||||
(custom-set-variables
|
||||
'(org-cite-activate-processor 'citar)
|
||||
'(org-cite-follow-processor 'citar)
|
||||
'(org-cite-insert-processor 'citar))))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(when (require 'citar nil 'noerror)
|
||||
(custom-set-variables
|
||||
'(citar-bibliography '("~/VCS/research/refs.bib"))
|
||||
'(citar-library-file-extensions '("djvu" "pdf"))
|
||||
'(citar-library-paths '("~/VCS/research/papers/"))))))
|
||||
#+end_src
|
||||
|
||||
Ref. [cite:@Schulte.MCSE.2011.41] shows that [[https://orgmode.org/][Org-mode]] is a simple, plain-text
|
||||
|
Loading…
x
Reference in New Issue
Block a user