From mboxrd@z Thu Jan 1 00:00:00 1970 From: bhoel@despammed.com (Berthold =?utf-8?Q?H=C3=B6llmann?=) 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 00:11:51 +0200 Message-ID: <87y489gsew.fsf@pchoel.xn--hllmanns-n4a.de> References: <87inzkzkey.fsf@nicolasgoaziou.fr> <87bn59vp68.fsf@nicolasgoaziou.fr> <87lh4c9r90.fsf@pchoel.xn--hllmanns-n4a.de> <878u09cscp.fsf@nicolasgoaziou.fr> Reply-To: berthold@xn--hllmanns-n4a.de Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aseAJ-0007bS-O0 for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 18:30:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aseAE-0000Ux-L0 for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 18:30:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:40156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aseAE-0000Uo-DO for emacs-orgmode@gnu.org; Tue, 19 Apr 2016 18:30:34 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aseA7-0006Qd-ED for emacs-orgmode@gnu.org; Wed, 20 Apr 2016 00:30:27 +0200 Received: from x4e338abf.dyn.telefonica.de ([78.51.138.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Apr 2016 00:30:27 +0200 Received: from berthold by x4e338abf.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Apr 2016 00:30:27 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: Hello, > Hello, > > bhoel@despammed.com (Berthold H=C3=B6llmann) writes: > >> hypperref works again half way, if i define the first occurrence of the >> footnote using a bare "\footnotemark", and use "\footnotemark[> number>]" in subsequent uses. > > Isn't it the case already? > I also thought so, after looking into the code, but the result I get seemed to proves otherwise. I simplified my example: ,---- | #+LATEX_HEADER: \usepackage{tabu} | #+TITLE: Multi page table test |=20 | #+ATTR_LATEX: :environment longtabu | | *Typ[fn:1]* | | |-------------| | | 1[fn:1] | | |-------------| |=20 | * Footnotes |=20 | [fn:1] | Blind[fn:1] text `---- and the important part of the generated LaTeX file is: ,---- | \begin{longtabu}{l} | \textbf{Typ\footnotemark}\\ | \hline | \endfirsthead | \multicolumn{1}{l}{Continued from previous page} \\ | \hline |=20 | \textbf{Typ\footnotemark} \\ |=20 | \hline | \endhead | \hline\multicolumn{1}{r}{Continued on next page} \\ | \endfoot | \endlastfoot | \hline | 1\footnotemark[1]{}\\ | \hline | \end{longtabu} | \footnotetext[1]{Blind\footnotemark[1]{} text} `---- 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. > > > Regards, --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXFq8BAAoJELdOLWUCa5tF8CUP/1ZzoKamjFUayw5RBuciZTY1 w5dfqdQj7p9C7r7IBcCVOxXOl2OZVrcyDuV+5eBtPFckbZfHMe3Nsnb2BnnB1sIH /ZgF0dHK+Fl/O3pXMWoU0oRsYaBMN0+lRjTZCICuPViGH5dnBheIbYi3hfBge0vd SN1u8dsZ8SNIiiUcgswy+6P/3pVyKPVVUflDi5hKOmF93pJ7hWLu0R4aOQhjmbyS dhcTOD7yr0amtKiq9MDJnauDsK9/OoKtEIDd3ZU7PRUerUYzEUuHRUBUN3HapaR2 dj+AxdKOzTtrTg20/KI7sCUPqp2HWOpKZS7V2jy1VdcehDnsKg7hWu3UpEsZsLLq N82qlD93Zw2x1Y1o6SVGN2cvbkhA+tP1DTNc/7nQp/5p8cz7Gy4qUYSN2iXFfH5R LRqGZ6OuiSrRNHkrw5MCSU4CcBajVVpVHgCClP3uvjNnpZ/QVhB17S+xlN3SIfvh L2HnTU5fXMgoDy7L8zoCmjqjSLexb7jO3HvAURBQ+tPMwQm5j5dYndiC/85GROnB A81K0zrk9im914KfoqJKGQbdT4On8d1/79hN3hRvecWOub3St6iEvf5BQLlCv4Lw xKouEJ653UNusQpzshatPkipKD/9Jpt2UGaXpmwsCrMJ/S1N/c4PGT2LKp2Tnym3 nOdbow8wDDjbYHHz1nn9 =U6Mn -----END PGP SIGNATURE----- --=-=-=--