Wrong order of footnote numbers in tables with afterpage

_johnny7_ger at web.de _johnny7_ger at web.de
Wed May 26 07:52:48 UTC 2021

>> Hello,
>> I have several multi-page tables in my document. With the package
>> afterpage it is convenient to force them to always begin on a new page
>> which works well. I also want to use footnotes in those tables - I am
>> aware that this is fragile - but this also works as expected. There is
>> one little flaw, however, the footnote numbering does not correspond
>> anymore to their actual order.
>> In LyX I have:
>> Footnote 1
>> (afterpage:) Table with Footnote 2
>> Footnote 3
>> In the output I have:
>> Footnote 1
>> Table with Footnote 3
>> Footnote 2
>> That is probably because Footnote 3 is in a paragraph that begins before
>> the table. Is there any way to correct this numbering, even if manually
>> for each case?
> You'd have to manually reset the footnote numbers. You can do this with:
> \setcounter{footnote}{3}
> or whatever. You'll need to restore it to whatever's right also after
> the last one.
> Riki
Thanks, this works like a charm! I have to use this command three times.

More information about the lyx-users mailing list