[emacs] add ox-latex IEEEtran support
authorAmin Bandali <mab@gnu.org>
Wed, 10 Oct 2018 02:40:24 +0000 (22:40 -0400)
committerAmin Bandali <mab@gnu.org>
Wed, 10 Oct 2018 02:40:24 +0000 (22:40 -0400)
init.org

index 11ae4f0..00de96a 100644 (file)
--- 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))