From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] feature request: BEGIN_LATEX_HEADER Date: Thu, 07 Mar 2013 22:05:43 +0100 Message-ID: <87txomc448.fsf@gmail.com> References: <874ngngs8c.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDi0j-0006ZJ-Nb for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 16:06:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDi0h-00062O-RO for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 16:05:57 -0500 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:62927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDi0h-00062D-IF for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 16:05:55 -0500 Received: by mail-we0-f177.google.com with SMTP id d7so177102wer.36 for ; Thu, 07 Mar 2013 13:05:54 -0800 (PST) In-Reply-To: <874ngngs8c.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 7 Mar 2013 15:11:15 +0000") 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 Hello, Eric S Fraga 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. Regards, -- Nicolas Goaziou