14

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?

14

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.

15

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

  • Interesting! (Roughly) similar to Editing wrapping points in Word. – jak123 Jan 28 '16 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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