How do you rotate a caption with the image in a custom float?
I've tried the savebox and rotcaption methods outlined in this topic. My image rotates 90 degrees but my caption stays untouched and remains underneath the picture when it should rotate along with the image. Here is the code.
\documentclass{report}
\usepackage{caption}
\usepackage{float}
\usepackage{graphicx}
\usepackage{rotate}
\floatstyle{plain}
\floatname{example}{Example}
\newfloat{example}{h}{lop}
\begin{document}
\newsavebox{\myimage}
\begin{example}
\centering
\savebox{\myimage}{\rule{100pt}{150pt}}%
\rotatebox{90}{%
\begin{minipage}{\wd\myimage}
\includegraphics{picture1.jpg}
\caption{Here is the caption for this picture}
\end{minipage}}
\end{example}
\end{document}
