From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gray Calhoun Subject: defining LaTeX macros that work inline and at export Date: Thu, 21 May 2009 17:13:41 +0000 (UTC) Message-ID: 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 1M7BwD-0001Tg-8e for emacs-orgmode@gnu.org; Thu, 21 May 2009 13:20:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7Bw8-0001TI-Qz for emacs-orgmode@gnu.org; Thu, 21 May 2009 13:20:12 -0400 Received: from [199.232.76.173] (port=55387 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7Bw8-0001TF-K2 for emacs-orgmode@gnu.org; Thu, 21 May 2009 13:20:08 -0400 Received: from main.gmane.org ([80.91.229.2]:56207 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 1M7Bw8-0003hU-7p for emacs-orgmode@gnu.org; Thu, 21 May 2009 13:20:08 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1M7Bw2-0002jQ-SZ for emacs-orgmode@gnu.org; Thu, 21 May 2009 17:20:03 +0000 Received: from acs-econ200-11.ucsd.edu ([128.54.68.172]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 May 2009 17:20:02 +0000 Received: from gcalhoun by acs-econ200-11.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 May 2009 17:20:02 +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 Hi Everyone, 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. Is there a better way to do this? (I'm currently using org-mode version 6.25d and GNU Emacs 22.2.1). After reflecting on this a bit more, I thought of the following work around: it seems like I should be able to define a separate text file that lists all of the LaTeX macros and include it in both places with \input. That's a little ugly and only addresses the duplication issue, though. Any suggestions would be welcome! Best, Gray