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
Prochaine révision Les deux révisions suivantes
3_composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2018/06/03 13:02]
d.p.carlisle
3_composition:flottants:positionnement:forcer_la_position_d_un_flottant2 [2020/12/08 13:24]
yannick.tanguy Début de la traduction.
Ligne 1: Ligne 1:
---- +====== Comment imposer un emplacement à un flottant ? ======
-title: Figure (or table) _exactly_ where I want it +
-category: floats +
-tags: +
-  - tables +
-  - figures +
-permalink: /FAQ-figurehere +
----+
  
-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`](https://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 25: 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`](https://ctan.org/pkg/here) provides the same function, +
-but is no longer recommended.)+
  
-However, you don't actually _have_ to use [`float`](https://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`](https://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 40: 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`](https://ctan.org/pkg/capt-ofor from the highly +simple-minded package [[ctanpkg>capt-of|capt-of]] or from the highly 
-sophisticated [`caption`](https://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
Ligne 50: Ligne 34:
 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
Ligne 59: 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`](https://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 68: 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]]
 +
 +{{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.txt · Dernière modification: 2021/11/28 15:46 de yannick.tanguy
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0