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édentesRévision précédente
Prochaine révision
Révision précédente
composition:flottants:flottant_non_centre [2018/05/26 20:48] joseph.wright3_composition:flottants:flottant_non_centre [2021/06/09 19:21] (Version actuelle) – Correction du titre. Reformulation. jejust
Ligne 1: Ligne 1:
---- +====== Pourquoi ma figure (ou mon tableau) n'est-elle pas centrée======
-title: Why is my table/figure/… not centred? +
-permalink: centre-flt +
-date: 2014-06-10 +
---- +
-# Why is my table/figure/… not centred?+
  
 +Vous vouliez un flottant centré horizontalement, mais <latex>\LaTeX{}</latex>
 +ignore votre environnement ''center''?
 +Vous avez probablement écrit quelque chose comme ça :
  
- +<code latex>
- +
-You want a float whose contents are centred, but LaTeX ignores your +
-`center` environment.  Most likely, you have written: +
-```latex+
 \begin{center} \begin{center}
   \begin{figure}   \begin{figure}
Ligne 17: Ligne 11:
   \end{figure}   \end{figure}
 \end{center} \end{center}
-``` +</code>
-In this case, LaTeX has ''taken the `figure` away'', +
-and will typeset it at some location it fancies (it does the same with +
-`table`s) the only thing we can say (for sure) about the +
-location is that it _won't_ be inside that `center` +
-environment.  As a result, the `center` environment is +
-left with nothing to do&nbsp;&hellip; except to  +
-[make a mess of your vertical spacing](FAQ-vertspacefloat.md).+
  
 +Quand il a rencontré ce code, LaTeX a pris la figure en charge,
 +et il va s'occuper de l'afficher là où il en a envie
 +(ce serait la même chose avec un tableau, car c'est le principe même des flottants) ;
 +du coup, la figure n'est plus à l'intérieur de l'environnement ''center'' que vous pensiez utiliser.
 +Par conséquent, cet environnement n'a plus de raison d'être...
 +sauf [[3_composition:flottants:trop_d_espace_dans_un_flottant|mettre le bazar dans votre espacement vertical]].
  
-The solution is the same as that outlined in  +La solution est la même que celle proposée [[3_composition:flottants:trop_d_espace_dans_un_flottant|dans cette réponse]], 
-[the same answer](FAQ-vertspacefloat.md)noting that all control of +à savoir que tout les commandes contrôlant le rendu d'un flottant tel que ''figure'' ou ''table'' 
-an `figure` or `table` needs to be +doivent se trouver **à l'intérieur** de l'environnement du flottant. 
-inside the environment.  So the example's code should be converted to +Vous devrez donc plutôt écrire: 
-```latex+ 
 +<code latex>
 \begin{figure} \begin{figure}
   \centering   \centering
   ...   ...
 \end{figure} \end{figure}
-``` +</code> 
-(or something similar for a `table`). +(ce sera le même principe pour un environnement ''table'').
  
  
 +-----
 +//Source:// [[faquk>FAQ-centre-flt|Why is my table/figure/... not centred?]]
  
 +{{htmlmetatags>metatag-keywords=(LaTeX,mise en page,tableaux,figures,environnement centré,comment centrer un tableau,comment centrer une figure)
 +metatag-og:title=(Pourquoi ma figure n'est pas centrée?)
 +metatag-og:site_name=(FAQ LaTeX francophone)
 +}}
  
3_composition/flottants/flottant_non_centre.1527367702.txt.gz · Dernière modification : 2018/05/26 20:48 de joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0