Dear Uwe, dear all, 

I would be very interested to get a working .org file model of preambles ,  in order to produce  in org format  articles in latex, as well as in html, as well as in beamer class, it would be splendid. 

Unfortunately, I did not succeeded in my several tentatives, and I came back to write directly in  latex format, which is certainly not the best solution when you have to make also beamer files from your articles. 

It would be nice of you and/or everyone in this list to give here a copy of a working model of preambles in org mode. I know that I I have to read the documentation, and I do, but it would be quicker with help of some experts of this list. 


All the best

Jo.  


2013/12/25 Uwe Ziegenhagen <ziegenhagen@gmail.com>
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