Latex: Rotate Inserted Images

When 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.

[tags]latex, includegraphics, rotating images, rotating, images, tex, postscript[/tags]

This entry was posted in programming and tagged , . Bookmark the permalink.



3 Responses to Latex: Rotate Inserted Images

  1. Johannes SWEDEN Mozilla Firefox Mac OS says:

    Great! I didn’t know about the “\textwidth” tag – I used to always use “scale=…”. This is much better though.

    Reply  |  Quote
  2. Thank you for that hint with the angle! I feared I’d have to rotate the whole page, this solution is much easier :-)

    Reply  |  Quote
  3. Paco SPAIN Mozilla Firefox Linux says:

    Nice, but what are you supossed to do if you want the caption also rotated and in the right side of the page?

    Reply  |  Quote

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>