[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Getting custom LaTeX exports to work
From: |
Uwe Ziegenhagen |
Subject: |
[O] Getting custom LaTeX exports to work |
Date: |
Wed, 25 Dec 2013 18:12:09 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Hi everyone,
I am trying to get custom LaTeX exports to work. I installed the latest
version of Emacs (for Windows) and org mode today and have the following in
my .emacs:
(require 'ox-html)
(require 'ox-latex)
(require 'ox-ascii)
;; now let's add a few custom class export templates
(add-to-list 'org-latex-classes
'("koma-artikel"
"\\documentclass{scrartcl}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-latex-classes
'("scrlttr"
"\\documentclass[11pt]{scrlttr2}\n
\\usepackage[utf8]{inputenc}\n
\\usepackage[T1]{fontenc}\n
\\usepackage{xcolor}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
In my simple org-file I have the following in the first line:
#+LaTeX_CLASS: koma-article
Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
executing <Ctrl>-c-e l L
- [O] Getting custom LaTeX exports to work,
Uwe Ziegenhagen <=