How can I rotate both a picture and its title in TeX?

Parameter in \includegraphics allows to rotate only a picture.


5 Answers 5


This can be done using the adjustbox package. The solution is similar to the one of Werner but saves you some manual work with saveboxes. Note that adjustbox v1.0 also includes a figure key which allows to add the figure environment automatically as well.


      Here is a caption of the figure which is so long that 
      it has to be wrapped over multiple lines, but should 
      not exceed the width (height after the rotation) of the image.



  • 2
    Is it possible to rotate by 90 or 270 deg depending on whether the page is even or odd?
    – D.Roepo
    Commented Oct 12, 2013 at 14:10
  • Worth noticing is that it is often recommended to always rotate all pictures in the same direction so that the reader only have to read the book in two direction and not in three, i.e. always have to turn the whole book in the same direction. I am pretty sure Bringhurst recommends this for example.
    – jonalv
    Commented Jan 10, 2014 at 15:06
  • @jonalv: Yes, I also know it to rotate them so that the lower side is on the right. Commented Jan 13, 2014 at 20:42
  • Can you suggest where to out \label? I tried all possibilities but hopeless.
    – CKM
    Commented Jul 18, 2016 at 10:08
  • @chandresh: Try it inside \caption at the very end just before the }. Commented Jul 19, 2016 at 18:55

The rotating package and sidewaysfigure environment can rotate the figure and caption as you ask. The figure will be placed on a separate page.

The method is described here.

A minimum working example is





  • 1
    \usepackage{subfigure} package, caption title and \documentclass{article} are missing in code. one might use \usepackage{mwe} to use example-image-a instead of file Commented Oct 31, 2013 at 17:16
  • By the way, subfigure is deprecated, see e.g. description at ctan.org/pkg/subfigure. I don't really see why you use a subfigure at all, it's not necessary. Commented Oct 31, 2013 at 20:48
  • @TorbjørnT. You're right. I've updated it. Thanks.
    – Chogg
    Commented Nov 1, 2013 at 12:13
  • 1
    +1 I think this is the simplest solution. You can also rotate a table like this using sidewaystable.
    – LondonRob
    Commented Aug 28, 2014 at 15:41
  • 1
    Is it possible that it won't be placed on a new page? I want it directly below a \chapter{}.
    – marcel
    Commented Sep 16, 2019 at 9:58

Here is an elementary way of accomplishing a rotation. It requires boxing the figure contents (via a minipage) before rotating it.

enter image description here

\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
  \savebox{\myimage}{\rule{100pt}{150pt}}% Image to be included
  \rotatebox{90}{% Rotate 90 CCW
      \caption{Here is a caption of the figure.}

The image is saved in a box \myimage in order to obtain its width (\wd\myimage). This is then used to set the width of the minipage. I used a dummy 100pt x 150pt black rectangle.

lipsum was used to generate dummy text, Lorem Ipsum style.


run texdoc hvfloat for the documentation of the different keywords


{Caption vertically centered right beside the float with a caption
width of figure width and 
\texttt{floatcapsep=5pt} (the default)}{fig:label}


enter image description here

  • with this method, the figure doesn't apprear in the list of figures
    – Sadegh
    Commented Jan 29, 2017 at 15:17
  • 1
    I see. Will upload an updated version to CTAN.
    – user2478
    Commented Jan 29, 2017 at 17:52
  • it's on CTAN: ctan.org/tex-archive/macros/latex/contrib/hvfloat/latex
    – user2478
    Commented Jan 30, 2017 at 7:37

Simply put angle=X in the \includegraphics command. For example

    \includegraphics[width=1\textwidth, angle=90]{fig.eps}
    \caption{The caption}
  • 13
    This is not a good answer because it rotates only the figure and NOT the caption. The question specifically asked for a solution to rotating BOTH figure and caption and notes that your solution rotates only the image. "Parameter in \includegraphics allows to rotate only a picture."
    – kabZX
    Commented May 8, 2016 at 8:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .