From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Minor nit - LaTeX header contents and footnotes Date: Thu, 20 Aug 2009 17:14:19 -0400 Message-ID: <10739.1250802859@alphaville.usa.hp.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeEzE-0005VU-EL for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 17:15:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeEz9-0005RD-Jw for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 17:15:55 -0400 Received: from [199.232.76.173] (port=53554 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeEz9-0005RA-Go for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 17:15:51 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:1300) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeEz8-0000Jj-Jj for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 17:15:50 -0400 Received: from smtp1.fc.hp.com (smtp.fc.hp.com [15.15.136.127]) by g5t0006.atlanta.hp.com (Postfix) with ESMTP id 979C0C0BE for ; Thu, 20 Aug 2009 21:14:19 +0000 (UTC) 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 I define a LaTeX macro at the top of my document, like so: ,---- | ... | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}% | #+LATEX_HEADER: #1\ignorespaces | #+LATEX_HEADER: } | ... `---- and export - I get the following inserted: ,---- | ... | \begin{document} | | | | | | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1 | ... `---- Obviously, the macro argument spec is mistaken for a footnote. Work-around: add a space like so: #+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}% HTH, Nick