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/06/02 15:37] 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? +
-category: errors +
-permalink: /FAQ-centre-flt +
-date: 2014-06-10 +
----+
  
-You want a float whose contents are centredbut LaTeX ignores your +Vous vouliez un flottant centré horizontalementmais <latex>\LaTeX{}</latex> 
-`center` environment.  Most likely, you have written+ignore votre environnement ''center''? 
-```latex+Vous avez probablement écrit quelque chose comme ça 
 + 
 +<code latex>
 \begin{center} \begin{center}
   \begin{figure}   \begin{figure}
Ligne 14: 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).+
  
-The solution is the same as that outlined in  +Quand il a rencontré ce code, LaTeX a pris la figure en charge, 
-[the same answer](FAQ-vertspacefloat), noting that all control of +et il va s'occuper de l'afficher là où il en a envie 
-an `figure` or `table` needs to be +(ce serait la même chose avec un tableau, car c'est le principe même des flottants
-inside the environment.  So the example's code should be converted to +du coupla figure n'est plus à l'intérieur de l'environnement ''center'' que vous pensiez utiliser. 
-```latex+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]]. 
 + 
 +La solution est la même que celle proposée [[3_composition:flottants:trop_d_espace_dans_un_flottant|dans cette réponse]], 
 +à savoir que tout les commandes contrôlant le rendu d'un flottant tel que ''figure'' ou ''table'' 
 +doivent se trouver **à l'intérieur** de l'environnement du flottant. 
 +Vous devrez donc plutôt écrire: 
 + 
 +<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.1527953857.txt.gz · Dernière modification : 2018/06/02 15:37 de joseph.wright
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0