[ python-Bugs-1238210 ] manual.cls contains an invalid pdf-inquiry

SourceForge.net noreply at sourceforge.net
Thu Jul 14 19:00:10 CEST 2005


Bugs item #1238210, was opened at 2005-07-14 15:43
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1238210&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Schindler (m-schindler)
Assigned to: Nobody/Anonymous (nobody)
Summary: manual.cls contains an invalid pdf-inquiry

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-07-14 19:00

Message:
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 at 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.

----------------------------------------------------------------------

Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-07-14 18:57

Message:
Logged In: YES 
user_id=1188172

Seems to be also in howto.cls. Closed bug #1071094 as
duplicate of this.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1238210&group_id=5470


More information about the Python-bugs-list mailing list