From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)] Date: Wed, 20 Apr 2016 23:40:56 +0200 Message-ID: <87mvoohsbb.fsf@nicolasgoaziou.fr> References: <87inzkzkey.fsf@nicolasgoaziou.fr> <87bn59vp68.fsf@nicolasgoaziou.fr> <87lh4c9r90.fsf@pchoel.xn--hllmanns-n4a.de> <878u09cscp.fsf@nicolasgoaziou.fr> <87y489gsew.fsf@pchoel.xn--hllmanns-n4a.de> 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]:37327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aszpf-0002PM-QM for emacs-orgmode@gnu.org; Wed, 20 Apr 2016 17:38:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aszpe-0001X0-Ot for emacs-orgmode@gnu.org; Wed, 20 Apr 2016 17:38:47 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:39169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aszpe-0001Wv-Ih for emacs-orgmode@gnu.org; Wed, 20 Apr 2016 17:38:46 -0400 In-Reply-To: <87y489gsew.fsf@pchoel.xn--hllmanns-n4a.de> ("Berthold \=\?utf-8\?Q\?H\=C3\=B6llmann\=22's\?\= message of "Wed, 20 Apr 2016 00:11:51 +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" To: Berthold =?utf-8?Q?H=C3=B6llmann?= Cc: emacs-orgmode@gnu.org, berthold@xn--hllmanns-n4a.de Hello, bhoel@despammed.com (Berthold H=C3=B6llmann) writes: > Even so there seem to be two different routines for writing the column > header for the first and the subsequent pages (in the first one the \\ > follows directly to the '}', whereas the second time a space is added), > it seems, the string is generated only once, because the "[1]" is > missing on the second "\footnotemark", but added to the third one. This is exactly that. In `ox-latex-table-row', string bound to argument CONTENTS is used twice. I guess we could workaround that by first checking if there is any footnote reference within the row and, in that case, force re-exporting each cell in the row. OTOH, Org already piles up workarounds in order to support footnotes within tables (and other locations) in LaTeX export. We will probably need to stop at some point, and handle this at the LaTeX level (i.e., with an appropriate package). WDYT? Regards, --=20 Nicolas Goaziou