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/05/24 08:23] – d.p.carlisle | 3_composition:flottants:flottant_non_centre [2021/06/09 19:21] (Version actuelle) – Correction du titre. Reformulation. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | # Why is my table/figure/& | + | ====== Pourquoi ma figure |
+ | Vous vouliez un flottant centré horizontalement, | ||
+ | ignore votre environnement '' | ||
+ | Vous avez probablement écrit quelque chose comme ça : | ||
- | + | < | |
- | + | ||
- | You want a float whose contents are centred, but LaTeX ignores your | + | |
- | `center` environment. | + | |
- | ```latex | + | |
\begin{center} | \begin{center} | ||
\begin{figure} | \begin{figure} | ||
Ligne 12: | Ligne 11: | ||
\end{figure} | \end{figure} | ||
\end{center} | \end{center} | ||
- | ``` | + | </ |
- | In this case, LaTeX has '' | + | |
- | and will typeset it at some location it fancies | + | Quand il a rencontré ce code, LaTeX a pris la figure |
- | `table`s) the only thing we can say (for sure) about the | + | et il va s'occuper de l'afficher là où il en a envie |
- | location is that it _won't_ be inside that `center` | + | (ce serait la même chose avec un tableau, car c'est le principe même des flottants) ; |
- | environment. As a result, the `center` environment is | + | du coup, la figure n'est plus à l' |
- | left with nothing to do& | + | Par conséquent, cet environnement n'a plus de raison d' |
- | [make a mess of your vertical | + | 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' | ||
+ | Vous devrez donc plutôt écrire: | ||
- | The solution is the same as that outlined in | + | <code latex> |
- | [the same answer](FAQ-vertspacefloat.md), | + | |
- | an `figure` or `table` needs to be | + | |
- | inside the environment. | + | |
- | ```latex | + | |
\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> |
- | Content last updated: 2014-06-10 | + | metatag-og:title=(Pourquoi ma figure n'est pas centrée? |
+ | metatag-og: | ||
+ | }} | ||