[OS X TeX] RE: how to crop a pdf graphic file

Denis Chabot chabotd at globetrotter.net
Tue Jul 1 12:04:41 EDT 2008


Hi,

I found an answer on <http://www.andy-roberts.net/misc/latex/latextutorial5.html 
 >, one must add the option clip=TRUE, even though the graphicx  
documentation gives an example without clip=TRUE. I am pretty sure it  
worked for me without this option in 2006, but I would not swear to  
it. What counts is that I know how to do it now!

Denis


> Hi,
>
> I thought in the past I had succeeded in doing the equivalent of  
> hiding a variable proportion of each edge of a figure by using the  
> option [trim= l b r t] in the \includegraphics command. A bit like  
> using crop on an image in Word. It is easier than reopening the  
> figure in a graphics program to crop it there (although, I suppose,  
> it makes the final pdf document smaller when you do so).
>
> Either I was mistaken then or the behavior has changed since: now  
> the trim command seems to act on the distance between the figure  
> and, say, the text that comes after. In fact, with a large value for  
> "b", my figure remains the same size as before and no part is  
> hidden, but the following paragraph overprints on top the figure.
>
> Is there a way to "crop" the figure instead? Say a figure that would  
> be 10 cm wide by 10 cm high, but I want to see only the top 5 cm (10  
> x 5)?
>
> Thanks in advance,
>
> Denis



More information about the MacOSX-TeX mailing list