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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

Code, edit and compile here:
\begin{sidewaysfigure}
\includegraphics{file}
\caption{My caption}
\end{sidewaysfigure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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