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:45:53 +0200 Message-ID: <86ha0fvrym.fsf@somewhere.org> References: <87tx4hyqyl.fsf@gmail.com> <86tx4h3uax.fsf@somewhere.org> <871trkzvzu.fsf@gmail.com> <86y4tsue75.fsf@somewhere.org> 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 Sebastien Vauban wrote: > Thorsten Jolitz wrote: >> Sebastien Vauban >> writes: >> >>> See http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00744.ht= ml >>> 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: > > (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 --=20 Sebastien Vauban