From: Matthias Klose Date: Sun, 4 Sep 2005 16:20:30 +0000 (+0000) Subject: use a test for PDF support that is more portable across teTeX major versions X-Git-Tag: v2.4.2c1~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=566da8255be183937dee7a7986ab183284cdfcf9;p=thirdparty%2FPython%2Fcpython.git use a test for PDF support that is more portable across teTeX major versions (closes SF bug #1238210) --- diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls index 936e1faf3aa7..c9beb4a5ca41 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 e28d87f85039..ddaa404f15b8 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}