What is the easiest way to have all floats forcibly appear at the end of the document, one per page? The endfloat package is not an option, see below. The following questions are related but not helpful: How to place all floats (tables in particular) at a certain point in the document Place all floats last without changing numbering
In our environment we have wrappers for creating figures, tables etc.. The wrappers are implemented as environments to allow "everything" inside and furthermore accept, among others, the long and short caption name, the label and the contens of the figure. The implementation of the wrappers can be altered for different document layouts (caption above/below, figure separated by rule yes/no, . ). One particular layout requires each figure to be placed on a separate page after the main document.
The endfloat package comes to mind. However, I was unable to get it to work, as the figures are created by a wrapper. I have tried implementing this using \gappto : The figure-creating command would be just appended to a global hook which is executed just before \end
! Extra >, or forgotten \endgroup. \environment_richfigure_end_aux:w . gure>\egroup l.39 \endHow would you implement this?
\documentclass \pagestyle \usepackage \usepackage \usepackage \newcommand<> % Comment the following line to get working code \newcommand[1]<\gappto> % The example works with the default implementation of \dofigure \providecommand[1] %% \begin %% [, e.g. htp (h=here, t=top, p=page)] %% > %% > %% <<\label