Debian Codegraph @

texmf-dist/tex/latex/pdflscape/pdflscape.sty

raw
1 %%
2 %% This is file `pdflscape.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% pdflscape.dtx (with options: `package-new')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: pdflscape
12 %% Version: 2025-06-23 v0.14
13 %%
14 %% Copyright (C)
15 %% 2001, 2004, 2006-2008 Heiko Oberdiek
16 %% 2016-2025 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/pdflscape/issues
33 %%
34 %% This work consists of the main source file pdflscape.dtx
35 %% and the derived files
36 %% pdflscape.sty, pdflscape-nometadata.sty, pdflscape.pdf,
37 %% pdflscape.ins, pdflscape.drv,
38 %%
39 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
40 \ProvidesExplPackage{pdflscape}{2025-06-23}{0.14}
41 {Display of landscape pages in PDF}%
42 \IfPDFManagementActiveF {\RequirePackageWithOptions{pdflscape-nometadata}}
43 \IfPDFManagementActiveF {\endinput}
44 \DeclareOption*{\PassOptionsToPackage\CurrentOption{graphics}}
45 \ProcessOptions
46 \RequirePackage{lscape}
47
48 \tl_new:N\g__pdflscape_saverotate_tl
49 \hook_gput_code:nnn {env/landscape/begin}{pdflscape}
50 {
51 \pdfmanagement_get:nnN {Page}{Rotate}\l_tmpa_tl
52 \tl_gset_eq:NN\g__pdflscape_saverotate_tl\l_tmpa_tl
53 \clearpage
54 \pdfmanagement_add:nnn{Page}{Rotate}{90}
55 }
56 \hook_gput_code:nnn {env/landscape/after}{pdflscape}
57 {
58 \quark_if_no_value:NTF\g__pdflscape_saverotate_tl
59 {\pdfmanagement_remove:nn{Page}{Rotate}}
60 {\pdfmanagement_add:nnx{Page}{Rotate}{\g__pdflscape_saverotate_tl}}
61 }
62 \endinput
63 %%
64 %% End of file `pdflscape.sty'.