Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Dernière révision Les deux révisions suivantes | ||
3_composition:texte:pages:entetes:raccourcir_les_rappels_de_titres_en_haut_de_page2 [2018/05/22 11:37] joseph.wright créée |
3_composition:texte:pages:entetes:raccourcir_les_rappels_de_titres_en_haut_de_page2 [2018/12/03 23:49] jejust |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | # My section title is too wide for the page header | + | ====== |
By default, LaTeX sectioning commands make the chapter or section | By default, LaTeX sectioning commands make the chapter or section | ||
Ligne 6: | Ligne 7: | ||
be too big to fit: the LaTeX sectioning commands therefore take an | be too big to fit: the LaTeX sectioning commands therefore take an | ||
optional argument: | optional argument: | ||
- | ```latex | + | |
+ | < | ||
\section[short title]{full title} | \section[short title]{full title} | ||
- | ``` | + | </ |
- | If the & | + | If the <//short title//> |
contents and for the page heading. | contents and for the page heading. | ||
complain that their title is too big for the running head is to | complain that their title is too big for the running head is to | ||
Ligne 22: | Ligne 24: | ||
One of the problems is the tendency of page headings to be set in | One of the problems is the tendency of page headings to be set in | ||
capitals (which take up more space); so why not set headings as written | capitals (which take up more space); so why not set headings as written | ||
- | for '' | + | for "ordinary" |
- | LaTeX, but the [`fancyhdr`](http:// | + | LaTeX, but the [[ctanpkg> |
- | `\nouppercase` for use in its header (and footer) lines to suppress | + | '' |
- | LaTeX' | + | LaTeX' |
bundle don't uppercase in the first place. | bundle don't uppercase in the first place. | ||
- | In fact, the sectioning commands use 'mark' | + | In fact, the sectioning commands use "mark" |
- | information to the page headers. | + | information to the page headers. |
- | `\chaptermark`, `\section` uses `\sectionmark`, and so on. With | + | '' |
this knowledge, one can achieve a three-layer structure for chapters: | this knowledge, one can achieve a three-layer structure for chapters: | ||
- | ```latex | + | |
+ | < | ||
\chapter[middling version]{verbose version} | \chapter[middling version]{verbose version} | ||
\chaptermark{terse version} | \chaptermark{terse version} | ||
- | ``` | + | </ |
which should supply the needs of every taste. | which should supply the needs of every taste. | ||
Chapters, however, have it easy: hardly any book design puts a page | Chapters, however, have it easy: hardly any book design puts a page | ||
header on a chapter start page. In the case of sections, one has | header on a chapter start page. In the case of sections, one has | ||
- | typically to take account of the nature of the `\*mark` commands: | + | typically to take account of the nature of the '' |
the thing that goes in the heading is the first mark on the page (or, | 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). | failing any mark, the last mark on any previous page). | ||
the recipe for sections is more tiresome: | the recipe for sections is more tiresome: | ||
- | ```latex | + | |
+ | |||
+ | < | ||
\section[middling version]{verbose version% | \section[middling version]{verbose version% | ||
\sectionmark{terse version}} | \sectionmark{terse version}} | ||
\sectionmark{terse version} | \sectionmark{terse version} | ||
- | ``` | + | </ |
- | (the first `\sectionmark` deals with the header of the page the | + | |
- | `\section` command falls on, and the second deal with subsequent | + | (the first '' |
- | pages; note that here, you need the optional argument to `\section`, | + | '' |
- | even if '' | + | pages; note that here, you need the optional argument to '' |
- | '' | + | even if "// |
+ | "// | ||
A similar arrangement is necessary even for chapters if the class | A similar arrangement is necessary even for chapters if the class | ||
Ligne 59: | Ligne 65: | ||
opening page. | opening page. | ||
- | Note that the [`titlesec`](http:// | + | Note that the [[ctanpkg> |
a completely different fashion; for example, you can use the optional | a completely different fashion; for example, you can use the optional | ||
argument of sectioning commands for page headers, only, by loading the | argument of sectioning commands for page headers, only, by loading the | ||
package as: | package as: | ||
- | ```latex | + | |
+ | < | ||
\usepackage[toctitles]{titlesec} | \usepackage[toctitles]{titlesec} | ||
- | ``` | + | </ |
The package documentation offers other useful techniques in this area. | The package documentation offers other useful techniques in this area. | ||
- | The [`memoir`](http:// | + | The [[ctanpkg> |
extra optional argument for chapter and sectioning commands, for | extra optional argument for chapter and sectioning commands, for | ||
example: | example: | ||
- | ```latex | + | |
+ | < | ||
\section[middling version][terse version]{verbose version} | \section[middling version][terse version]{verbose version} | ||
- | ``` | + | </ |
- | As a result, it is always possible for users of [`memoir`](http:// | + | As a result, it is always possible for users of [[ctanpkg> |
tailor the header text to fit, with very little trouble. | tailor the header text to fit, with very little trouble. | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||