From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Latex Export Difficulties Date: Thu, 6 Feb 2014 12:29:10 +0000 Message-ID: <87sirws9ux.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBO5C-0002Cj-Ow for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:29:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBO55-0003gy-Qr for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:29:30 -0500 Received: from tx2outboundsmtppool1.messaging.microsoft.com ([65.55.83.131]:41799 helo=TX2EHSNDR001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBO55-0003g4-JT for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:29:23 -0500 In-Reply-To: (Samuel Schaumburg's message of "Thu, 6 Feb 2014 10:20:43 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Schaumburg Cc: Org-mode --=-=-= Content-Type: text/plain Samuel Schaumburg writes: [...] > What I learned from my research is that the line has to look like this, > so that I can compile: > > \section{Some Headline \protect\footnote{S. 45}} > > This case is quite typicall for me and leads to often manually reworking > the tex buffer for quite a while, which is not very convenient. > > Is there any way I can set up the org latex export to do this > automatically. Would greatly help my workflow. I am quite a newbie to > emacs-lisp, so I cannot think of how to do this. Maybe someone can help > me here Not an org solution per se but you could redefine \footnote to do what you want. The example below/attached seems to work. I have no idea if it breaks the usage of footnote in other places, mind you. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename="t.org" Content-Description: example redefining footnote in latex * Testing redefinition of footnote #+latex: \let\origfootnote\footnote #+latex: \renewcommand{\footnote}{\protect\origfootnote} ** Subheading [fn:1: Which has a very interesting footnote] This is some really boring text because all the interesting stuff is in the footnote. --=-=-= Content-Type: text/plain HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5h-585-g5f0ca0 --=-=-=--