From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Schaumburg Subject: Latex Export Difficulties Date: Thu, 6 Feb 2014 10:20:43 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBL8j-0006oR-VC for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:21:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBL8a-0001ml-FZ for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:20:57 -0500 Received: from blu0-omc1-s28.blu0.hotmail.com ([65.55.116.39]:26907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBL8a-0001ma-Bt for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 04:20:48 -0500 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: Org-mode Hello, I am facing difficulties during org-Latex Export When I write outlines to scientific Texts I often have headlines, that are followed by a footnote, providing easy reference to the Text I am currently studying. Example: * Some Headline[fn:2] When I want to export my notes for printing, the Texbuffer has something like this: \section{Some Headline\footnote{S. 45}} Here comes the trouble: Auctex (with Texlive installed) normally does not compile this and throws a bunch of errors at me. 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 Thanks in advance Samuel