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:pages:modifier_les_marges_en_cours_de_document [2018/12/03 23:48] – jejust | 3_composition:texte:pages:modifier_les_marges_en_cours_de_document [2022/10/04 13:11] (Version actuelle) – Italique inutile supprimé dbitouze | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | L'une des surprises caractéristiques de l' | ||
+ | vous ne pouvez pas changer la largeur ou la longueur de la zone du texte dans le document, | ||
+ | même en modifiant directement les paramètres de taille du texte. | ||
+ | < | ||
+ | et < | ||
+ | de la construction d'une nouvelle page. | ||
+ | La règle est donc que les paramètres ne doivent être modifiés | ||
+ | que dans le préambule du document, c' | ||
+ | avant toute composition. | ||
+ | Voici comment contourner cette règle. | ||
- | One of the surprises characteristic of TeX use is that you cannot | + | ===== Modification de la largeur de la page ===== |
- | change the width or height of the text within the document, simply by | + | |
- | modifying the text size parameters; TeX can't change the text width | + | |
- | on the fly, and LaTeX only ever looks at text height when starting | + | |
- | a new page. | + | |
- | So the simple rule is that the parameters should only be | + | ==== Avec des commandes de base ==== |
- | changed in the preamble of the document, i.e., before the | + | |
- | '' | + | |
- | happened. | + | |
- | + | ||
- | To adjust text width within a document we define an environment: | + | |
+ | Pour ajuster la largeur du texte en cours de document, la méthode suivante passe par un environnement : | ||
<code latex> | <code latex> | ||
Ligne 29: | Ligne 31: | ||
</ | </ | ||
- | The environment takes two arguments, and will indent the left and | + | L' |
- | right margins, respectively, | + | |
- | values will cause the margins to be narrowed, so | + | |
- | '' | + | |
- | margins by 1 centimetre. | + | |
- | Given that TeX can't do this, how does it work? --- well, the | + | <code latex> |
- | environment (which is a close relation of the LaTeX | + | \begin{changemargin}{-1cm}{-1cm} |
- | '' | + | ... |
- | as far as TeX is concerned: it merely moves text around inside the | + | \end{changemargin} |
- | width that TeX believes in. | + | </code> |
- | The [[ctanpkg> | + | Cette solution marche car l'environnement |
- | the above; it includes provision for changing the shifts applied to | + | |
- | your text according to whether you're on an odd (//recto//) or an | + | |
- | even (//verso//) page of a two-sided document. | + | |
- | [[ctanpkg>Changepage|Changepage]]'s structure matches that of the [[ctanpkg>memoir|memoir]] | + | |
- | class. | + | |
- | The (earlier) package [[ctanpkg> | + | ==== Avec l'extension “changepage” ==== |
- | but it uses rather different syntax. | + | |
- | matches that of the [[ctanpkg> | + | |
- | any new work. | + | |
- | Changing the vertical dimensions of a page is more clumsy still: the | + | L' |
- | LaTeX command | + | |
- | page by the size of its argument. | + | ==== Avec l' |
+ | |||
+ | :!: L’extension [[ctanpkg> | ||
+ | |||
+ | L' | ||
+ | |||
+ | ===== Modification de la longueur de la page ===== | ||
+ | |||
+ | ==== Avec des commandes de base ==== | ||
+ | |||
+ | Changer les dimensions verticales d'une page est assez simple : la commande < | ||
<code latex> | <code latex> | ||
\enlargethispage{\baselineskip} | \enlargethispage{\baselineskip} | ||
</ | </ | ||
- | to make the page one line longer, or | + | |
+ | Et voici l' | ||
<code latex> | <code latex> | ||
\enlargethispage{-\baselineskip} | \enlargethispage{-\baselineskip} | ||
</ | </ | ||
- | to make the page one line shorter. | ||
- | simplified by the [[ctanpkg> | ||
- | command takes as argument the //number// of lines to add to the | ||
- | page (rather than a length): the package documentation also provides a | ||
- | useful analysis of when the command may (or may not) be expected to | ||
- | work. | ||
+ | ==== Avec l' | ||
- | ----- | + | Le processus est (dans une certaine mesure) simplifié par l' |
+ | ----- | ||
//Source:// [[faquk> | //Source:// [[faquk> | ||
- | {{htmlmetatags> | + | {{htmlmetatags> |
- | metatag-og: | + | metatag-og: |
metatag-og: | metatag-og: | ||
}} | }} | ||