Add org-plain-latex template

This commit is contained in:
coolneng 2021-06-24 15:25:24 +02:00
parent 3b566848fc
commit 8537a95d75
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 18 additions and 2 deletions

15
+org.el
View File

@ -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)

View File

@ -7,5 +7,6 @@
#+AUTHOR: Amin Kasrou Aouam
#+LANGUAGE: es
#+OPTIONS: toc:nil
#+LATEX_CLASS: article
#+LATEX_CLASS_OPTIONS: [a4paper]
#+LATEX_CLASS: org-plain-latex
#+LATEX_CLASS_OPTIONS: [a4paper]
#+SETUPFILE: ~/.pandoc/templates/emacs-latex.org