48 lines
1.6 KiB
EmacsLisp
48 lines
1.6 KiB
EmacsLisp
;;; bibliography-settings.el --- bibliography settings -*- lexical-binding: t -*-
|
|
|
|
;;; Commentary:
|
|
;; settings in org-settings: org-latex-pdf-process
|
|
|
|
;; Requirements:
|
|
;; for 'biber' install linux package 'biber', for HTML export features
|
|
;; install linux package 'bibtex2html'
|
|
;; org-ref https://melpa.org/#/org-ref
|
|
;; pdf-tools
|
|
;; parsebib
|
|
;; htmlize (helm and hel-bibtex -> ivy)
|
|
;; ivy
|
|
;; ivy-bibtex (bibtex-completion (because of org-ref-ivy-cite))
|
|
;; biblio biblio-core https://melpa.org/#/biblio
|
|
|
|
;;; Code:
|
|
(use-package pdf-tools
|
|
:defer t) ;; used by org-ref
|
|
|
|
(use-package biblio
|
|
:defer t) ;; used by org-ref
|
|
|
|
(use-package citeproc
|
|
:defer t) ;; used by org-ref
|
|
|
|
;; !in a org document run org-ref to test the installation
|
|
(use-package org-ref ;; used with some preamble defs and \printbibliography (biblatex/biber, no html export), see also ox-bibtex
|
|
:defer t
|
|
:init
|
|
;; specify completion backends
|
|
(defvar org-ref-completion-library 'org-ref-ivy-cite) ;; requires ivy-bibtex, must be set before requiring org-ref otherwise helm will be loaded
|
|
:config
|
|
;; TODO: version 3 not working (with article-latex), the tex file still has the from cite:&... -> \cite{&...}
|
|
;; (setq org-ref-cite-insert-version 2) ;; org-ref-citation-links.el
|
|
(setq bibtex-dialect 'biblatex) ;; biblatex also for biber
|
|
(setq org-latex-prefer-user-labels t)) ;; reference to headings ref:section-name
|
|
|
|
(use-package org-ref-ivy
|
|
:after (org-ref))
|
|
|
|
(use-package ox-bibtex ;; used with #+BIBLIOGRAPHY: ... (bibtex, with html export), see also org-ref
|
|
:after (org)
|
|
:defer 1)
|
|
|
|
(provide 'bibliography-settings)
|
|
;;; bibliography-settings.el ends here
|