3

I am not sure it is exactly the best place to ask this question but maybe my problem admits a solution with tex.

I have an EPS file but I would like to display only a part of this EPS. Changing the bounding box is not enough as the "hidden" part of the EPS will still get displayed anyway. Is there a way to tell Latex that I just want to display things inside the bounding box ? Or any other solution to my problem ?

(PS: I don't want to convert my EPS to something else in the process as it reduces the quality)

Thanks a lot

1 Answers1

6

The best way to crop figures in LaTeX is to use the trim argument with \includegraphics:

\begin{figure}
  \centering
  \includegraphics[width=.5\textwidth, clip=true, trim = l b r t]{mywonderfulfigure}
  \caption{My wonderful figure}
  \label{img:wf}
\end{figure}

with l b r t being how much you want to crop in the left, bottom, right and top direction. The default units are big points (bp). However, any unit available in LaTeX can be used, for example in mm:

\begin{figure}
  \centering
  \includegraphics[width=.5\textwidth, clip=true, trim = 10mm 20mm 30mm 40mm]{mywonderfulfigure}
  \caption{My wonderful figure}
  \label{img:wf}
\end{figure}
MBR
  • 1,347