aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2005-09-04 16:20:30 +0000
committerMatthias Klose <doko@ubuntu.com>2005-09-04 16:20:30 +0000
commit566da8255be183937dee7a7986ab183284cdfcf9 (patch)
tree445969eb37b399120866ccb1524811cfe8270135
parentbug [ 1274069 ] bz2module.c compiler warning (diff)
downloadcpython-566da8255be183937dee7a7986ab183284cdfcf9.tar.gz
cpython-566da8255be183937dee7a7986ab183284cdfcf9.tar.bz2
cpython-566da8255be183937dee7a7986ab183284cdfcf9.zip
use a test for PDF support that is more portable across teTeX major versions
(closes SF bug #1238210)
-rw-r--r--Doc/texinputs/howto.cls6
-rw-r--r--Doc/texinputs/manual.cls6
2 files changed, 8 insertions, 4 deletions
diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls
index 936e1faf3aa..c9beb4a5ca4 100644
--- a/Doc/texinputs/howto.cls
+++ b/Doc/texinputs/howto.cls
@@ -50,7 +50,8 @@
%
\renewcommand{\maketitle}{
\py@doHorizontalRule
- \@ifundefined{pdfinfo}{}{{
+ \ifpdf
+ \begingroup
% This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for
% generating document info in the PDF file.
@@ -59,7 +60,8 @@
/Author (\@author)
/Title (\@title)
}
- }}
+ \endgroup
+ \fi
\begin{flushright}
{\rm\Huge\py@HeaderFamily \@title} \par
{\em\large\py@HeaderFamily \py@release\releaseinfo} \par
diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls
index e28d87f8503..ddaa404f15b 100644
--- a/Doc/texinputs/manual.cls
+++ b/Doc/texinputs/manual.cls
@@ -64,7 +64,8 @@
\let\footnotesize\small
\let\footnoterule\relax
\py@doHorizontalRule%
- \@ifundefined{pdfinfo}{}{{
+ \ifpdf
+ \begingroup
% This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for
% generating document info in the PDF file.
@@ -73,7 +74,8 @@
/Author (\@author)
/Title (\@title)
}
- }}
+ \endgroup
+ \fi
\begin{flushright}%
{\rm\Huge\py@HeaderFamily \@title \par}%
{\em\LARGE\py@HeaderFamily \py@release\releaseinfo \par}