# [texhax] Problem with graphics package

Jeff Barnett jbbrus at comcast.net
Tue Aug 22 01:51:54 CEST 2017

Michael Barr wrote on 8/21/2017 5:30 PM:
> 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...
>
> ? 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?
Were you using LaTeX or PDFLaTeX? I believe the former wants an EPS file
while the latter handles PDF and more. Check the documentation of
"graphics" for details.
--
Jeff Barnett