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