From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: LaTeX_HEADER blocks Date: Thu, 28 May 2015 19:17:42 +0200 Message-ID: <87oal4wrih.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy1Pl-0004Fm-VK for emacs-orgmode@gnu.org; Thu, 28 May 2015 13:16:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yy1Pj-0001Vz-1I for emacs-orgmode@gnu.org; Thu, 28 May 2015 13:16:17 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yy1Pi-0001Vg-Ra for emacs-orgmode@gnu.org; Thu, 28 May 2015 13:16:14 -0400 In-Reply-To: (Mark Edgington's message of "Thu, 28 May 2015 00:28:19 -0400") 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: Mark Edgington Cc: emacs-orgmode Hello, Mark Edgington writes: > It is possible in org-mode to do either > > #+LaTeX: \somecommand > > or > > #+BEGIN_LaTeX > \somecommand > #+END_LaTeX > > I typically use the latter (the block form) because I often have > multiple lines of LaTeX I would like to include at certain locations > of a document. > > Similar to #+LaTeX, there is also #+LaTeX_HEADER, which ensures that > something is included as part of the preamble. Unfortunately, > however, there is no equivalent block form for #+LaTeX_HEADER. As a > result, when there are several items one wishes to have in the > preamble, it's necessary to have many such lines, each with a > "#+LaTeX_HEADER: " prefix. > > For the sake of consistency and convenience, wouldn't it be worthwhile > to add a "LaTeX_HEADER" block type to accompany the "LaTeX" block > type? This would not be consistent. #+LATEX_HEADER was free for grabs but #+BEGIN_LATEX_HEADER already means something: it is a special block. As a consequence, export back-ends ignore LATEX_HEADER but handle BEGIN_LATEX_HEADER (basically, they ignore the wrapper but export the contents). We would need to make #+begin_latex_header an export block. However, I plan to change syntax for export blocks for Org 8.4 and it will not be possible to define arbitrarily export blocks. In fact, #+begin_latex ... #+end_latex are expected to become #+begin_export latex [attributes] ... #+begin_export If latex header block idea is implemented, I think it could instead use a syntax such as #+begin_export latex :header t ... #+end_export Regards, -- Nicolas Goaziou