From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan BISSON Subject: Re: Latex export : newlines in footnotes. Date: Tue, 29 May 2012 11:52:41 +0000 (UTC) Message-ID: References: <4FC3EC0E.6050109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZKyz-0003UN-Ms for emacs-orgmode@gnu.org; Tue, 29 May 2012 07:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZKyt-0002mF-KW for emacs-orgmode@gnu.org; Tue, 29 May 2012 07:53:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:44510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZKyt-0002m3-Da for emacs-orgmode@gnu.org; Tue, 29 May 2012 07:52:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SZKyq-0005S2-7Y for emacs-orgmode@gnu.org; Tue, 29 May 2012 13:52:52 +0200 Received: from 147.210.71.83 ([147.210.71.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 13:52:52 +0200 Received: from bissonjonathan by 147.210.71.83 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 May 2012 13:52:52 +0200 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: emacs-orgmode@gnu.org Jonathan BISSON gmail.com> writes: > > Hello, > > When I try to export my org file using latest git (1 month ago version > got this problem too) to a tex file, I have problems with footnotes. > > * Orgfile > > Hello [fn:foo: bar] > > -> Latex Output > > Hello \footnote{bar > } > > So I got a newline after bar, which causes big troubles in tables as the > latex exporter puts the closing } at the end of the table, not a the end > of the current cell. > > Any clue on how to get rid of this new line, and get the closing element > at the right place ? > > Thanks ! > > In function org-export-latex-preprocess (file org-latex.el) I relace the (setq def …) on the beginning of the function by : (setq def (concat (replace-regexp-in-string "\n" "" def) (if (string-match "ORG-LIST-END-MARKER\\'" def) "\n" " "))) And now the footnotes are exported correctly. I can't find where in org-export-footnotes-seen the things are added with a \n inside. If anyone can take a look at this. Thanks, J.