March 19, 2010

Latex: Rotate Inserted Images

Жhen you insert an image into your latex document you can rotate, and resize it it at the same time. It is useful, especially if you are importing a full page postscript graph that has a landscape layout:

\begin{figure}
\centering
\includegraphics[width=.5\textwidth, angle=270]{graph.ps}
\label{fig:sample-graph}
\caption{Sample Graph}
\end{figure}

In the example above I’m rotating the image by 270 degree, and set the image width to be half the width of the text on the page.
©