summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/howto.cls
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-07-29 17:17:19 (GMT)
committerFred Drake <fdrake@acm.org>2005-07-29 17:17:19 (GMT)
commitfe256431922c44375fa1e6c21bca69f5cb65481d (patch)
tree23f30d1993354a014894827e267ec3f8fc8a4794 /Doc/texinputs/howto.cls
parent50747fc1b9985e857ef6138bcb9b24257aefc949 (diff)
downloadcpython-fe256431922c44375fa1e6c21bca69f5cb65481d.zip
cpython-fe256431922c44375fa1e6c21bca69f5cb65481d.tar.gz
cpython-fe256431922c44375fa1e6c21bca69f5cb65481d.tar.bz2
use a test for PDF support that is more portable across teTeX major versions
(closes SF bug #1238210)
Diffstat (limited to 'Doc/texinputs/howto.cls')
-rw-r--r--Doc/texinputs/howto.cls6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls
index 936e1fa..c9beb4a 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