[latex] Crop, resize and rotate figures in LaTeX
First of all, make sure to include the graphicx package in the preamble of your LaTeX source file. The following command exemplifies how to crop, resize and rotate figures in LaTeX.
\begin{figure}[h]
\centering
\includegraphics[trim=1cm 2cm 3cm 4cm, clip=true, totalheight=0.5\textheight, angle=90]{figure}
\caption{The caption goes here}
\end{figure}Needless to say, the above goes in between begin{document} and end{document} statements.
Let’s explain the various parts in the argument of \includegraphics command:
- Cropping: “
trim=1cm 2cm 3cm 4cm” trims (crops) from left, bottom, right and top by 1, 2, 3 and 4cm respectively. It must be accompanied by “clip=true”. - Resizing: “
totalheight=0.5\textheight” will force the figure to occupy 50% of the page length-wise keeping the aspect ratio constant. - Rotating: “
angle=90” rotates the figure by 90 degrees.
Reference: For more options, refer to this.

[...] The options for includegraphics was explained before. [...]
[...] about includegraphics was posted awhile ago: here and [...]
[...] about includegraphics was posted awhile ago: here and [...]
[...] The command clip=true is necessary (without it the image somehow eats into the text). Original source: http://nixtricks.wordpress.com/2009/10/26/latex-crop-resize-and-rotate-figures-in-latex/ [...]