| 1 |
%% |
| 2 |
%% This is file `morefloats-example.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% morefloats.dtx (with options: `example') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: morefloats |
| 12 |
%% Version: 2025/01/28 v1.1a |
| 13 |
%% |
| 14 |
%% Copyright (C) 2010 - 2025 by |
| 15 |
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de> |
| 16 |
%% Portions of code copyrighted by other people as marked. |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3c or later is part of all distributions of |
| 26 |
%% LaTeX version 2005-12-01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainer of this work is H.-Martin Muench. |
| 31 |
%% |
| 32 |
%% LaTeX 2015 provides the extrafloats command. |
| 33 |
%% Don Hosek, Quixote, 1990-07-27 (Thanks!) |
| 34 |
%% invented the main code for handling more floats |
| 35 |
%% before extrafloats was available. |
| 36 |
%% Maintenance has been taken over in September 2010 |
| 37 |
%% by H.-Martin Muench. |
| 38 |
%% David Carlisle pointed the maintainer to the new |
| 39 |
%% extrafloats command (Thanks!). |
| 40 |
%% |
| 41 |
%% This work consists of the main source file morefloats.dtx, |
| 42 |
%% the README, and the derived files |
| 43 |
%% morefloats.sty, morefloats.pdf, |
| 44 |
%% morefloats.ins, morefloats.drv, |
| 45 |
%% morefloats-example.tex, morefloats-example.pdf. |
| 46 |
%% |
| 47 |
%% In memoriam |
| 48 |
%% Claudia Simone Barth + 1996-01-30 |
| 49 |
%% Tommy Muench + 2014-01-02 |
| 50 |
%% Hans-Klaus Muench + 2014-08-24 |
| 51 |
%% |
| 52 |
\documentclass[british]{article}[2024/06/29]% v1.4n |
| 53 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 54 |
\usepackage[maxfloats=25]{morefloats}[2025/01/28]% v1.1a |
| 55 |
%% \maxdeadcycles=200\relax% |
| 56 |
%%% \maxdeadcycles is the maximum number of calls of \output |
| 57 |
%%% without a \shipout. |
| 58 |
\listfiles |
| 59 |
\begin{document} |
| 60 |
|
| 61 |
\makeatletter |
| 62 |
|
| 63 |
\section*{Example for morefloats} |
| 64 |
\markboth{Example for morefloats}{Example for morefloats} |
| 65 |
|
| 66 |
This example demonstrates the use of package\newline |
| 67 |
\textsf{morefloats}, v1.1a as of 2025/01/28 (HMM).\newline |
| 68 |
The package takes options (here: |
| 69 |
\verb|maxfloats=|\texttt{\morefloats@maxfloats} is used).\newline |
| 70 |
For more details please see the documentation!\newline |
| 71 |
|
| 72 |
To reproduce the\newline |
| 73 |
\LaTeX{} \texttt{ Error: Too many unprocessed floats},\newline |
| 74 |
comment out the \verb|\usepackage...| in the preamble |
| 75 |
(line~3)\newline |
| 76 |
(by placing a \% before it).\bigskip |
| 77 |
|
| 78 |
There follow \morefloats@maxfloats{} floating tables. |
| 79 |
|
| 80 |
\pagebreak |
| 81 |
|
| 82 |
\@tempcnta=18\relax% default floats |
| 83 |
\advance\@tempcnta by \morefloats@morefloats% |
| 84 |
\loop |
| 85 |
\ifnum\@tempcnta>0\relax% |
| 86 |
\begin{table}[t]\centering% |
| 87 |
\begin{tabular}{|l|}% |
| 88 |
\hline% |
| 89 |
A table, which will keep floating.\\% |
| 90 |
\hline |
| 91 |
\end{tabular}% |
| 92 |
\caption{A floating Table.}% |
| 93 |
\end{table}% |
| 94 |
\advance\@tempcnta by -1\relax% |
| 95 |
\repeat |
| 96 |
|
| 97 |
\makeatother |
| 98 |
|
| 99 |
\end{document} |
| 100 |
\endinput |
| 101 |
%% |
| 102 |
%% End of file `morefloats-example.tex'. |