Bug in longtable: \endlastfoot has no effect inside mdframed environment

Ulrike Fischer news3 at nililand.de
Thu Jun 4 17:13:05 CEST 2020


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. 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the texhax mailing list.