Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
3_composition:texte:pages:entetes:raccourcir_les_rappels_de_titres_en_haut_de_page2 [2018/05/23 08:40] joseph.wright |
3_composition:texte:pages:entetes:raccourcir_les_rappels_de_titres_en_haut_de_page2 [2021/02/13 10:21] yannick.tanguy Traduction de l'article anglais, correction de la structure et mise à jour des liens. |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | # My section title is too wide for the page header | + | ====== Comment gérer un titre trop long dans un en-tête de page ? ====== |
- | By default, LaTeX sectioning commands make the chapter or section | + | Par défaut, les commandes de sectionnement de < |
- | title available for use by page headers and the like. Page headers | + | |
- | operate in a rather constrained area, and it's common for titles too | + | |
- | be too big to fit: the LaTeX sectioning commands therefore take an | + | |
- | optional argument: | + | |
- | ```latex | + | |
- | \section[short title]{full title} | + | |
- | ``` | + | |
- | If the & | + | |
- | contents and for the page heading. | + | |
- | complain that their title is too big for the running head is to | + | |
- | suggest that they the optional argument. | + | |
- | However, using the same text for the table of contents as for the | + | ===== Avec les commandes de base ===== |
- | running head may also be unsatisfactory: | + | |
- | seriously long (like those of a Victorian novel), a valid and rational | + | |
- | scheme is to have a shortened table of contents entry, and a really | + | |
- | terse entry in the running head. | + | |
- | One of the problems is the tendency of page headings to be set in | + | Les commandes de sectionnement autorisent un argument optionnel |
- | capitals (which take up more space); so why not set headings as written | + | |
- | for '' | + | |
- | LaTeX, but the [`fancyhdr`](http:// | + | |
- | `\nouppercase` for use in its header (and footer) lines to suppress | + | |
- | LaTeX' | + | |
- | bundle don't uppercase in the first place. | + | |
- | In fact, the sectioning commands use '' | + | <code latex> |
- | information to the page headers. | + | \section[titre court]{titre long} |
- | `\chaptermark`, | + | </ |
- | this knowledge, one can achieve a three-layer structure for chapters: | + | |
- | ```latex | + | |
- | \chapter[middling version]{verbose version} | + | |
- | \chaptermark{terse version} | + | |
- | ``` | + | |
- | which should supply the needs of every taste. | + | |
- | Chapters, however, have it easy: hardly any book design puts a page | + | Si le //titre court// est présent, il sert à la fois pour la table des matières et pour l'en-tête de page. |
- | header on a chapter start page. In the case of sections, one has | + | |
- | typically to take account of the nature of the `\*mark` commands: | + | |
- | the thing that goes in the heading is the first mark on the page (or, | + | |
- | failing any mark, the last mark on any previous page). | + | |
- | the recipe for sections is more tiresome: | + | |
- | <!-- {% raw %} --> | + | |
- | ```latex | + | |
- | \section[middling version]{verbose version% | + | |
- | \sectionmark{terse version}} | + | |
- | \sectionmark{terse version} | + | |
- | ``` | + | |
- | <!-- {% endraw %} --> | + | |
- | (the first `\sectionmark` deals with the header of the page the | + | |
- | `\section` command falls on, and the second deal with subsequent | + | |
- | pages; note that here, you need the optional argument to `\section`, | + | |
- | even if '' | + | |
- | '' | + | |
- | A similar arrangement is necessary even for chapters if the class | + | Efficace, cette technique est devenue la réponse usuelle aux gens qui se plaignent de titres trop longs. Cependant, recourir au même texte pour la table des matières et pour les en-têtes peut également être peu satisfaisant : si les titres de vos chapitres sont vraiment très longs (comme ceux d'un [[https:// |
- | you're using is odd enough that it puts a page header on a chapter's | + | |
- | opening page. | + | |
- | Note that the [`titlesec`](http://ctan.org/pkg/titlesec) package manages the running heads in | + | Ici, les commandes de sectionnement utilisent des commandes de « marque » pour transmettre des informations aux en-têtes de page. Par exemple, '' |
- | a completely different fashion; for example, you can use the optional | + | |
- | argument | + | <code latex> |
- | package as: | + | \chapter[titre court]{titre long} |
- | ```latex | + | \chaptermark{titre très court} |
+ | </ | ||
+ | |||
+ | Les chapitres, cependant, ont la tâche facile : rares sont les livres où un en-tête de page est placé sur la page de début de chapitre | ||
+ | |||
+ | <code latex> | ||
+ | \section[titre court]{titre long\sectionmark{titre très court}} | ||
+ | \sectionmark{titre très court} | ||
+ | </code> | ||
+ | |||
+ | Ici, le premier '' | ||
+ | |||
+ | ===== Avec l' | ||
+ | |||
+ | L' | ||
+ | |||
+ | < | ||
\usepackage[toctitles]{titlesec} | \usepackage[toctitles]{titlesec} | ||
- | ``` | + | </ |
- | The package | + | |
+ | La [[texdoc> | ||
+ | |||
+ | ===== Avec la classe memoir ===== | ||
+ | |||
+ | La classe [[ctanpkg> | ||
+ | |||
+ | <code latex> | ||
+ | \section[titre court][titre très court]{titre long} | ||
+ | </ | ||
+ | |||
+ | En conséquence, | ||
- | The [`memoir`](http:// | + | ===== Avec l' |
- | extra optional argument for chapter and sectioning commands, for | + | |
- | example: | + | |
- | ```latex | + | |
- | \section[middling version][terse version]{verbose version} | + | |
- | ``` | + | |
- | As a result, it is always possible for users of [`memoir`](http:// | + | |
- | tailor the header text to fit, with very little trouble. | + | |
+ | Les problèmes de taille peuvent parfois venir du fait que < | ||
---- | ---- | ||
- | Content last updated: 2014-06-10 | + | //Source:// [[faquk> |
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} |