summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <mab@gnu.org>2018-10-09 22:40:24 -0400
committerAmin Bandali <mab@gnu.org>2018-10-09 22:40:24 -0400
commit3e7e82b4cdd20516341568a465a05be369b9535a (patch)
tree1ac4f7ffd49bbb1f83e3c04c2dacbab03a3e30e7
parent458ff84b5365eb2e97a87b3253bdbb4184f229b4 (diff)
downloadconfigs-3e7e82b4cdd20516341568a465a05be369b9535a.tar.gz
configs-3e7e82b4cdd20516341568a465a05be369b9535a.tar.xz
configs-3e7e82b4cdd20516341568a465a05be369b9535a.zip
[emacs] add ox-latex IEEEtran support
Diffstat (limited to '')
-rw-r--r--init.org18
1 files changed, 17 insertions, 1 deletions
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))