[tex-live] error in supp-pdf.mkii again?

Heiko Oberdiek heiko.oberdiek at googlemail.com
Thu Mar 11 11:02:08 CET 2010

On Thu, Mar 11, 2010 at 01:18:06PM +0900, Norbert Preining wrote:

> there is again something fishy going on with supp-pdf.mkii: The following
> simple test document fails:
> \documentclass{article}
> \usepackage{graphicx}
> \newcommand{\undefined}{\textbf{undefined}}
> \begin{document}
> This is an \undefined\ command.
> \end{document}
> with
> (/usr/share/texmf/tex/context/base/supp-pdf.mkii
> ! Undefined control sequence.
> l.17   \writestatus
>                    {loading}{ConTeXt Support Macros / PDF}
> I assume it comes from supp-pdf.mkii testing
> 	\ifx\writestatus\undefined
> But \undefined is a completely valid TeX command. Mind that I am
> even using \newcommand here. 

\newcommand doesn't prevent you from shooting yourself in the foot.
Defining \undefined is a very bad idea. Altough having \@undefined
in LaTeX, many packages are using \undefined:
  find texmf-dist/tex/latex -exec grep -l '\\undefined' {} \;|wc
found 530 files.

> Any suggestion to fix this?

I have catched this case in pdftex.def 2010/03/11 v0.04o
and hyperref 6.80n/backref 1.35 and I left you the other 527 cases,
preventing you from getting bored. ;-)

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

More information about the tex-live mailing list