Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ba1700c7
Commit
ba1700c7
authored
May 11, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the right page size in the PDF output.
parent
d5d473fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Doc/texinputs/python.sty
Doc/texinputs/python.sty
+5
-7
No files found.
Doc/texinputs/python.sty
View file @
ba1700c7
...
...
@@ -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.
%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment