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:texte:renvois:numeroter_les_equations_et_figures_en_continu [2018/12/03 23:56] – jejust | 3_composition:texte:renvois:numeroter_les_equations_et_figures_en_continu [2022/11/30 16:47] (Version actuelle) – Usage de ⟨...⟩ et traduction corrigée dbitouze | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | De nombreuses classes < | ||
- | Many LaTeX classes (including the standard [[ctanpkg> | + | ===== Avec l'extension “chngcntr” ===== |
- | number things per chapter; so figures in chapter 1 are numbered 1.1, | + | |
- | 1.2, and so on. Sometimes this is not appropriate for the user's | + | |
- | needs. | + | |
- | Short of rewriting the whole class, one may use the [[ctanpkg> | + | À moins de réécrire toute la classe, il est possible d' |
- | package, which provides commands | + | |
- | establishes this nested numbering relationship) and | + | |
- | '' | + | |
- | So if you have figures | + | Supposons que vos figures |
- | the command | + | |
<code latex> | <code latex> | ||
\counterwithout{figure}{chapter} | \counterwithout{figure}{chapter} | ||
</ | </ | ||
- | will convert them to figures 1, 2, 3, .... (Note that the command | ||
- | has also removed the chapter number from the counter' | ||
- | More elaborate use could change things numbered per section to things | + | Alors, vos figures seront numérotées 1, 2, 3, ... Vous pourrez noter que la commande a également retiré le numéro de chapitre de la définition du compteur. |
- | numbered per chapter: | + | |
+ | Voici un autre exemple permettant de changer les éléments numérotés par section (ici les équations) en éléments numérotés par chapitre | ||
<code latex> | <code latex> | ||
Ligne 28: | Ligne 21: | ||
\counterwithin{equation}{chapter} | \counterwithin{equation}{chapter} | ||
</ | </ | ||
- | (assuming there was a class that did such a thing in the first place...) | ||
- | The [[ctanpkg> | + | ===== Avec la commande “\@removefromreset” ===== |
- | the enthusiastic LaTeX programmer might choose to try the technique | + | |
- | that we had to use before the advent of [[ctanpkg> | + | L' |
- | the packages | + | |
- | '' | + | |
- | writes something like: | + | |
<code latex> | <code latex> | ||
Ligne 42: | Ligne 31: | ||
\makeatother | \makeatother | ||
</ | </ | ||
- | and the automatic renumbering stops. | + | |
- | way in which the figure | + | Vous pourrez alors avoir besoin de rédéfinir la manière dont le numéro de la figure (dans ce cas) est présenté |
<code latex> | <code latex> | ||
Ligne 50: | Ligne 39: | ||
\makeatother | \makeatother | ||
</ | </ | ||
- | (remember to do the whole job, for every counter you want to | ||
- | manipulate, within '' | ||
- | This technique, too, may be used to change where in a multilevel | + | Cette technique |
- | structure a counter is reset. | + | |
- | <// | + | |
- | numbered per chapter, try: | + | |
<code latex> | <code latex> | ||
Ligne 64: | Ligne 48: | ||
\renewcommand{\thefigure}{\thechapter.\@arabic\c@figure} | \renewcommand{\thefigure}{\thechapter.\@arabic\c@figure} | ||
\makeatother | \makeatother | ||
- | </ | + | </ |
- | (the command '' | + | |
- | " | + | |
- | '' | + | |
+ | La commande '' | ||
----- | ----- | ||
- | |||
//Source:// [[faquk> | //Source:// [[faquk> | ||
{{htmlmetatags> | {{htmlmetatags> | ||
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||