|
4 | 4 |
|
5 | 5 | \NeedsTeXFormat{LaTeX2e}[1995/12/01] |
6 | 6 | \ProvidesPackage{python} |
7 | | - [1998/01/11 LaTeX package (Python manual markup)] |
| 7 | + [1998/01/11 LaTeX package (Python markup)] |
8 | 8 |
|
9 | 9 | % The "fncychap" package is used to get the nice chapter headers. The |
10 | 10 | % .sty file is distributed with Python, so you should not need to disable |
11 | 11 | % it. You'd also end up with a mixed page style; uglier than stock LaTeX! |
12 | 12 | % |
13 | 13 | \RequirePackage[Bjarne]{fncychap}\typeout{Using fancy chapter headings.} |
14 | 14 |
|
15 | | -% for PDF output, use maximal compression |
16 | | -\@ifundefined{pdfannotlink}{ |
| 15 | + |
| 16 | +% for PDF output, use maximal compression & a lot of other stuff |
| 17 | +% (test for PDF recommended by Tanmoy Bhattacharya <[email protected]>) |
| 18 | +% |
| 19 | +\ifx\pdfoutput\undefined\else\ifcase\pdfoutput |
17 | 20 | \let\LinkColor=\relax |
18 | 21 | \let\NormalColor=\relax |
19 | | -}{% |
| 22 | +\else |
20 | 23 | \input{pdfcolor} |
21 | 24 | \let\LinkColor=\NavyBlue |
22 | 25 | \let\NormalColor=\Black |
|
33 | 36 | \pdfendlink% |
34 | 37 | }{#3}% |
35 | 38 | } |
36 | | - \renewcommand{\thepage}{\roman{page}} |
37 | 39 | % |
38 | 40 | % This is supposed to build the "outline" view of the document; it seems |
39 | 41 | % quite fragile. The breakages are the same as in the ToC. |
40 | 42 | % |
41 | 43 | \AtEndDocument{ |
42 | | - \InputIfFileExists{\jobname.bkm}{\pdfcatalog pagemode{/UseOutlines}}{} |
| 44 | + \InputIfFileExists{\jobname.bkm}{\pdfcatalog{/PageMode /UseOutlines}}{} |
43 | 45 | } |
44 | 46 | \let\OldLabel=\label |
45 | 47 | \renewcommand{\label}[1]{% |
|
65 | 67 | \def\H@old@thehead{\hfil}\fi |
66 | 68 | \def\@thehead{\@foo\relax\H@old@thehead}% |
67 | 69 | } |
68 | | -} |
| 70 | +\fi\fi |
69 | 71 |
|
70 | 72 | % Increase printable page size (copied from fullpage.sty) |
71 | 73 | \topmargin 0pt |
|
293 | 295 | \@UseModuleIndextrue |
294 | 296 | } |
295 | 297 |
|
296 | | -\newcommand{\inputindex}[1]{ |
297 | | - \IfFileExists{#1}{\input{#1}}{\begin{theindex}\end{theindex}} |
298 | | -} |
299 | | - |
300 | 298 | % Add the defining entry for a module |
301 | 299 | \newcommand{\@modindex}[2]{% |
302 | 300 | \renewcommand{\@thismodule}{#1} |
|
0 commit comments