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:configurer_la_taille_du_papier [2018/05/24 16:59] – joseph.wright | 3_composition:texte:pages:configurer_la_taille_du_papier [2022/08/09 14:01] (Version actuelle) – \epsilon → ε dbitouze | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Comment modifier correctement le format de papier? ====== |
- | section: Adjusting the typesetting | + | |
- | subsection: Page layout | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # Getting the right paper geometry from (La)TeX | + | Si votre sortie papier n'a pas la bonne taille et que vous avez vérifié que ce n'est pas dû à des [[5_fichiers: |
- | If your output is the wrong size, and you've checked that it's not due | + | En pratique, < |
- | to the [ministrations of Adobe `Reader`](FAQ-acroantics.md), | + | |
- | the problem is probably that your (La)TeX system is producing output | + | |
- | that specifies the wrong paper size. Paper sizes can be a pain: | + | |
- | they're a forgotten backwater& | + | |
- | paper size as something the TeX engine needs to know about. As a | + | |
- | result, there is no DVI command to specify the paper on which | + | |
- | the document should be printed, which has led a dichotomy where macros | + | |
- | shape the text according to the needs of the author's chosen paper | + | |
- | size, and device drivers'' | + | |
- | ideas. | + | |
- | In practice, one usually finds that macro packages | + | Le format de papier par défaut pour les pilotes DVI peut être modifié par une commande de gestion de la distribution |
- | LaTeX) assume American | + | |
- | most distributions nowadays originate in Europe, the drivers usually | + | |
- | default to ISO '' | + | |
- | This is (of course) pretty unsatisfactory. Users may select | + | Un problème différent se pose pour les utilisateurs de pdfTeX. Le format PDF //dispose// du moyen d' |
- | different paper size for their document (current LaTeX offers a | + | |
- | range of sizes as options in the standard classes), pretty easily. | + | |
- | Nevertheless, the user also has to be sure that each time | + | |
- | `xdvi`, `dvips` (or whatever) runs, it uses the | + | |
- | paper size the document was designed for. | + | |
- | The default paper size for DVI drivers may be changed by a | + | Les pilotes |
- | distribution management command (`texconfig` for TeX& | + | |
- | the `Options` application for MiKTeX), but this still | + | |
- | doesn't provide for people using the '' | + | |
- | reason. | + | |
- | A different issue arises for users of pdfTeX& | + | ===== Avec les extensions geometry et zwpagelayout ===== |
- | PDF format _does_ have the means of expressing paper size | + | |
- | and pdfTeX has system variables `\pdfpagewidth` and | + | |
- | `\pdfpageheight`, | + | |
- | Unfortunately, | + | |
- | pdfLaTeX sets the correct values into those variables, to match the | + | |
- | paper size specified in a `\documentclass` option. | + | |
- | The DVI drivers `dvips`, `dvipdfm` and its | + | Les extensions |
- | extensions | + | |
- | `\special` commands for the document | + | |
- | so in those cases, as when pdfTeX is being used, the | + | |
- | paper size can be programmed by the document. | + | |
- | of course consult the manuals of the various programs to write the | + | |
- | necessary code. | + | |
- | The [`geometry`](https:// | + | ==== L'extension |
- | business includes defining | + | |
- | typeset page areas), also takes notice the size of the paper that the | + | |
- | document is going to be printed on, and can issue the commands | + | |
- | necessary to ensure the correct size of paper is used. If | + | |
- | [`geometry`](https:// | + | |
- | pdfLaTeX, it can set the necessary dimensions | + | |
- | If the document is being processed by LaTeX on a TeX or & | + | |
- | engine, there are package options which instruct [`geometry`](https:// | + | |
- | which `\special` commands to use. (Note that the options are | + | |
- | ignored if you are using pdfLaTeX.) | + | |
- | So, one resolution of the problem, when you are using LaTeX, is to add | + | Ainsi, une des solutions au problème, lorsque vous utilisez < |
- | ```latex | + | |
- | \usepackage[processor-option,...]{geometry} | + | |
- | ``` | + | |
- | Where `processor-option` tells the package what will produce | + | |
- | your (PostScript or PDF output& | + | |
- | `dvips` and `dvipdfm` (`dvipdfm` also | + | |
- | serves for the extension `dvipdfmx` and | + | |
- | `xdvipdfmx`). | + | |
- | If you're using pdfLaTeX or XeTeX, load with | + | < |
- | ```latex | + | \usepackage[option-processeur, |
- | \usepackage[program-option, | + | </ |
- | ``` | + | |
- | where `program-option` is `pdftex`, | + | |
- | `xetex`. | + | |
- | The alternative, | + | où '' |
- | option: | + | |
- | ```latex | + | |
- | \usepackage[driver=value, | + | |
- | ``` | + | |
- | (permissible & | + | |
- | and `dvips`; the default value is `unknown`). | + | |
- | Needless to say, both the '' | + | Si vous utilisez pdfLaTeX ou XeTeX, chargez |
- | [`memoir`](https:// | + | |
- | '' | + | |
- | The [`typearea`](https:// | + | <code latex> |
- | distribution' | + | \usepackage[option-programme,...]{geometry} |
- | with the `pagesize` option and it will ensure the correct | + | </ |
- | paper is selected, for PDF output from pdfLaTeX, and for | + | |
- | PostScript output from LaTeX via `dvips`. | + | |
- | [`Memoir`](https:// | + | où '' |
- | (`a4paper`, `letterpaper` and so on), but also | + | |
- | permits the user to choose an arbitrary paper size, by setting the | + | |
- | length registers `\stockheight` and `\stockwidth`. | + | |
- | `\fixdvipslayout` (for LaTeX processing), | + | |
- | (for pdfLaTeX processing) then instruct the processor to produce | + | |
- | output that specifies the necessary paper size. | + | |
+ | ==== L' | ||
+ | |||
+ | De son côté, [[ctanpkg> | ||
+ | |||
+ | <code latex> | ||
+ | \usepackage[driver=valeur, | ||
+ | </ | ||
+ | |||
+ | Les //valeurs// autorisées pour cette option sont '' | ||
+ | |||
+ | ===== Avec les classes KOMA-script et memoir ===== | ||
+ | |||
+ | Bien entendu, les deux « grandes » classes [[ctanpkg> | ||
+ | |||
+ | ==== La classe KOMA-script ==== | ||
+ | |||
+ | La classe [[ctanpkg> | ||
+ | |||
+ | ==== La classe memoir ==== | ||
+ | |||
+ | La classe [[ctanpkg> | ||
+ | |||
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||