Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
composition:texte:renvois:les_references_croisees_sont_fausses [2018/12/03 23:56] – jejust | composition:texte:renvois:les_references_croisees_sont_fausses [2021/01/11 22:25] (Version actuelle) – Traduction de l'article anglais. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | + | Parfois, malgré de multiples exécutions de < | |
- | Sometimes, however many times you run LaTeX, | + | |
- | are just wrong. A likely reason is that you have placed the label | + | |
- | before the data for the label was set; if the label is recording a | + | |
- | '' | + | |
- | //after// the '' | + | |
<code latex> | <code latex> | ||
\begin{figure} | \begin{figure} | ||
- | | + | |
- | \caption{My figure} | + | \caption{Ma figure} |
- | \label{myfig} | + | \label{mafig} |
\end{figure} | \end{figure} | ||
</ | </ | ||
- | is correct, as is | ||
- | |||
<code latex> | <code latex> | ||
\begin{figure} | \begin{figure} | ||
- | | + | |
- | \caption{My figure% | + | \caption{Ma figure \label{mafig}} |
- | | + | |
\end{figure} | \end{figure} | ||
</ | </ | ||
- | whereas, in | + | Par contre, l' |
<code latex> | <code latex> | ||
\begin{figure} | \begin{figure} | ||
- | | + | |
- | \label{myfig} | + | \label{mafig} |
- | \caption{My figure} | + | \caption{Ma figure} |
\end{figure} | \end{figure} | ||
</ | </ | ||
- | the label will report the number of the section (or whatever) in which | ||
- | the surrounding text resides, or the like. | ||
- | You can, with the same malign effect, shield the '' | + | Vous pouvez, avec les mêmes conséquences fâcheuses, protéger la commande |
- | from its associated | + | |
- | environment of its own. This effect will be seen with: | + | |
<code latex> | <code latex> | ||
\begin{figure} | \begin{figure} | ||
- | | + | |
- | \caption{A Figure} | + | \caption{Ma figure} |
\end{figure} | \end{figure} | ||
- | \label{myfig} | + | \label{mafig} |
</ | </ | ||
- | where the '' | ||
- | but because the '' | ||
- | '' | ||
- | In summary, the '' | + | Ici, la commande |
- | defines it (e.g., | + | |
- | an environment, the '' | + | |
+ | En résumé, la commande '' | ||
----- | ----- | ||
Ligne 63: | Ligne 47: | ||
{{htmlmetatags> | {{htmlmetatags> | ||
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||