emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: bhoel@despammed.com (Berthold Höllmann)
To: 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: Wed, 20 Apr 2016 00:11:51 +0200	[thread overview]
Message-ID: <87y489gsew.fsf@pchoel.xn--hllmanns-n4a.de> (raw)
In-Reply-To: 878u09cscp.fsf@nicolasgoaziou.fr

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

Hello,

> Hello,
>
> bhoel@despammed.com (Berthold Höllmann) writes:
>
>> hypperref works again half way, if i define the first occurrence of the
>> footnote using a bare "\footnotemark", and use "\footnotemark[<footnote
>> 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
| 
| #+ATTR_LATEX: :environment longtabu
| | *Typ[fn:1]* |
| |-------------|
| | 1[fn:1]     |
| |-------------|
| 
| * Footnotes
| 
| [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
| 
| \textbf{Typ\footnotemark} \\
| 
| \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,

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2016-04-19 22:30 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
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 [this message]
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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87y489gsew.fsf@pchoel.xn--hllmanns-n4a.de \
    --to=bhoel@despammed.com \
    --cc=berthold@xn--hllmanns-n4a.de \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).