(sorry, I hit a wrong key and sent this message while it was still a
fragment) 

Roland Stigge <[EMAIL PROTECTED]> wrote:

> Package: abntex
> Version: 0.8.2-2
> Severity: serious
>
> Hi,
>
> building the package abntex in a clean sid build environment
> (with pbuilder) on i386 results in:
[...]
> pdfTeX error (ext1): \pdfinfo used while \pdfoutput is not set.
> l.75 \pdfinfo

The reason is a buggy test whether pdf or dvi is produced - it was buggy
from the beginning, but is no longer tolerated in teTeX-3.0.  The
particular place where the package fails is this one:

\ifx\pdfoutput\undefined
\else
%from /usr/share/texmf/doc/pdftex/base/pdftexman.pdf
\pdfinfo{
  /Title        (Estilo bibtex compativel com a `norma' 6023 da ABNT: Questoes 
especificas da `norma' 10520
  /Author       (G. Weber - Grupo abnTeX)
  /Subject      (referencias bibliograficas)
  /Keywords     (ABNT, bibliografia, 6023/2000, 6023/2002, 10520/1988, 
10520/2001, 10520/2002)}
\fi

You should use instead:

\usepackage{ifpdf}
\ifpdf
  \pdfinfo{...}
\fi

But there are more incarnations of the same bug in the package, one in
each file that contains.  And even more than one, because the following
piece of code also looks buggy:

  \ifx\pdfoutput\undefined \let\pdfunknown\relax
   \let\htmlATnew=\newcommand
  \else
   \ifx\pdfoutput\relax \let\pdfunknown\relax
    \usepackage{hyperref}\let\htmlATnew=\renewcommand
   \else
    \usepackage{hyperref}\let\htmlATnew=\newcommand
   \fi
  \fi

since it will do the same whether \pdfoutput is 0 (false) or 1 (true).

When you fix this, or propose a fix to upstream, please do *not* simply
test whether pdfoutput is 0 or 1.  Instead, use ifpdf or the code
therein - otherwise adding a package that also checks for \pdfoutput
might cause problems.

Please note that this is not a Debian-specific problem; each system that
uses current teTeX (including Gerben Wierda's version for OS X) has it,
and at least TeX-Live has also already switched to using pdfetex for DVI
output, and MikTeX on Windows will probably follow.

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer


Reply via email to