From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Latex Export Date: Wed, 9 Jan 2008 14:53:31 -0600 Message-ID: <20080109205331.GE22499@odin.demosthenes.org> References: <20071130031506.GA3880@odin.demosthenes.org> <20071130062126.GA4661@fastwebnet.it> <20071130072711.GA11065@odin.demosthenes.org> <871wa7lxel.fsf@bzg.ath.cx> <20071201071430.GA15825@odin.demosthenes.org> <20071202210405.GF4256@odin.demosthenes.org> <87d4tozs8u.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JChvh-0002FJ-W7 for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 15:53:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JChvg-0002Cz-E4 for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 15:53:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JChvf-0002CO-Qz for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 15:53:39 -0500 Received: from squirtle.drak.net ([72.52.144.201]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JChvf-0002Vr-Co for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 15:53:39 -0500 Received: from [206.180.154.177] (helo=localhost) by squirtle.drak.net with esmtpa (Exim 4.68) (envelope-from ) id 1JChvQ-0002CV-Cy for emacs-orgmode@gnu.org; Wed, 09 Jan 2008 14:53:24 -0600 Content-Disposition: inline In-Reply-To: <87d4tozs8u.fsf@bzg.ath.cx> 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: emacs-orgmode@gnu.org On a note related to #+OPTIONS and exporting, I've taken to using sub-buffers (C-c C-x b) on a tree to limit my view to a specific tree. I've discovered that I can export in this mode, however, export doesn't honor the #+OPTIONS from the original file. I'm sure this is because the exporter is limiting its scope to the current buffer, as if I paste my #+OPTIONS at the top of the subtree buffer, it works fine. This is only temporary though, and doesn't survive reopening the subbuffer, and adds the text to the prior heading's content. ;] Other than temporarily adding an OPTIONS line, what are my options? I don't recall export options as a property yet. I suppose I could set common options in my .emacs. I welcome comments! Thanks! On Sun, Dec 02, 2007 at 09:44:33PM +0000, Bastien wrote: > Hi Russell, > > Russell Adams writes: > > > The exporters all refuse to export text before the first headline. I > > agree with that. > > The exporters skip text before the first headline only if you set the > relevant option: > > #+OPTIONS: skip:t > > If you don't specify anything about this in the #+OPTIONS line, then the > exporters will fall back on `org-export-skip-text-before-1st-heading'. > > This applies to normal text as well as text inside #+BEGIN_LaTeX and > #+END_LaTeX markers. > > But this does not apply to text after #+TEXT though. This text is > *always* exported. > > > However I'm including per buffer options at the top of my file, > > #+OPTIONS and the like. Turns out that #+BEGIN_LaTeX and #+END_LaTeX > > before the first headline are considered comments and not exported. > > > > This is a problem where I'm trying to select a style or define > > variables used later in LaTeX code. > > I think the right way to do this is to set a local value for the > variable `org-export-latex-append-header' at the end of your file: > > ,---- > | * COMMENT LaTeX local variable > | > | # Local Variables: > | # org-export-latex-append-header: "\\usepackage{fancyhrd}" > | # End: > `---- > > This will append "\usepackage{fancyhrd}" to the LaTeX header that is > defined in `org-export-latex-classes'. > > > I think that BEGIN/END latex should be considered configuration data > > like other /^#/ directives and exported before the first headline. > > > > Comments? > > #+BEGIN_LaTeX and #+END_LaTeX have a more general purpose than just > adding "configuration" and you should be able to use them anywhere > in the Org source. > > I think the real question is: what people are doing of #+TEXT? > > Is it useful as it is now ("this text comes before the first heading, > overriding the skip option")? Or should it be redefined so as to mean > "This piece of text should be inserted in the *header* of the target > format?" > > Comment? > > -- > Bastien > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3