From: Amin Bandali Date: Wed, 10 Oct 2018 02:40:24 +0000 (-0400) Subject: [emacs] add ox-latex IEEEtran support X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/3e7e82b4cdd20516341568a465a05be369b9535a [emacs] add ox-latex IEEEtran support --- 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))