TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why do we have to follow the trim option with clip in \includegraphics? Is there a situation were trim is used without clip or vice-versa?

share|improve this question
up vote 11 down vote accepted

The original idea was that trim was just a way of adjusting the bounding box by specifying offsets from the edges rather than a new bounding box with bb, so like the bb key it adjusts the size latex leaves but if the image is really bigger than that it would over/under print the surroundings. clip clips. It's a long time ago and i can't remember all the discussions but probably the fact that clipping isn't the default is related to the fact that not all the important dvi drivers at the time could clip at all.

share|improve this answer

I use quite often trim without clip to move graphics a bit around or change the spacing before and after a graphic or get a graphic in the background:

\documentclass[10pt]{article}
\usepackage{graphicx,lipsum}
\begin{document}
\includegraphics[trim=5cm 4.5cm 0cm 0cm,width=3cm]{example-image}\lipsum*[1]
\end{document}

enter image description here

share|improve this answer
    
Interesting! (Roughly) similar to Editing wrapping points in Word. – jak123 Jan 28 at 9:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.