From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: latex header lines vs latex block Date: Wed, 10 Sep 2014 09:28:30 +0200 Message-ID: <86y4tsue75.fsf@somewhere.org> References: <87tx4hyqyl.fsf@gmail.com> <86tx4h3uax.fsf@somewhere.org> <871trkzvzu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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: >> >> =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> =E2=94=82 I suggest to use existing solutions instead: configure >> =E2=94=82 `org-latex-classes'. >> =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > > 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 --=20 Sebastien Vauban