[pdftex] Bug in `pdftex.def' (page key)?
Andreas Matthias
amat at kabsi.at
Wed Feb 12 13:29:15 CET 2003
Rolf Niepraschk wrote:
> The \includegraphics command in the following LaTeX example produces the
> error
> ---------------------------
> ! Package keyval Error: page undefined.
> ---------------------------
>
> This should not happen...
>
> %---------------------------
> \documentclass{article}
\usepackage{keyval}
> \usepackage{graphics}
>
> \AtBeginDocument{\usepackage{graphicx}}
>
> \begin{document}
>
> \includegraphics[page=1]{foo.pdf}
>
> \end{document}
> %---------------------------
graphics (s!) loads pdftex.def, which checks if keyval.sty
is loaded. If not, pdftex.def can not implement the page
option, because it needs keyval. Graphicx (x!), which is
loaded later does not reload pdftex.def -- therefor no page option.
If you load \usepackage{keyval} before \usepackage{graphics}
then pdftex.def will implement the page option.
Ciao
Andreas
More information about the pdftex
mailing list