From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Re: defining LaTeX macros that work inline and at export Date: Thu, 21 May 2009 17:28:46 -0500 Message-ID: <20090521222846.GI10324@thinkpad.adamsinfoserv.com> References: <20090521172801.GF10324@thinkpad.adamsinfoserv.com> 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 1M7Gle-0007Et-8H for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:29:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Glc-0007BC-HQ for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:29:37 -0400 Received: from [199.232.76.173] (port=45142 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Glc-0007B1-Dq for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:29:36 -0400 Received: from squirtle.drak.net ([72.52.144.201]:45191) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7Glc-0002Dv-1O for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:29:36 -0400 Received: from [12.5.152.114] (helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1M7GlR-00031F-18 for emacs-orgmode@gnu.org; Thu, 21 May 2009 17:29:25 -0500 Content-Disposition: inline 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: emacs-orgmode@gnu.org Gray, Yes, exporting will convert those variables inline, however, you could include an area to define them in your header. Then again, if thats the case, you may just want to stick to adding them into #+LATEX_HEADER. On Thu, May 21, 2009 at 10:08:21PM +0000, Gray Calhoun wrote: > > On Thu, May 21, 2009 at 05:13:41PM +0000, Gray Calhoun wrote: > > > > I'd like to define LaTeX macros that display correctly when they're > > > embedded in an org file and are preserved when I export that file to LaTeX. > > > Right now, I've added the LaTeX macros to org-format-latex-header, and > > > repeated the macros in a #+LATEX_HEADER: comment. The two drawbacks of > > > this approach are that I'd prefer to have most of the macros be > > > file-specific and that I'd like to avoid duplicating these LaTeX commands. > <- cut the rest -> > > Russell Adams AdamsInfoServ.Com> writes: > > > > > Couldn't you use the {{{macro}}} expansion in the export header? I > > believe you can make your own. > > > > Hi Russell, > > Thanks for the suggestion! > > I'm going to need to work with the LaTeX files themselves after writing > and editing the drafts in org mode, so I want the macros to stick > around after exporting the org file to LaTeX. My understanding is > that the {{{macro}}} approach would expand the macros during that > export. > > Best, > Gray > > > > _______________________________________________ > 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