From de44df34f32aaceee556214ca63146eed793a217 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Mon, 21 Sep 2020 14:26:05 +0200 Subject: [PATCH] Change org-mode default LaTeX class to KOMA article --- init.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 387930d..0927cc3 100644 --- a/init.el +++ b/init.el @@ -556,7 +556,18 @@ ;; System locale to use for formatting time values. Make sure that ;; the weekdays in the time stamps of your Org mode files and in the ;; agenda appear in English. - (setq system-time-locale "C")) + (setq system-time-locale "C") + + (with-eval-after-load "ox-latex" + (add-to-list 'org-latex-classes + '("koma-article" "\\documentclass{scrartcl}" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) + + (setq org-latex-default-class "koma-article")) (use-package ox-pandoc :ensure t)