Hello,

Berthold Höllmann <berthold.hoellm...@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 via email to