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: Thu, 14 Apr 2016 10:03:49 +0200 Message-ID: <87inzkzkey.fsf@nicolasgoaziou.fr> References: 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]:51988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqcDg-0007PO-HN for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 04:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqcDb-0002gH-Hb for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 04:01:44 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqcDb-0002ev-Bq for emacs-orgmode@gnu.org; Thu, 14 Apr 2016 04:01:39 -0400 In-Reply-To: ("Berthold \=\?utf-8\?Q\?H\=C3\=B6llmann\=22's\?\= message of "Tue, 12 Apr 2016 10:54:22 +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 Hello, Berthold H=C3=B6llmann writes: > I am exporting a large table from org to pdf via LaTeX. The meaning of > some of the column headers are to be explained in footnotes. The table > spans more than one page, so continuation headers are generated using > longtabu. These continuation headers mangle with the footnote numbering > as can be seen in this example: > > # -*- mode: org -*- > #+STARTUP: showall > #+LaTeX_CLASS_OPTIONS: [a5paper] > #+LATEX_HEADER: \usepackage[T1]{fontenc} > #+LATEX_HEADER: \usepackage[utf8x]{inputenc} > #+LATEX_HEADER: \usepackage{tabu} > #+TITLE: Multi page table test > > * Multi page table > > #+ATTR_LATEX: :environment longtabu > | *Typ[fn:test]* | > |----------------| > | 1 | > | 2 | > | 3 | > | 4 | > | 5 | > | 6 | > | 7[fn:test2] | > | 8 | > | 9 | > | 10 | > |----------------| > > * Footnotes > > [fn:test] > Testing footnotes with multi page latex tables. > > [fn:test2] > Another Test [...] > \section{Multi page table} > \label{sec:orgheadline1} > > \begin{longtabu}{r} > \textbf{Typ\footnotemark}\\ > \hline > \endfirsthead > \multicolumn{1}{l}{Continued from previous page} \\ > \hline > > \textbf{Typ\footnotemark} \\ > > \hline > \endhead > \hline\multicolumn{1}{r}{Continued on next page} \\ > \endfoot > \endlastfoot > \hline > 1\\ > 2\\ > 3\\ > 4\\ > 5\\ > 6\\ > 7\footnotemark\\ > 8\\ > 9\\ > 10\\ > \hline > \end{longtabu} > \footnotetext[1]{Testing footnotes with multi page latex tables.}\footnot= etext[2]{Another Test} > \end{document} > > > > [fn:test] becomes [1] in the first, and [2] in the continuation headers, > but [2] links to the content of [fn:test2], which becomes a reference > without target. Isn't it a LaTeX limitation? IIRC, footnotes support in tables is somewhat flaky. Anyway, if you think it is Org's fault, do you know the LaTeX code that should be produced in this case? Regards, --=20 Nicolas Goaziou