all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Berthold Höllmann" <berthold.hoellmann@dnvgl.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87inzkzkey.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <sepotvcim9.fsf@pc130799.gl.ad.germanlloyd.org> ("Berthold \=\?utf-8\?Q\?H\=C3\=B6llmann\=22's\?\= message of "Tue, 12 Apr 2016 10:54:22 +0200")

Hello,

Berthold Höllmann <berthold.hoellmann@dnvgl.com> 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.}\footnotetext[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,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-04-14  8:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12  8:54 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/)] Berthold Höllmann
2016-04-14  8:03 ` Nicolas Goaziou [this message]
2016-04-14 14:02   ` Berthold Hoellmann
2016-04-16 10:11     ` Nicolas Goaziou
2016-04-17 15:42       ` Berthold Höllmann
2016-04-19 19:26         ` Nicolas Goaziou
2016-04-19 22:11           ` Berthold Höllmann
2016-04-20 21:40             ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inzkzkey.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=berthold.hoellmann@dnvgl.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.