summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/python.sty
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-05-11 20:42:54 (GMT)
committerFred Drake <fdrake@acm.org>1998-05-11 20:42:54 (GMT)
commitba1700c7bb3ccde1b6e13cd449cb1619ead4fed3 (patch)
treee5763df675b88d8ea788cd56a515173526aaf810 /Doc/texinputs/python.sty
parentd5d473fd5c18174c084a758f8c44bf446d1570a9 (diff)
downloadcpython-ba1700c7bb3ccde1b6e13cd449cb1619ead4fed3.zip
cpython-ba1700c7bb3ccde1b6e13cd449cb1619ead4fed3.tar.gz
cpython-ba1700c7bb3ccde1b6e13cd449cb1619ead4fed3.tar.bz2
Set the right page size in the PDF output.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r--Doc/texinputs/python.sty12
1 files changed, 5 insertions, 7 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 0100df7..93e7a50 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -24,6 +24,8 @@
\let\py@LinkColor=\NavyBlue
\let\py@NormalColor=\Black
\pdfcompresslevel=9
+ \pdfpagewidth=\paperwidth % page width of PDF output
+ \pdfpageheight=\paperheight % page height of PDF output
%
% Pad the number with '0' to 3 digits wide so no page name is a prefix
% of any other.
@@ -45,10 +47,6 @@
\pdfendlink%
}{#3}%
}
- %
- % This is supposed to build the "outline" view of the document; it seems
- % quite fragile. The breakages are the same as in the ToC.
- %
\AtEndDocument{
\InputIfFileExists{\jobname.bkm}{\pdfcatalog{/PageMode /UseOutlines}}{}
}
@@ -62,9 +60,9 @@
\py@OldLabel{#1}%
\py@target{label-#1}%
}
- % This stuff adds a page# destination to every PDF page, where # has
- % the same formatting as the displayed page number. This doesn't really
- % help with the frontmatter, but does fine with the body.
+ % This stuff adds a page# destination to every PDF page, where # is three
+ % digits wide, padded with leading zeros. This doesn't really help with
+ % the frontmatter, but does fine with the body.
%
% This is *heavily* based on the hyperref package.
%