[pdftex] Bug in `pdftex.def' (page key)?
Rolf Niepraschk
Rolf.Niepraschk at ptb.de
Wed Feb 12 13:37:23 CET 2003
Ross Moore wrote:
>>
>> The \includegraphics command in the following LaTeX example produces the
>> error
>> ---------------------------
>> ! Package keyval Error: page undefined.
>> ---------------------------
>>
>> This should not happen...
>>
>> %---------------------------
>> \documentclass{article}
>>
>> \usepackage{graphics}
>>
> \AtBeginDocument{\usepackage{graphicx}}
> ^^^^^^^^^^^^^^^^^
> What are you trying to achieve by this ?
>
> Surely just using
> \usepackage{graphicx}
> is enough.
No. The code should work inside of a package. I will check if the user
has already loaded `graphicx'...
>
> Since one of the actions taken at \begin{document}
> time is to disable the \usepackage command,
This is true for "\begin{document}" but not for "\AtBeginDocument".
> I'd guess that the {graphicx} package is never
> loaded --- what does the .log file say ?
It is loaded!
>
> Certainly any commands that graphicx delays using
> \AtBeginDocument can never be executed.
Everything works fine _except_ the page key! Try it with "page=1"
replaced by "width=2cm"...
...Rolf
--
|| Rolf Niepraschk c/o Physikalisch-Technische Bundesanstalt ||
|| Abbestr. 2-12; D-10587 Berlin, Germany ||
|| Tel/Fax: ++49-30-3481-316/490, email: niepraschk at ptb.de ||
More information about the pdftex
mailing list