Commit d2c448a1 authored by Fred Drake's avatar Fred Drake

use a test for PDF support that is more portable across teTeX major versions

(closes SF bug #1238210)
parent 083ac15f
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
% %
\renewcommand{\maketitle}{ \renewcommand{\maketitle}{
\py@doHorizontalRule \py@doHorizontalRule
\@ifundefined{pdfinfo}{}{{ \ifpdf
\begingroup
% This \def is required to deal with multi-line authors; it % This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for % changes \\ to ', ' (comma-space), making it pass muster for
% generating document info in the PDF file. % generating document info in the PDF file.
...@@ -59,7 +60,8 @@ ...@@ -59,7 +60,8 @@
/Author (\@author) /Author (\@author)
/Title (\@title) /Title (\@title)
} }
}} \endgroup
\fi
\begin{flushright} \begin{flushright}
{\rm\Huge\py@HeaderFamily \@title} \par {\rm\Huge\py@HeaderFamily \@title} \par
{\em\large\py@HeaderFamily \py@release\releaseinfo} \par {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
......
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
\let\footnotesize\small \let\footnotesize\small
\let\footnoterule\relax \let\footnoterule\relax
\py@doHorizontalRule% \py@doHorizontalRule%
\@ifundefined{pdfinfo}{}{{ \ifpdf
\begingroup
% This \def is required to deal with multi-line authors; it % This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for % changes \\ to ', ' (comma-space), making it pass muster for
% generating document info in the PDF file. % generating document info in the PDF file.
...@@ -73,7 +74,8 @@ ...@@ -73,7 +74,8 @@
/Author (\@author) /Author (\@author)
/Title (\@title) /Title (\@title)
} }
}} \endgroup
\fi
\begin{flushright}% \begin{flushright}%
{\rm\Huge\py@HeaderFamily \@title \par}% {\rm\Huge\py@HeaderFamily \@title \par}%
{\em\LARGE\py@HeaderFamily \py@release\releaseinfo \par} {\em\LARGE\py@HeaderFamily \py@release\releaseinfo \par}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment