From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Latex Export Difficulties Date: Thu, 06 Feb 2014 13:39:31 +0100 Message-ID: <878utoqut8.fsf@gmx.us> References: <87sirws9ux.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBODj-0004d8-TW for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:38:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBODe-00088u-HY for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:38:19 -0500 Received: from mout.gmx.net ([212.227.17.22]:65500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBODe-00088f-6x for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 07:38:14 -0500 Received: from x200s ([192.167.90.133]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LlE86-1VcbhN1lSA-00b2Ge for ; Thu, 06 Feb 2014 13:38:11 +0100 In-Reply-To: <87sirws9ux.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 6 Feb 2014 12:29:10 +0000") 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: e.fraga@ucl.ac.uk, eagleeye777@hotmail.de Cc: emacs-orgmode@gnu.org Eric S Fraga writes: > 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. > > * 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 t= he footnote. Try to add a TOC to this document. It's probably not what you want.=20 Another LaTeX hack would be to do something like: \def\myhead{My heading} \section[\myhead]{\myhead\footnote{My foot}} This is such an awkward construct that it should probably just relegated to a filter. =E2=80=93Rasmus --=20 May contains speling mistake