Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
generalites:erreurs:too_many_unprocessed_floats [2020/12/08 07:28] – Début de traduction. yannick.tanguy | generalites:erreurs:too_many_unprocessed_floats [2021/01/10 16:13] (Version actuelle) – Suppression après fusion avec "generalites/erreurs/t/too_many_unprocessed_floats". jejust |
---|
====== Que signifie l'erreur « Too many unprocessed floats » ? ====== | |
| |
Parfois, <latex>\LaTeX</latex> répond à une commande ''\begin{figure}'' ou ''\begin{table}'' par le message d'erreur suivant : | |
| |
<code latex> | |
! LaTeX Error: Too many unprocessed floats. | |
| |
See the LaTeX manual or LaTeX Companion for explanation. | |
</code> | |
| |
En vous indiquant que « Trop de flottants n'ont pas été traités », <latex>\LaTeX</latex> vous indique que vos figures et tables n'ont alors pas été placées proprement. <latex>\LaTeX</latex> dispose en effet d'une quantité limitée d'espace de stockage pour les flottants (figures, tables ou tout flottant que vous avez définis vous-même avec l'extension [[ctanpkg>float|float]]) : si un de vos choix empêche <latex>\LaTeX</latex> de composer vos flottants, il finira par manquer d'espace de stockage. | |
| |
Ceci arrive généralement dans des cas extrêmes de [[composition:flottants:pourquoi_faire_flotter_ses_figures_et_tableaux|flottants beaucoup trop mobiles]] : <latex>\LaTeX</latex> a trouvé un flottant qu'il n'arrive pas à placer et, par suite, tous les flottants du même type se sont empilés derrière celui-ci. | |
| |
FIXME How does this happen? --- <latex>\LaTeX</latex> guarantees that caption numbers are sequential in the document, but the caption number is allocated when the figure (or whatever) is created, and can't be changed. Thus, if floats are placed out of order, their caption numbers would also appear out of order in the body of the document (and in the list of figures, or whatever). As a result, enforcement of the guarantee means that simple failure to place a float means that no subsequent float can be placed; and hence (eventually) the error. | |
| |
Techniques for solving the problem are discussed in the [[FAQ-floats|floats question]] already referenced. | |
| |
For LaTeX releases prior to 2015, an alternative //may// be to use the [[ctanpkg>morefloats|morefloats]] package. The package will allocate more "float skeletons" than LaTeX does by default; each such skeleton may then be used to store a float. Beware that even with [[ctanpkg>morefloats|morefloats]], the number you can allocate is limited; even with the [[ctanpkg>etex|etex]] package. | |
| |
LaTeX releases from 2015 onwards have an ''\extrafloats'' command which (assuming an $\epsilon$-TeX format is being used) will allow many more float boxes to be allocated (the upper limit being several thousand, rather more than can reasonably handled in tex macro lists.) Also the default number of floats that may be stored has been increased from 18 to 52. Current LaTeX releases will run ''\extrafloats{1}'' before giving this error, so it is highly unlikely that you get this error unless over 32 thousand registers have been allocated. | |
| |
The error also occurs in a long sequence of float environments, with no intervening text. Unless the environments will fit "here" (and you've allowed them to go "here"), there will never be a page break, and so there will never be an opportunity for LaTeX to reconsider placement. Even though modern LaTeX releases will allow thousands, rather than just 18 floats to be held in this way, it is still a good idea to avoid this situation which can make LaTex run slowly and in extreme cases cause other out of memory errors. | |
| |
Of course, the floats can't all fit "here" if the sequence is sufficiently prolonged: once the page fills, LaTeX won't place any more floats, leading to the error. | |
| |
Techniques for resolution may involve redefining the floats using the [[ctanpkg>float|float]] package's ''[H]'' float qualifier, but you are unlikely to get away without using ''\clearpage'' from time to time. | |
| |
| |
----- | |
| |
//Source:// [[faquk>FAQ-tmupfl|"Too many unprocessed floats"]] | |
| |
{{htmlmetatags>metatag-keywords=(LaTeX,errors) | |
metatag-og:title=("Too many unprocessed floats") | |
metatag-og:site_name=(FAQ LaTeX francophone) | |
}} | |
| |