summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
authorfpi2020-04-09 16:38:34 +0200
committerfpi2020-04-09 16:43:04 +0200
commit3afae2ba4fea7ba9998f9107196b4d1613485f4c (patch)
tree9223e0e2f4ec1c4b6c8953a9ba472592debf6e3d /emacs-init.org
parentAdd git-identity (diff)
Add some bibtex settings
Diffstat (limited to 'emacs-init.org')
-rw-r--r--emacs-init.org27
1 files changed, 22 insertions, 5 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 5421d81..4ed3f35 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -2197,17 +2197,34 @@ A small function to toggle the encryption state of the current entry.
(org-encrypt-entry))))))
(define-key fpi/toggle-map "e" #'fpi/org-toggle-crypt-entry))
#+end_src
-*** org-ref
+*** Reference management
+**** Bibtex
+#+begin_src emacs-lisp
+(use-package bibtex
+ :custom
+ (bibtex-autokey-titlewords 3)
+ (bibtex-autokey-titlewords-stretch 1)
+ (bibtex-autokey-titleword-length 5)
+ :config
+ (bibtex-set-dialect 'BibTeX))
+
+(setq bibtex-completion-bibliography "~/git/projects/zettel/Lit/bib.bib")
+(setq bibtex-completion-notes-path "~/git/projects/zettel/Lit")
+(setq bibtex-completion-notes-extension ".org")
+
+#+end_src
+**** org-ref
#+begin_src emacs-lisp
(use-package org-ref
:ensure t
:custom
- (org-ref-bibliography-notes "~/git/projects/personal/bib.org")
+ (org-ref-bibliography-notes nil)
+ (org-ref-notes-function 'org-ref-notes-function-many-files)
+ (org-ref-notes-directory "~/git/projects/zettel/Lit")
(org-ref-default-bibliography '("~/git/projects/personal/bib.bib"))
- (org-ref-pdf-directory "~/git/projects/personal/Lit/")
- :config
- (bibtex-set-dialect 'BibTeX))
+ (org-ref-pdf-directory "~/git/projects/personal/Lit/"))
#+end_src
+***** Capturing entries
I store my bibtex references in an org file together with my notes. In
addition to saving the meta information in properties using the same
functions as =doi-utils-doi-to-org-bibtex=, I also store them a second