Trying to make a multi-page figure panel, with 50 same-sized figures in a 2-by-5 arrangement on 5 pages, a Figure caption for the entire thing at the top of the first page, and everything placed onto pages where the margin has been reduced.
With subfigure, subfig, subcaption I only got errors about "Too many unprocessed floats.", and although \usepackage{morefloats} removed the error, it also removed the figures. Switching to simple 'tabular's caused other problems, similar as with 'minipage's, where the figure panel would have to be split into one panel per page and then other floats would appear between the panels, despite many earlier \clearpage's.
With 'longtable' it almost works. But the table is not counted under Figures.
\documentclass{article}
\usepackage{longtable}
\usepackage{capt-of}
\begin{document}
\begin{longtable}{cc}
\captionof{figure}{This gives a Misplaced noalign error \label{fig:dummy1}} \\
%\caption[This]{Works} \\
Test & test 2 \\
Test & test 2 \\
% later need to include this: \addtocounter{table}{-1} %
\end{longtable}
\end{document}
How to get captionof to work...?

\captionofoutside thelongtableenvironment. Have you tried? And whyfigure? – Werner Dec 06 '13 at 04:11longtablehas its own definition of\captionwhich makes using\capttionofdoubly difficult: Even if you circumvent theMisplaced \noalign, you'll notice that the floattypetableis hardcoded... I don't know whether it's worth it to make a complete redefinition oflongtables version of\caption. – Stephan Lehmke Dec 06 '13 at 06:57