diff --git a/dot_config/doom/config.org.tmpl b/dot_config/doom/config.org.tmpl index e799b3230b1b53d9d48c1346691dfd671f735e64..08818475cea6369e7710318fc1a890889f271b6b 100644 --- a/dot_config/doom/config.org.tmpl +++ b/dot_config/doom/config.org.tmpl @@ -166,6 +166,33 @@ Add ~ox-hugo~ for exporting ~blog.org~ files to Hugo-compatible markdown :after ox) #+END_SRC +#+BEGIN_SRC emacs-lisp +(use-package helm-bibtex + :custom + (helm-bibtex-bibliography '("~/Documents/citations.bib")) + (reftex-default-bibliography '("~/Documents/citations.bib")) + (bibtex-completion-pdf-field "file") + :hook (Tex . (lambda () (define-key Tex-mode-map "\C-ch" 'helm-bibtex)))) +(use-package org-ref + :custom + (org-ref-default-bibliography "~/Documents/citations.bib")) +(defun org-export-latex-no-toc (depth) + (when depth + (format "%% Org-mode is exporting headings to %s levels.\n" + depth))) +(setq org-export-latex-format-toc-function 'org-export-latex-no-toc) +(add-to-list 'org-latex-classes + '("apa6" + "\\documentclass{apa6}" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) +(setq org-latex-pdf-process + '("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f")) +#+END_SRC + * Email configuration Attempt to load encrypted config (doesn't work for some reason) diff --git a/dot_config/doom/init.el b/dot_config/doom/init.el index 9ecba9da59c2f63242546390a47b70853f098df0..039acee474a569e240e4b4441263a69b236bdee5 100644 --- a/dot_config/doom/init.el +++ b/dot_config/doom/init.el @@ -88,7 +88,7 @@ ;;biblio ; Writes a PhD for you (citation needed) ;;debugger ; FIXME stepping through code, to help you add bugs ;;direnv - ;;docker + docker editorconfig ; let someone else argue about tabs vs spaces ;;ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) diff --git a/dot_config/doom/packages.el b/dot_config/doom/packages.el index 8b054e30fe3df6d24bfa2f5ff29612c0fc6069c2..9afc9dbbbfe1d8e9494f098dd05042346116272a 100644 --- a/dot_config/doom/packages.el +++ b/dot_config/doom/packages.el @@ -35,6 +35,12 @@ (package! cook-mode :recipe (:host github :repo "cooklang/cook-mode")) +(package! helm-bibtex + :recipe (:host github :repo "tmalsburg/helm-bibtex")) + +(package! org-ref + :recipe (:host github :repo "jkitchin/org-ref")) + ;; If the package you are trying to install does not contain a PACKAGENAME.el ;; file, or is located in a subdirectory of the repo, you'll need to specify ;; `:files' in the `:recipe':