Bug in longtable: \endlastfoot has no effect inside mdframed environment
Herbert Voss
Herbert.Voss at fu-berlin.de
Thu Jun 4 17:18:40 CEST 2020
Am 04.06.20 um 17:13 schrieb Ulrike Fischer:
> Am Wed, 3 Jun 2020 08:31:48 +0200 schrieb Adrian Vollmer:
>
>> Hello everyone,
>>
>> I originally noticed this bug in the package `ltablex`. However, it
>> appears that it traces back to `longtable`. Herbert Voß advised me to
>> post this here [1]. Hopefully, someone here can point me in the right
>> direction on how to fix or find a workaround for this bug.
>>
>> Consider this MWE:
>>
>> \documentclass{article}
>> \usepackage{mdframed}
>> \usepackage{longtable}
>> \begin{document}
>> \begin{mdframed}
>> \begin{longtable}{ll}%
>> foot
>> \endlastfoot
>> one & two \\
>> \end{longtable}
>> \end{mdframed}
>> \end{document}
>>
>> One would expect the word "foot" to appear at the bottom of the table,
>> but it doesn't. It works as expected if you remove the `mdframed`
>> environment.
>>
>> Any ideas?
> It doesn't make any sense to use longtable inside such a box. It
> can't break there anyway, and the \endlastfoot doesn't make sense
> either as you will never have a "not-endlastfoot" part.
>
> So either don't use mdframed or don't use longtable but tabular
> instead.
Why should a pagebreak not be _allowed_??
Herbert
More information about the texhax
mailing list.