Sebastien Vauban wrote: > 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: > > (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}")))
For your example to work, you'd have to replace the quote (') by a backquote (`) so that the `concat' can be executed... Best regards, Seb -- Sebastien Vauban