Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine 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/06/03 14:19] samcarter |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | # My section title is too wide for the page header | + | --- |
+ | title: | ||
+ | category: formatting | ||
+ | tags: structure | ||
+ | permalink: / | ||
+ | date: 2014-06-10 | ||
+ | --- | ||
By default, LaTeX sectioning commands make the chapter or section | By default, LaTeX sectioning commands make the chapter or section | ||
Ligne 22: | Ligne 28: | ||
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 [`fancyhdr`](https:// |
`\nouppercase` for use in its header (and footer) lines to suppress | `\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`, | `\chaptermark`, | ||
Ligne 44: | Ligne 50: | ||
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: | ||
+ | <!-- {% raw %} --> | ||
```latex | ```latex | ||
\section[middling version]{verbose version% | \section[middling version]{verbose version% | ||
Ligne 49: | Ligne 56: | ||
\sectionmark{terse version} | \sectionmark{terse version} | ||
``` | ``` | ||
+ | <!-- {% endraw %} --> | ||
(the first `\sectionmark` deals with the header of the page the | (the first `\sectionmark` deals with the header of the page the | ||
`\section` command falls on, and the second deal with subsequent | `\section` command falls on, and the second deal with subsequent | ||
pages; note that here, you need the optional argument to `\section`, | pages; note that here, you need the optional argument to `\section`, | ||
- | even if '' | + | even if "_middling version_" |
- | '' | + | "_long version"_.) |
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 67: | ||
opening page. | opening page. | ||
- | Note that the [`titlesec`](http:// | + | Note that the [`titlesec`](https:// |
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 | ||
Ligne 68: | Ligne 76: | ||
The package documentation offers other useful techniques in this area. | The package documentation offers other useful techniques in this area. | ||
- | The [`memoir`](http:// | + | The [`memoir`](https:// |
extra optional argument for chapter and sectioning commands, for | extra optional argument for chapter and sectioning commands, for | ||
example: | example: | ||
Ligne 74: | Ligne 82: | ||
\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 [`memoir`](https:// |
tailor the header text to fit, with very little trouble. | tailor the header text to fit, with very little trouble. | ||