From 8537a95d755d6666bb4f79fc4afb5a1009ff792c Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 24 Jun 2021 15:25:24 +0200 Subject: [PATCH] Add org-plain-latex template --- +org.el | 15 +++++++++++++++ snippets/org-mode/article latex metadata | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/+org.el b/+org.el index 4a75ae6..25a0518 100644 --- a/+org.el +++ b/+org.el @@ -43,3 +43,18 @@ ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) +;; Add org-plain-latex +(after! ox-latex + (add-to-list 'org-latex-classes + '("org-plain-latex" + "\\documentclass{article} + [NO-DEFAULT-PACKAGES] + [PACKAGES] + [EXTRA]" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) +;; Enable listings for LaTeX export +(setq org-latex-listings 't) diff --git a/snippets/org-mode/article latex metadata b/snippets/org-mode/article latex metadata index 3ab286a..05a46d0 100644 --- a/snippets/org-mode/article latex metadata +++ b/snippets/org-mode/article latex metadata @@ -7,5 +7,6 @@ #+AUTHOR: Amin Kasrou Aouam #+LANGUAGE: es #+OPTIONS: toc:nil -#+LATEX_CLASS: article -#+LATEX_CLASS_OPTIONS: [a4paper] \ No newline at end of file +#+LATEX_CLASS: org-plain-latex +#+LATEX_CLASS_OPTIONS: [a4paper] +#+SETUPFILE: ~/.pandoc/templates/emacs-latex.org \ No newline at end of file