From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [new exporter] feature request: BEGIN_LATEX_HEADER Date: Fri, 08 Mar 2013 00:40:17 +0100 Message-ID: <87ehfqkcda.fsf@pank.eu> References: <874ngngs8c.fsf@ucl.ac.uk> <87txomc448.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDkQE-0003cE-DZ for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 18:40:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDkQB-0004tW-4V for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 18:40:26 -0500 Received: from mout.gmx.net ([212.227.15.15]:63991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDkQA-0004t2-Pe for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 18:40:23 -0500 Received: from mailout-eu.gmx.com ([10.1.101.211]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LwTtx-1UqiNv22fP-018Nz4 for ; Fri, 08 Mar 2013 00:40:20 +0100 In-Reply-To: <87txomc448.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 07 Mar 2013 22:05:43 +0100") 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: n.goaziou@gmail.com Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: >> Prompted by Nicolas's recent addition of the LATEX_HEADER_EXTRA >> directive, I would like to request another related feature. Just as we >> have the related LATEX and BEGIN_LATEX directives, I would like to see a >> BEGIN_LATEX_HEADER directive for multi-line LATEX_HEADER lines: >> >> #+begin_src org >> #+BEGIN_LATEX_HEADER >> \usepackage{tikz} >> \usepackage[british]{babel} >> \newcommand{\esf}[1]{\footnote{#1}\marginpar{\fbox{\thefootnote}} >> #+END_LATEX_HEADER >> #+end_src >> >> (example taken from a recent org file). >> >> Not urgent, of course, but it would make it easier to write this type of >> content, especially if it were fontified as well... ;-) > > There are already many ways to handle latex header. `org-latex-classes', > setupfile keywords, include keywords, latex_header, > latex_header_extra... > > Adding one more is not without consequences. For example, where should > it go? After latex_header values? Before? Would the location be > configurable in `org-latex-classes'? What placeholder to use? > > I admit I'm not very keen on this idea. Not because of the coding work, > it would be around 10 loc, but because of syntax fester. You could have a LaTeX block and tangle it to preamble.tex and input preamble.tex in a LATEX_HEADER. =E2=80=93Rasmus --=20 Enough with the bla bla!