On Tue, Sep 9, 2014 at 10:52 AM, Thorsten Jolitz wrote: > Sebastien Vauban > 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 ... > I don't think you do. I build my org-latex-classes with add-to-list, so an example of mine is: (add-to-list 'org-latex-classes '("MikeMcLean" "\\documentclass{MikeMcLean} [DEFAULT-PACKAGES] [PACKAGES] [EXTRA] " ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) The MikeMcLean document class (all of my 3-4 main classes, really) are a moderate wrapper around the memoir class. A document I produce for myself looks different than one that I produce as part of my employment or volunteer effort(s), even though I produce them all from Org. - Sets some class options - Requires some packages I use a lot (minted, e.g.) - Defines some fonts and colors. - Sets page options (footers, chapter headers, sectioning, etc.) - Defines a title page > > -- > cheers, > Thorsten > > >