From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gray Calhoun Subject: Re: defining LaTeX macros that work inline and at export Date: Thu, 21 May 2009 22:08:21 +0000 (UTC) Message-ID: References: <20090521172801.GF10324@thinkpad.adamsinfoserv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7GRN-0004lp-4a for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:08:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7GRI-0004kl-L4 for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:08:40 -0400 Received: from [199.232.76.173] (port=34235 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7GRI-0004ki-Go for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:08:36 -0400 Received: from main.gmane.org ([80.91.229.2]:50723 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7GRH-0006Ry-Tj for emacs-orgmode@gnu.org; Thu, 21 May 2009 18:08:36 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M7GRE-0008GG-KV for emacs-orgmode@gnu.org; Thu, 21 May 2009 22:08:32 +0000 Received: from econ-dyn-148-12.ucsd.edu ([132.239.148.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 May 2009 22:08:32 +0000 Received: from gcalhoun by econ-dyn-148-12.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 May 2009 22:08:32 +0000 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 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