From 378d2fe4e6e6c92449e3038fce312c466b1b5f74 Mon Sep 17 00:00:00 2001
From: coolneng <akasroua@gmail.com>
Date: Sun, 27 Jun 2021 21:21:23 +0200
Subject: [PATCH] Set up bibliography management

---
 +org.el | 5 +++++
 init.el | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/+org.el b/+org.el
index 25a0518..f5d86d1 100644
--- a/+org.el
+++ b/+org.el
@@ -58,3 +58,8 @@
                ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
 ;; Enable listings for LaTeX export
 (setq org-latex-listings 't)
+;; Set up bibliography management
+(setq! +biblio-pdf-library-dir "~/Documents/Uni/TFG/bibliography/"
+       +biblio-default-bibliography-files '("~/Documents/Uni/TFG/docs/assets/bibliography.bib"))
+;; Add citeproc option to ox-latex
+(add-to-list 'org-pandoc-valid-options 'citeproc)
diff --git a/init.el b/init.el
index ff42045..52067c2 100644
--- a/init.el
+++ b/init.el
@@ -81,6 +81,7 @@
 
        :tools
        ;;ansible
+       biblio              ; Writes a PhD for you[citation needed]
        debugger            ; FIXME stepping through code, to help you add bugs
        direnv
        ;;docker
@@ -147,7 +148,8 @@
         +pandoc            ; export-with-pandoc support
         ;;+pomodoro        ; be fruitful with the tomato technique
         +present           ; using org-mode for presentations
-        +pretty)
+        +pretty
+        +ref)
        ;;perl              ; write code no one else can comprehend
        ;;php               ; perl's insecure younger brother
        ;;plantuml          ; diagrams for confusing people more