[texhax] Problem with graphics package

Alan Litchfield alan at alphabyte.co.nz
Tue Aug 22 01:58:51 CEST 2017


How about this?

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\includegraphics[trim={1in 3in 6in 1in},clip]{adj1}

\end{document}

Alan

On 22/08/17 11: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...
> 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?
> 
> Michael
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 

-- 
Dr Alan Litchfield
AlphaByte
PO Box 1941
Auckland, New Zealand 1140


More information about the texhax mailing list