]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
use a test for PDF support that is more portable across teTeX major versions
authorMatthias Klose <doko@ubuntu.com>
Sun, 4 Sep 2005 16:20:30 +0000 (16:20 +0000)
committerMatthias Klose <doko@ubuntu.com>
Sun, 4 Sep 2005 16:20:30 +0000 (16:20 +0000)
(closes SF bug #1238210)

Doc/texinputs/howto.cls
Doc/texinputs/manual.cls

index 936e1faf3aa7dcd76f8e2e3a1197a409b812c84f..c9beb4a5ca419db71f1e97f74848c870233f47ae 100644 (file)
@@ -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
index e28d87f850390d5d057ade20151218315084d280..ddaa404f15b8ff9dc9bca3ff29194aa0b4c51126 100644 (file)
@@ -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}