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 | ||
composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2018/12/03 23:14] – jejust | 3_composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2021/11/28 15:46] (Version actuelle) – Correction d'une coquille. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | La demande est contradictoire : '' | ||
- | This is of course a contradiction: | + | ===== Avec l'extension “float” ===== |
- | '' | + | |
- | the potential to appear away from where you asked for them. Therefore | + | |
- | you need something that behaves like a '' | + | |
- | '' | + | |
- | figure or table to float. | + | |
- | The most straightforward way is to use of the [[ctanpkg> | + | Le moyen le plus simple est d' |
- | it gives you a '' | + | |
- | floating: | + | |
<code latex> | <code latex> | ||
\begin{figure}[H] | \begin{figure}[H] | ||
- | \centering | + | \centering |
- | | + | |
- | \caption{caption text} | + | \caption{Beaucoup de bruit pour rien} |
- | \label{fig:nonfloat} | + | \label{fig:aaaaah} |
\end{figure} | \end{figure} | ||
</ | </ | ||
- | As the example suggests, such a '' | ||
- | corresponding table) offers all you need to cross-reference as well | ||
- | as typeset. | ||
- | but is no longer recommended.) | ||
- | However, you don't actually | + | Il existe une extension [[ctanpkg> |
- | [[ctanpkg> | + | |
- | You can place your figure as you please, with a sequence like | + | ===== Avec l' |
+ | |||
+ | En fait, vous n'avez pas //besoin// d' | ||
<code latex> | <code latex> | ||
\begin{center} | \begin{center} | ||
- | | + | |
- | \captionof{figure}{caption text} | + | \captionof{figure}{Beaucoup de bruit pour rien} |
- | \label{fig:nonfloat} | + | \label{fig:aaaaah} |
\end{center} | \end{center} | ||
</ | </ | ||
- | which relies on the '' | ||
- | benefit of an enclosing float. | ||
- | simple-minded package [[ctanpkg> | ||
- | sophisticated [[ctanpkg> | ||
- | Using either method, you have to deal with the possibility of the | + | Ce code s' |
- | figure or table being too large for the page. (Floating objects will | + | |
- | float away in this circumstance; | + | |
- | take upon yourself the responsibility for avoiding | + | |
- | "// | + | |
- | A further problem is the possibility that such "fixed floats" | + | ===== Les limites de ces méthodes ===== |
- | overtake "real floats", | + | |
- | of order: figure 6 could be on page 12, while figure 5 had floated to | + | |
- | page 13. It's best, therefore, either to stay with floating figures | + | |
- | throughout a document, or to use fixed figures throughout. | + | |
- | If it's really impossible to follow that counsel of perfection, you | + | ==== Gestion de l'encombrement des flottants ==== |
- | can use the [[ctanpkg> | + | |
- | command: | + | Quelle que soit la méthode utilisée, vous devrez gérer le cas où une figure ou un tableau soit trop grand pour la page (sous peine d' |
+ | |||
+ | ==== Gestion de la numérotation des flottants ==== | ||
+ | |||
+ | Un autre problème vient de la possibilité que de tels « flottants fixes » s' | ||
+ | |||
+ | Si vous ne pouvez suivre ce conseil, vous pouvez utiliser la commande | ||
<code latex> | <code latex> | ||
- | ... | ||
\usepackage{float} | \usepackage{float} | ||
\usepackage{perpage} | \usepackage{perpage} | ||
\MakeSorted{figure} | \MakeSorted{figure} | ||
\MakeSorted{table} | \MakeSorted{table} | ||
- | ... | ||
</ | </ | ||
- | and the sequence of float numbers is all correct. | ||
- | |||
----- | ----- | ||
- | |||
//Source:// [[faquk> | //Source:// [[faquk> | ||
- | {{htmlmetatags> | + | {{htmlmetatags> |
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||
- |