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:illustrations:repeter_une_image_dans_un_document [2018/05/25 19:34] – joseph.wright | 3_composition:illustrations:repeter_une_image_dans_un_document [2022/11/30 16:52] (Version actuelle) – Usage de ⟨...⟩ dbitouze | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== Comment insérer plusieurs fois une image dans un document? ====== |
- | category: graphics | + | |
- | permalink: / | + | |
- | date: 2014-06-10 | + | |
- | --- | + | |
- | # Repeated graphics in a document | + | Un logo ou un filigrane affiché sur chaque page, ou toute autre image répétée |
+ | de nombreuses fois dans votre document, peut rendre le fichier final du document | ||
+ | incroyablement volumineux. Le problème est que les mécanismes par défaut d' | ||
+ | des graphismes ajoutent l' | ||
+ | et donc, après compilation, | ||
- | A logo or '' | + | Les énormes fichiers PostScript sont un problème; devoir expliquer que le fichier est énorme |
- | your document, has the potential to make the processed version of the | + | à cause des logos en bas de page est un problème encore plus embarrassant... |
- | document unmanageably large. | + | |
- | mechanisms of graphics usage add the image at every point it's to be | + | |
- | used, and when processed, the image appears in the output file at each | + | |
- | such point. | + | |
- | Huge PostScript | + | < |
- | is huge, is more embarrassing still. | + | Si votre PostScript |
+ | (comme '' | ||
+ | les objets graphiques si besoin. | ||
- | The [`epslatex` graphics tutorial](/ | + | \\ |
- | describes a technique for avoiding the problem: basically, one | + | pdfTeX fait le même travail lors de la compilation, en convertissant automatiquement les utilisations multiples d' |
- | converts the image that's to be repeated into a PostScript subroutine, and | + | en des références à des objets graphiques. |
- | load that as a `dvips` prologue file. In place of the image, | + | </ |
- | you load a file (with the same bounding box as the image) containing | + | |
- | no more than an invocation of the subroutine defined in the prologue. | + | |
- | The `epslatex` technique | + | Le tutoriel [[texdoc> |
- | still is the neat scheme of converting the figure to a one-character | + | (traduit en français depuis [[texdoc> |
- | Adobe Type& | + | une technique |
- | experts'' | + | qui doit être répétée en une sous-routine PostScript, et on la charge sous la forme |
- | potential for the same sort of space saving as the `epslatex` | + | d'un fichier prologue pour '' |
- | technique, with greater flexibility in actual use. | + | (avec la même //bounding box// que l' |
+ | qu'une invocation de la sous-routine définie dans le prologue. | ||
- | More practical is Hendri Adriaens' | + | Cette technique |
- | this _in place_ of [`graphicx`](https:// | + | Plus délicate encore est l' |
- | ```latex | + | contenant un unique caractère. Cette technique est réservée aux vrais gourous, mais elle permet de gagner |
- | \usepackage[< | + | autant d'espace que la technique |
- | ``` | + | |
- | you will write: | + | |
- | ```latex | + | |
- | \usepackage[< | + | |
- | ``` | + | |
- | and at the start of your document, you write: | + | |
- | ```latex | + | |
- | \loadgraphics[< | + | |
- | ``` | + | |
- | and each of the graphics in the list is converted to an '' | + | |
- | use within the resulting PostScript output. | + | |
- | automated version of the `epslatex` technique described above.) | + | |
- | Having loaded the package as above, whenever you use | + | Pour le commun des mortels, il y a l' |
- | `\includegraphics`, the command checks if the file you've asked for | + | il suffit de la charger //à la place// de [[ctanpkg> |
- | is one of the graphics in `\loadgraphics` list. If so, the | + | <code latex> |
- | operation is converted into a call to the '' | + | \usepackage[⟨options⟩]{graphicx} |
- | copy of the file; the resulting PostScript can of course be _much_ smaller. | + | </ |
- | Note that the package requires a recent `dvips`, version | + | vous écrirez: |
- | 5.95b (this version isn' | + | <code latex> |
+ | \usepackage[⟨options⟩]{graphicx-psmin} | ||
+ | </ | ||
- | If your PostScript is destined for conversion to PDF, either by a | + | puis, au début de votre document, vous chargerez les images à répéter: |
- | [`ghostscript`](https:// | + | <code latex> |
- | mechanism such as `ps2pdf` or by | + | \loadgraphics[⟨bb⟩]{⟨liste des images⟩} |
- | (for example) `Acrobat` `Distiller`, | + | </code> |
- | so pressing, since the distillation mechanism will amalgamate graphics | + | |
- | objects whether or not the PostScript has them amalgamated. | + | |
- | the same job with graphics, automatically converting multiple uses | + | |
- | into references to graphics objects. | + | |
+ | Chacune des images de la liste sera convertie en un « objet » à utiliser | ||
+ | dans la sortie PostScript (c' | ||
+ | de la technique '' | ||
+ | |||
+ | Après avoir chargé l' | ||
+ | que vous appellerez '' | ||
+ | si le fichier que vous avez demandé est l'un de ceux de la liste '' | ||
+ | Si c'est le cas, l' | ||
+ | que résulter en une nouvelle copie du fichier; le PostScript final sera bien sûr | ||
+ | beaucoup plus petit. | ||
+ | |||
+ | La documentation de [[ctanpkg> | ||
+ | une version de '' | ||
+ | un problème, cette version ayant été publiée en 2010. | ||
+ | |||
+ | ----- | ||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||