From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: latex header lines vs latex block Date: Wed, 10 Sep 2014 10:09:01 +0200 Message-ID: <87vbovvqw2.fsf@gmail.com> References: <87tx4hyqyl.fsf@gmail.com> <86tx4h3uax.fsf@somewhere.org> <871trkzvzu.fsf@gmail.com> <86y4tsue75.fsf@somewhere.org> <86ha0fvrym.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRcyU-0001eh-G3 for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 04:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRcxu-0002Oh-8G for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 04:09:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:46048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRcxu-0002OY-29 for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 04:09:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XRcxs-0002n5-Ub for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 10:09:20 +0200 Received: from g231225249.adsl.alicedsl.de ([92.231.225.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2014 10:09:20 +0200 Received: from tjolitz by g231225249.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2014 10:09:20 +0200 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastien Vauban writes: > Sebastien Vauban wrote: >> 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 ... >> >> 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... Yes, the preamble as one string, no extra linefeeds, and no quoted function calls ... I figured that out by trial-and-error already, but thanks for you tips anyway! -- cheers, Thorsten