Thorsten Jolitz wrote: > Sebastien Vauban <sva-n...@mygooglest.com> > writes: > >> See http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00744.html >> for Nicolas' answer on this point: >> >> ╭──── >> │ I suggest to use existing solutions instead: configure >> │ `org-latex-classes'. >> ╰──── > > > a related question: is this the right format to create the preamble > string: > > #+BEGIN_SRC emacs-lisp > '(;; Name > "obb-article-full-page" > ;; Preamble > (concat > "\\documentclass{article}\n" > "[DEFAULT-PACKAGES]\n" > "[PACKAGES]\n" > "[EXTRA]\n" > "\\usepackage[cm]{fullpage}\n") > ;; Sectioning Structure > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") ...) > #+END_SRC > > not sure if I need the line-feeds ...
Working example: --8<---------------cut here---------------start------------->8--- (add-to-list 'org-latex-classes '("koma-article" "\\documentclass{scrartcl} [NO-DEFAULT-PACKAGES] [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban