Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0b2e45

Browse files
committed
Change uses of \pdfinfo and \pdfcatalog to use the new syntax from the
latest pdftex. (Which we have here at CNRI.) This makes the PDF targets work again.
1 parent f558e31 commit c0b2e45

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

Doc/texinputs/howto.cls

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@
4747
\@ifundefined{ChTitleVar}{}{
4848
\mghrulefill{\RW}}
4949
\@ifundefined{pdfinfo}{}{
50-
\pdfinfo
51-
author {\@author}
52-
title {\@title}
50+
\pdfinfo{
51+
/Author (\@author)
52+
/Title (\@title)
53+
}
5354
}
5455
\begin{flushright}
5556
{\rm\Huge\HeaderFamily \@title} \par

Doc/texinputs/manual.cls

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
\@ifundefined{ChTitleVar}{}{%
5151
\mghrulefill{\RW}}%
5252
\@ifundefined{pdfinfo}{}{
53-
\pdfinfo
54-
author {\@author}
55-
title {\@title}
53+
\pdfinfo{
54+
/Author (\@author)
55+
/Title (\@title)
56+
}
5657
}
5758
\begin{flushright}%
5859
{\rm\Huge\HeaderFamily \@title \par}%

Doc/texinputs/python.sty

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@
44

55
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
66
\ProvidesPackage{python}
7-
[1998/01/11 LaTeX package (Python manual markup)]
7+
[1998/01/11 LaTeX package (Python markup)]
88

99
% The "fncychap" package is used to get the nice chapter headers. The
1010
% .sty file is distributed with Python, so you should not need to disable
1111
% it. You'd also end up with a mixed page style; uglier than stock LaTeX!
1212
%
1313
\RequirePackage[Bjarne]{fncychap}\typeout{Using fancy chapter headings.}
1414

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
1720
\let\LinkColor=\relax
1821
\let\NormalColor=\relax
19-
}{%
22+
\else
2023
\input{pdfcolor}
2124
\let\LinkColor=\NavyBlue
2225
\let\NormalColor=\Black
@@ -33,13 +36,12 @@
3336
\pdfendlink%
3437
}{#3}%
3538
}
36-
\renewcommand{\thepage}{\roman{page}}
3739
%
3840
% This is supposed to build the "outline" view of the document; it seems
3941
% quite fragile. The breakages are the same as in the ToC.
4042
%
4143
\AtEndDocument{
42-
\InputIfFileExists{\jobname.bkm}{\pdfcatalog pagemode{/UseOutlines}}{}
44+
\InputIfFileExists{\jobname.bkm}{\pdfcatalog{/PageMode /UseOutlines}}{}
4345
}
4446
\let\OldLabel=\label
4547
\renewcommand{\label}[1]{%
@@ -65,7 +67,7 @@
6567
\def\H@old@thehead{\hfil}\fi
6668
\def\@thehead{\@foo\relax\H@old@thehead}%
6769
}
68-
}
70+
\fi\fi
6971

7072
% Increase printable page size (copied from fullpage.sty)
7173
\topmargin 0pt
@@ -293,10 +295,6 @@
293295
\@UseModuleIndextrue
294296
}
295297

296-
\newcommand{\inputindex}[1]{
297-
\IfFileExists{#1}{\input{#1}}{\begin{theindex}\end{theindex}}
298-
}
299-
300298
% Add the defining entry for a module
301299
\newcommand{\@modindex}[2]{%
302300
\renewcommand{\@thismodule}{#1}

0 commit comments

Comments
 (0)