[texhax] Problem with graphics package

Ulrike Fischer news3 at nililand.de
Tue Aug 22 10:06:52 CEST 2017

Am Mon, 21 Aug 2017 19:30:07 -0400 (EDT) schrieb Michael Barr:

> I have been trying to figure out how to use the graphics package to clip an image.  The following test file:
> \documentclass{article}
> \usepackage{graphics}
> \begin{document}
> \[
>  \includegraphics*[1in,3in][6in,1in]{adj1.pdf}
> \]
> \end{document}
> led to the following error message:
> ! Undefined control sequence.
> <argument> ... at base \Gin at ext  image\GPT at AttrShort
>                                                   \ifx \GPT at print \ltx at empty...
> l.7  \includegraphics*[1in,3in][6in,1in]{adj1.pdf}
> ? x
> No pages of output.
> Since I cannot put in attachments just substitute any convenient graphic.  Incidentally I get the same error whether or not I use the * version.
> Any thoughts?

I get the error with texlive 2015 but not with texlive 2017. 

But while I get no error with texlive 2017, I don't see an image as
soon as one optional argument is use here. Something looks wrong
here, but as I haven't used the graphics syntax for ages I'm not

I would suggest as in the other posts to use graphicx and its keyval

Ulrike Fischer 

More information about the texhax mailing list