Graphics, Figures & TablesHow to \includegraphics with 90 degrees rotation?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

How to \includegraphics with 90 degrees rotation?

Post by jiapei100 »

Hi, all:

How can I \includegraphics with 90 degree rotation?
For example, my figure is of size 640*480, which can't fit into a page when being inserted to the page normally (horizontally).
If I rotate it with 90 degrees, I may obtain a picture of size 480*640, together with a rotated caption.

Can anybody give me a hand?
Is there such a demo?

Thank you very much

Best Regards
JIA

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to \includegraphics with 90 degrees rotation?

Post by frabjous »

Just use the angle/origin options:

E.g., to rotate 90 degrees anti-clockwise, with the axis being the center of the file:

Code: Select all

 \includegraphics[angle=90,origin=c]{file}
See the graphics bundle documentation for more info.

Another option might be the sidewaysfigure or turn environment from the rotating package, especially if you want the caption rotated too.

Code: Select all

\begin{sidewaysfigure}
    \includegraphics{file}
\caption{My caption}
\end{sidewaysfigure}
User avatar
jiapei100
Posts: 28
Joined: Sat Jan 12, 2008 7:23 pm

Re: How to \includegraphics with 90 degrees rotation?

Post by jiapei100 »

Thank you so so so so so so so much !!!!!
Thanks

Cheers
JIA
Post Reply