Debian Codegraph @

texmf-dist/tex/latex-dev/graphics/lscape.sty

raw
1 %%
2 %% This is file `lscape.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lscape.dtx (with options: `package')
8 %%
9 %% The source is maintained by the LaTeX Project team and bug
10 %% reports for it can be opened at https://latex-project.org/bugs/
11 %% (but please observe conditions on bug reports sent to that address!)
12 %%
13 %%
14 %% lscape.dtx Copyright (C) 1994 1999-2000 David Carlisle
15 %% Copyright (C) 2000-2026 LaTeX Project
16 %% The LaTeX Project and any individual authors listed elsewhere
17 %% in this file.
18 %%
19 %% This file is part of the Standard LaTeX `Graphics Bundle'.
20 %% It may be distributed under the terms of the LaTeX Project Public
21 %% License, as described in lppl.txt in the base LaTeX distribution.
22 %% Either version 1.3c or, at your option, any later version.
23 %%
24 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
25 \ProvidesPackage{lscape}
26 [2020/05/28 v3.02 Landscape Pages (DPC)]
27 \newif\ifGin@pdftex
28 \Gin@pdftexfalse
29 \DeclareOption{pdftex}{%
30 \PassOptionsToPackage\CurrentOption{graphics}
31 \Gin@pdftextrue
32 }
33 \DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}}
34 \ProcessOptions
35 \RequirePackage{graphics}
36 \def\LS@rot{%
37 \setbox\@outputbox\vbox{\hbox{\rotatebox{90}{\box\@outputbox}}}}
38 \def\landscape{%
39 \let\LS@makecol=\@makecol
40 \let\LS@makefcolumn=\@makefcolumn
41 \clearpage
42 \begingroup
43 \vsize=\textwidth
44 \hsize=\textheight
45 \linewidth=\hsize
46 \columnwidth=\hsize
47 \@colroom=\vsize
48 \textheight=\vsize
49 \@colht=\vsize
50 \def\@makecol{\LS@makecol\LS@rot}%
51 \def\@makefcolumn##1{\LS@makefcolumn{##1}\LS@rot}}
52 \def\endlandscape{%
53 \ifGin@pdftex
54 \pdfpageattr{/Rotate 90}
55 \fi
56 \clearpage
57 \endgroup
58 \global\@colht=\textheight
59 \global\vsize=\textheight
60 \global\@colroom=\textheight}
61 \endinput
62 %%
63 %% End of file `lscape.sty'.