Good afternoon,
This is a continuation of this question, which solved the problem of putting a longtable inside the multicols environment (which is not currently supported without some tinkering). This is excellent, and as the example below shows it works beautifully.
However when I want to add a "thanks" field to the author and this trick seems to stop working (longtable discovers it is in twocolumn mode). The code block below will reproduce the error, and the forced output is shown at the very end.
Does anyone have an idea why this is happening? (FYI I would like to stick to "longtable" because I am using this in conjunction with the glossaries package (it actually works!) and I could not get "supertable" to span exactly the column width.)
Thank you for your time.
Sigve
\documentclass[article]{memoir}
%
\usepackage{longtable}
\usepackage{multicol}
\usepackage{blindtext}
%
\newsavebox\ltmcbox
\newcounter{entryno}
\setcounter{entryno}{1}
\def\tabline{Test & \the\value{entryno} & Description\addtocounter{entryno}{1}\\}
\def\tablines{\tabline\tabline\tabline\tabline\tabline}
% Remove "\thanks{---}" before typesetting
% %%%
% %%%
% %%%%%
% %%%
% %
\title{Longtable Inside Multicols \thanks{\copyright~2017~TeX}}
\author{Author Authorson}
%
\begin{document}
%
\maketitle
%
\begin{multicols}{2}
%
\blindtext
%
% ----------------------------------------------------
% Make "longtable" believe it is in one-column mode
\setbox\ltmcbox\vbox\bgroup
\makeatletter\col@number\@ne
\begin{longtable}{|l|l|l|}
\tablines\tablines
\end{longtable}
\unskip
\unpenalty
\unpenalty\egroup
\unvbox\ltmcbox
%
\blindtext
\end{multicols}
%
\end{document}