Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
3_composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2018/05/23 10:38]
joseph.wright
3_composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2020/12/08 14:24] (Version actuelle)
yannick.tanguy Début de la traduction.
Ligne 1: Ligne 1:
-# Figure (or table) _exactly_ where I want it+====== Comment imposer un emplacement à un flottant? ======
  
-This is of course a contradiction: ​`figureand +FIXME This is of course a contradiction: ​''​figure'' ​and ''​table'' ​are //​designed// ​to float, and will always have the potential to appear away from where you asked for them.  Therefore you need something that behaves like a ''​figure'' ​or ''​table'' ​environment,​ except that it doesn'​t allow the figure or table to float.
-`tableare _designed_ ​to float, and will always have +
-the potential to appear away from where you asked for them.  Therefore +
-you need something that behaves like a `figureor +
-`tableenvironment,​ except that it doesn'​t allow the +
-figure or table to float.+
  
-The most straightforward way is to use of the [`float`](http://​ctan.org/​pkg/​floatpackage; +The most straightforward way is to use of the [[ctanpkg>​float|float]] package; it gives you a ''​[H]'' ​float placement option that prevents floating: 
-it gives you a `[H]float placement option that prevents + 
-floating: +<​code ​latex>
-```latex+
 \begin{figure}[H] \begin{figure}[H]
   \centering   \centering
Ligne 18: Ligne 12:
   \label{fig:​nonfloat}   \label{fig:​nonfloat}
 \end{figure} \end{figure}
-``` +</code>
-As the example suggests, such a `[H]` figure (or +
-corresponding table) offers all you need to cross-reference as well +
-as typeset. ​ (The package [`here`](http:​//​ctan.org/​pkg/​here) provides the same function, +
-but is no longer recommended.)+
  
-However, you don't actually ​_have_ ​to use [`float`](http://​ctan.org/​pkg/​float) ​(or +As the example suggests, such a ''​[H]''​ figure (or corresponding table) offers all you need to cross-reference as well as typeset. ​ (The package [[ctanpkg>​here|here]] provides the same function, but is no longer recommended.) 
-[`here`](http://​ctan.org/​pkg/​here)) since it is, in fact, doing rather little for you. + 
-You can place your figure as you please, with a sequence like +However, you don't actually ​//​have// ​to use [[ctanpkg>​float|float](or [[ctanpkg>​here|here]]) since it is, in fact, doing rather little for you. You can place your figure as you please, with a sequence like 
-```latex+ 
 +<​code ​latex>
 \begin{center} \begin{center}
   \includegraphics{foo}   \includegraphics{foo}
Ligne 33: Ligne 24:
   \label{fig:​nonfloat}   \label{fig:​nonfloat}
 \end{center} \end{center}
-``` +</​code>​ 
-which relies on the `\captionofcommand to place a caption without+which relies on the ''​\captionof'' ​command to place a caption without
 benefit of an enclosing float. ​ That command may be had from the extremely benefit of an enclosing float. ​ That command may be had from the extremely
-simple-minded package [`capt-of`](http://​ctan.org/​pkg/​capt-ofor from the highly +simple-minded package [[ctanpkg>​capt-of|capt-of]] or from the highly 
-sophisticated [`caption`](http://​ctan.org/​pkg/​captionpackage.+sophisticated [[ctanpkg>​caption|caption]] package.
  
 Using either method, you have to deal with the possibility of the Using either method, you have to deal with the possibility of the
 figure or table being too large for the page.  (Floating objects will figure or table being too large for the page.  (Floating objects will
-float away in this circumstance; ​''​doing it by hand''​, like this, you+float away in this circumstance; ​"doing it by hand", like this, you
 take upon yourself the responsibility for avoiding ​ take upon yourself the responsibility for avoiding ​
-''​_Overfull `\vbox`_''​ errors.+"//​Overfull ​''​\vbox''​//" ​errors.
  
-A further problem is the possibility that such ''​fixed floats'' ​will +A further problem is the possibility that such "fixed floats" ​will 
-overtake ​''​real floats''​, so that the numbers of figures will be out+overtake ​"real floats", so that the numbers of figures will be out
 of order: figure 6 could be on page 12, while figure 5 had floated to 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 page 13.  It's best, therefore, either to stay with floating figures
Ligne 52: Ligne 43:
  
 If it's really impossible to follow that counsel of perfection, you If it's really impossible to follow that counsel of perfection, you
-can use the [`perpage`](http://​ctan.org/​pkg/​perpagepackage'​s command ​`\MakeSorted`+can use the [[ctanpkg>​perpage|perpage]] package'​s command ​''​\MakeSorted''​
 command: command:
-```latex+ 
 +<​code ​latex>
 ... ...
 \usepackage{float} \usepackage{float}
Ligne 61: Ligne 53:
 \MakeSorted{table} \MakeSorted{table}
 ... ...
-```+</​code>​
 and the sequence of float numbers is all correct. and the sequence of float numbers is all correct.
  
  
-----+----
 + 
 +//Source:// [[faquk>​FAQ-figurehere|Figure (or table) _exactly_ where I want it]]
  
-Content last updated: 2014-06-10+{{htmlmetatags>​metatag-keywords=(LaTeX,​figures,​floats,​tables) 
 +metatag-og:​title=(Comment imposer un emplacement à un flottant) 
 +metatag-og:​site_name=(FAQ LaTeX francophone) 
 +}}
  
3_composition/flottants/positionnement/forcer_la_position_d_un_flottant2.1527064735.txt.gz · Dernière modification: 2018/05/23 10:38 par joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0