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:titres:changer_la_presentation_des_numeros_de_sections [2018/12/04 00:01] – jejust | 2_composition:texte:titres:changer_la_presentation_des_numeros_de_sections [2020/12/28 19:26] (Version actuelle) – Renommage des sections de base: correction des liens internes. yannick.tanguy | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | Les problèmes généraux d' | ||
- | The general issues of adjusting the appearance of section headings are | + | Toutefois, si vous souhaitez simplement changer la façon dont la numérotation apparaît dans le titre de sectionnement et que vous n'avez pas peur d'écrire quelques commandes, cette réponse est alors faite pour vous. |
- | pretty complex, and are covered in | + | |
- | the question on | + | |
- | [[FAQ-secthead|the style of section headings]]. | + | |
- | + | ||
- | However, people regularly want merely to change the way the section | + | |
- | number appears in the heading, and some such people don't mind writing | + | |
- | out a few macros. | + | |
- | + | ||
- | The section number is typeset using the | + | |
- | [[FAQ-atsigns|LaTeX internal]] | + | |
- | '' | + | |
- | subsection, ...) of the heading, as argument. | + | |
- | '' | + | |
- | merely outputs the section number, and then a '' | + | |
+ | Le numéro d'un titre de sectionnement est composé par la commande [[2_programmation: | ||
<code latex> | <code latex> | ||
Ligne 25: | Ligne 13: | ||
</ | </ | ||
- | Suppose you want to put a stop after every section (subsection, | + | Supposons que vous vouliez mettre un point après chaque numéro de section (sous-section, sous-section, ...), un simple |
- | subsubsection, ...) number, a trivial change may be implemented by | + | |
- | simple modification | + | |
<code latex> | <code latex> | ||
Ligne 36: | Ligne 21: | ||
</ | </ | ||
- | However, many people want to modify | + | Cependant, vous pourriez souhaiter modifier les numéros de section, |
- | subsection numbers, or any of the others. To do this, one must make | + | |
- | '' | + | |
- | technique | + | |
- | enough for a relatively | + | |
<code latex> | <code latex> | ||
Ligne 50: | Ligne 30: | ||
</ | </ | ||
- | which uses a second-level command to provide the dot, if it has been | + | La commande modifiée utilise ici une commande de second |
- | defined; otherwise it merely appends | + | |
- | in this context). The definition of the second-level command | + | |
- | version for the '' | + | |
- | section number, but it could be used to put anything after it: | + | |
<code latex> | <code latex> | ||
\newcommand*{\adddot@section}{.} | \newcommand*{\adddot@section}{.} | ||
</ | </ | ||
- | Note that all the command definitions above are dealing in | ||
- | [[FAQ-atsigns|LaTeX internal commands]], so the above | ||
- | code should be in a package file, for preference. | ||
- | The [[ctanpkg> | + | Notez que toutes les définitions vues ci-dessus modifient des [[2_programmation: |
- | changes to section number presentation: | + | |
- | '' | + | |
- | their facilities are similar to those of " | + | |
+ | Les classes [[ctanpkg> | ||
----- | ----- | ||
Ligne 74: | Ligne 45: | ||
{{htmlmetatags> | {{htmlmetatags> | ||
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||