From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: #+LATEX_PREAMBLE Date: Fri, 3 Oct 2008 09:32:03 +0200 Message-ID: <28387F4F-5E9F-4195-9A88-A13572D73E12@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Klf9I-0002EY-A8 for emacs-orgmode@gnu.org; Fri, 03 Oct 2008 03:32:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Klf9G-0002Cm-P4 for emacs-orgmode@gnu.org; Fri, 03 Oct 2008 03:32:27 -0400 Received: from [199.232.76.173] (port=50026 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Klf9G-0002Cf-MG for emacs-orgmode@gnu.org; Fri, 03 Oct 2008 03:32:26 -0400 Received: from mx20.gnu.org ([199.232.41.8]:46777) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Klf9G-0004oR-EM for emacs-orgmode@gnu.org; Fri, 03 Oct 2008 03:32:26 -0400 Received: from paard.ic.uva.nl ([145.18.40.182]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Klf9E-0006Ly-LF for emacs-orgmode@gnu.org; Fri, 03 Oct 2008 03:32:24 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Austin Frank Cc: emacs-orgmode@gnu.org On Oct 2, 2008, at 6:09 AM, Austin Frank wrote: > Carsten and org-ers-- > > I have a feature request related to \LaTeX export. I know that we can > set up custom \documentclass declarations in org-export-latex-classes, > and that each of these can contain arbitrary preamble information > along > with the \documentclass{} declaration. I also know that the preamble > can be further customized using file local variables to set > org-export-latex-append-header. These two solutions can seem > relatively > heavyweight when one just wants to add a new \usepackage{} declaration > to the preamble of a specific file. > > Any chance we could have a mechanism to add single line declarations > to > the preamble of the exported tex file using the #+FOO syntax? I would > really love to be able to do something like > > #+LATEX_PREAMBLE: \usepackage{pstricks} > #+LATEX_PREAMBLE: \usepackage{Sweave} Hi Austin, I have implemented this proposal, with the slightly shorter #+LATEX_HEADER: Multiple lines can be used. It already works, documentation is still missing. - Carsten