This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: manual.cls contains an invalid pdf-inquiry
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, georg.brandl, m-schindler
Priority: normal Keywords:

Created on 2005-07-14 13:43 by m-schindler, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg25811 - (view) Author: Michael Schindler (m-schindler) Date: 2005-07-14 13:43
I tried to compile the documentation for Python 2.4.1
(download today)
but it fails with the message:

  pdfTeX error (ext1): \pdfinfo used while \pdfoutput
is not set.

This is caused by the \pdfinfo call in manual.cls on
line 72.
I am using teTeX 3.0 where the LaTeX format is based on
pdftex. Therefore, the inquiry for pdf, done in
manual.cls with

  \@ifundefined{pdfinfo}{}{...}
  
always returns true, for both pdf and dvi output.
A better choice woud be using \ifpdf defined in python.sty

Thanks, anyway for the great program!

  Michael Schindler
msg25812 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-14 16:57
Logged In: YES 
user_id=1188172

Seems to be also in howto.cls. Closed bug #1071094 as
duplicate of this.
msg25813 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-14 17:00
Logged In: YES 
user_id=1188172

This is the fix from the old bug.

--- manual.cls.orig     2005-05-30 10:02:28.000000000 +0200
+++ manual.cls  2005-05-30 11:16:58.000000000 +0200
@@ -6,9 +6,17 @@
 \ProvidesClass{manual}
              [1998/03/03 Document class (Python manual)]
 
+\RequirePackage{ifpdf}
+\newcommand*{\@ifpdftexisnotavailable}{%
+  \ifpdf
+    \expandafter\@secondoftwo
+  \else
+    \expandafter\@firstoftwo
+  \fi
+}
+
 \RequirePackage{pypaper}
 \RequirePackage{fancybox}
-
 % Change the options here to get a different set of basic
options, but only
 % if you have to.  Paper and font size should be adjusted
in pypaper.sty.
 %
@@ -64,7 +72,7 @@
     \let\footnotesize\small
     \let\footnoterule\relax
     \py@doHorizontalRule%
-    \@ifundefined{pdfinfo}{}{{
+    \@ifpdftexisnotavailable{}{{
       % 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.
msg25814 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2005-07-29 17:20
Logged In: YES 
user_id=3066

I've changed howto.cls and manual.cls to use the \ifpdf test
defined in python.sty; that avoids adding a dependency on
ifpdf.sty.

I think this is right for the teTeX 3.0 users, but I don't
have a teTeX 3.0 installation, so I'd appreciate it if
someone who does would test.  Please re-open (or comment) on
this issue if there's still a problem.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42189
2005-07-14 13:43:15m-schindlercreate