Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
2_composition:texte:pages:changer_l_orientation_d_un_document3 [2021/01/30 12:35] yannick.tanguy Suppression de la page reportée sur la page française. |
— (Version actuelle) | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Typesetting things in landscape orientation ====== | ||
- | |||
- | |||
- | It's often necessary to typeset part of a document in landscape | ||
- | orientation; to achieve this, one needs not only to change the page | ||
- | dimensions, but also to instruct the output device to print the | ||
- | strange page differently. | ||
- | |||
- | There are two "ordinary" mechanisms for doing two slight variations | ||
- | of landscape typesetting: | ||
- | | ||
- | |||
- | * If you have a single floating object that is wider than it is deep, and will only fit on the page in landscape orientation, use the [[ctanpkg>rotating|rotating]] package; this defines ''sidewaysfigure'' and ''sidewaystable'' environments which create floats that occupy a whole page. | ||
- | |||
- | <note warning>Note that [[ctanpkg>rotating]] has problems in a document that also loads the [[ctanpkg>float]] package, which recommended in other answers in these FAQs, for example that on [[FAQ-floats|float placement]]. The [[ctanpkg>rotfloat]] package loads [[ctanpkg>rotating]] for you, and smooths the interaction with [[ctanpkg>float]]. | ||
- | </note> | ||
- | |||
- | * If you have a long sequence of things that need to be typeset in landscape (perhaps a code listing, a wide ''tabbing'' environment, or a huge table typeset using [[ctanpkg>longtable]] or [[ctanpkg>supertabular]]), use the [[ctanpkg>lscape]] package (or [[ctanpkg>pdflscape]] if you're generating PDF output, whether using pdfLaTeX or ''dvips'' and generating PDF from that). Both packages define an environment ''landscape'', which clears the current page and restarts typesetting in landscape orientation (and clears the page at the end of the environment before returning to portrait orientation). | ||
- | |||
- | No currently available package makes direct provision for typesetting | ||
- | in both portrait and landscape orientation on the same page (it's not | ||
- | the sort of thing that TeX is well set-up to do). If such | ||
- | behaviour was an absolute necessity, one might use the techniques | ||
- | described in [[FAQ-textflow|"flowing text around figures"]], and would | ||
- | rotate the landscape portion using the rotation facilities of the | ||
- | [[ctanpkg>graphicx]] package. (Returning from landscape to portrait | ||
- | orientation would be somewhat easier: the portrait part of the page | ||
- | would be a bottom float at the end of the landscape section, with its | ||
- | content rotated.) | ||
- | |||
- | To set an entire document in landscape orientation, one might use | ||
- | [[ctanpkg>lscape]] around the whole document. A better option is the | ||
- | ''landscape'' option of the [[ctanpkg>geometry]] package; if you | ||
- | also give it ''dvips'' or ''pdftex'' option, | ||
- | [[ctanpkg>geometry]] also emits the rotation instructions to cause the | ||
- | output to be properly oriented. The [[ctanpkg>memoir]] class has the same | ||
- | facilities, in this respect, as does [[ctanpkg>geometry]]. | ||
- | |||
- | A word of warning: most current TeX previewers do not honour | ||
- | rotation requests in DVI files. | ||
- | Your best bet is to convert your output to PostScript or to PDF, and | ||
- | to view these "final" forms with an appropriate viewer. | ||
- | |||
- | |||
- | ----- | ||
- | |||
- | //Source:// [[faquk>FAQ-landscape|Typesetting things in landscape orientation]] | ||
- | |||
- | {{htmlmetatags>metatag-keywords=(LaTeX,mise en page) | ||
- | metatag-og:title=(Typesetting things in landscape orientation) | ||
- | metatag-og:site_name=(FAQ LaTeX francophone) | ||
- | }} | ||