# [texhax] Problem with graphics package

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Aug 22 10:03:11 CEST 2017

On 22/08/2017 00:30, Michael Barr wrote:
> 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?
>
> Michael

Could you add \listfiles to you input and report the resulting File List
from the .log? I suspect a version mismatch between graphics and the
driver file.

Joseph
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8824372887611389, "perplexity": 13807.092705962526}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-09/segments/1518891813883.34/warc/CC-MAIN-20180222022059-20180222042059-00673.warc.gz"}