Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
composition:flottants:flottant_non_centre [2018/05/22 11:37] – créée joseph.wright | 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} | ||
- | ``` | + | </code> |
- | In this case, LaTeX has '' | + | |
- | 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.html). | + | |
+ | Quand il a rencontré ce code, LaTeX a pris la figure en charge, | ||
+ | et il va s' | ||
+ | (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' | ||
+ | Par conséquent, | ||
+ | sauf [[3_composition: | ||
- | The solution | + | La solution |
- | [the same answer](./ | + | à savoir que tout les commandes contrôlant le rendu d'un flottant tel que '' |
- | an `figure` or `table` needs to be | + | doivent se trouver **à l'intérieur** de l' |
- | inside the environment. | + | Vous devrez donc plutôt écrire: |
- | ```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> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||