From 94f356287d919b11331887683a32a252a9e8d31c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Hauspie?= <michael.hauspie@univ-lille.fr>
Date: Wed, 22 Mar 2023 18:49:14 +0100
Subject: [PATCH] Add support for bibliography in org files

---
 configuration.org | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/configuration.org b/configuration.org
index b78f5a1..0fd8d32 100644
--- a/configuration.org
+++ b/configuration.org
@@ -439,6 +439,31 @@ Add shortcuts to quickly add code blocks using =C-,=
              '("el" . "src emacs-lisp"))
 #+end_src
 
+** Latex export
+
+Use =latexmk= to export to Latex
+
+#+begin_src emacs-lisp :exports code
+(setq org-latex-pdf-process (list "latexmk -pdflatex='pdflatex -shell-escape -interaction nonstopmode' -pdf %f"))
+#+end_src
+
+
+Use =org-ref= for citation
+
+#+begin_src emacs-lisp
+(use-package org-ref)
+(use-package org-ref-prettify)
+#+end_src
+
+
+And use the same shortcut for =org-reftex-citation= than for =reftex-citation=
+
+#+begin_src emacs-lisp
+(define-key org-mode-map (kbd "C-c [") 'org-reftex-citation)
+#+end_src
+
+#+RESULTS:
+: org-reftex-citation
 
 ** Visuals
 
-- 
GitLab