From 3e7e82b4cdd20516341568a465a05be369b9535a Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 9 Oct 2018 22:40:24 -0400 Subject: [PATCH] [emacs] add ox-latex IEEEtran support --- init.org | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 11ae4f0..00de96a 100644 --- a/init.org +++ b/init.org @@ -690,7 +690,23 @@ In short, my favourite way of life. org-src-preserve-indentation nil org-edit-src-content-indentation 0 org-log-done 'time) - :hook (org-mode . org-indent-mode)) + :hook (org-mode . org-indent-mode) + :custom + (org-latex-packages-alist '(("" "listings") ("" "color")))) + +(use-package ox-latex + :config + (setq org-latex-listings 'listings) + (add-to-list 'org-latex-packages-alist '("" "listings")) + (add-to-list 'org-latex-packages-alist '("" "color")) + (add-to-list 'org-latex-classes + '("IEEEtran" "\\documentclass[11pt]{IEEEtran}" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) + t)) (use-package org-notmuch :after (:any org notmuch)) -- 2.20.1