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:flottant_non_centre [2018/06/03 14:19] – samcarter | 3_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/ | + | |
- | category: errors | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | You want a float whose contents are centred, but LaTeX ignores your | + | Vous vouliez un flottant centré horizontalement, mais < |
- | `center` environment. | + | ignore votre environnement '' |
- | ```latex | + | Vous avez probablement écrit quelque chose comme ça : |
+ | |||
+ | < | ||
\begin{center} | \begin{center} | ||
\begin{figure} | \begin{figure} | ||
Ligne 14: | Ligne 11: | ||
\end{figure} | \end{figure} | ||
\end{center} | \end{center} | ||
- | ``` | + | </ |
- | 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' | + | |
- | environment. | + | |
- | left with nothing to do& | + | |
- | [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' |
- | 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. | + | du coup, la figure n'est plus à l' |
- | ```latex | + | Par conséquent, |
+ | sauf [[3_composition: | ||
+ | |||
+ | La solution est la même que celle proposée [[3_composition: | ||
+ | à savoir que tout les commandes contrôlant le rendu d'un flottant tel que '' | ||
+ | doivent se trouver **à l'intérieur** de l' | ||
+ | Vous devrez donc plutôt écrire: | ||
+ | |||
+ | < | ||
\begin{figure} | \begin{figure} | ||
\centering | \centering | ||
... | ... | ||
\end{figure} | \end{figure} | ||
- | ``` | + | </ |
- | (or something similar for a `table`). | + | (ce sera le même principe pour un environnement '' |
+ | |||
+ | |||
+ | ----- | ||
+ | //Source:// [[faquk> | ||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||