%% %% This is file `morefloats-example.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% morefloats.dtx (with options: `example') %% %% This is a generated file. %% %% Project: morefloats %% Version: 2025/01/28 v1.1a %% %% Copyright (C) 2010 - 2025 by %% H.-Martin Muench %% Portions of code copyrighted by other people as marked. %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either %% version 1.3c of this license or (at your option) any later %% version. This version of this license is in %% https://www.latex-project.org/lppl/lppl-1-3c.txt %% and the latest version of this license is in %% https://www.latex-project.org/lppl.txt %% and version 1.3c or later is part of all distributions of %% LaTeX version 2005-12-01 or later. %% %% This work has the LPPL maintenance status "maintained". %% %% The Current Maintainer of this work is H.-Martin Muench. %% %% LaTeX 2015 provides the extrafloats command. %% Don Hosek, Quixote, 1990-07-27 (Thanks!) %% invented the main code for handling more floats %% before extrafloats was available. %% Maintenance has been taken over in September 2010 %% by H.-Martin Muench. %% David Carlisle pointed the maintainer to the new %% extrafloats command (Thanks!). %% %% This work consists of the main source file morefloats.dtx, %% the README, and the derived files %% morefloats.sty, morefloats.pdf, %% morefloats.ins, morefloats.drv, %% morefloats-example.tex, morefloats-example.pdf. %% %% In memoriam %% Claudia Simone Barth + 1996-01-30 %% Tommy Muench + 2014-01-02 %% Hans-Klaus Muench + 2014-08-24 %% \documentclass[british]{article}[2024/06/29]% v1.4n %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[maxfloats=25]{morefloats}[2025/01/28]% v1.1a %% \maxdeadcycles=200\relax% %%% \maxdeadcycles is the maximum number of calls of \output %%% without a \shipout. \listfiles \begin{document} \makeatletter \section*{Example for morefloats} \markboth{Example for morefloats}{Example for morefloats} This example demonstrates the use of package\newline \textsf{morefloats}, v1.1a as of 2025/01/28 (HMM).\newline The package takes options (here: \verb|maxfloats=|\texttt{\morefloats@maxfloats} is used).\newline For more details please see the documentation!\newline To reproduce the\newline \LaTeX{} \texttt{ Error: Too many unprocessed floats},\newline comment out the \verb|\usepackage...| in the preamble (line~3)\newline (by placing a \% before it).\bigskip There follow \morefloats@maxfloats{} floating tables. \pagebreak \@tempcnta=18\relax% default floats \advance\@tempcnta by \morefloats@morefloats% \loop \ifnum\@tempcnta>0\relax% \begin{table}[t]\centering% \begin{tabular}{|l|}% \hline% A table, which will keep floating.\\% \hline \end{tabular}% \caption{A floating Table.}% \end{table}% \advance\@tempcnta by -1\relax% \repeat \makeatother \end{document} \endinput %% %% End of file `morefloats-example.tex'.