;;; 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
  :load-path (lambda() (concat config-dir "lisp/pdf-tools"))
  :defer t)  ;; used by org-ref

(use-package biblio
  :load-path (lambda() (concat config-dir "lisp/biblio"))
  :defer t)  ;; used by org-ref

(use-package org-ref  ;; used with some preamble defs and \printbibliography (biblatex/biber, no html export), see also ox-bibtex
  :load-path (lambda() (concat config-dir "lisp/org-ref"))
  :after (org)
  :defer 1
  :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
  (setq bibtex-dialect 'biblatex))  ;; biblatex also for biber

(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
