
図には、ページにぴったり収まるように垂直方向に伸びる大きなワークフローが含まれているため、図のキャプションのみを回転させようとしています。ただし、図の下にスペースが残っていないため、キャプションを 90 度回転して、図の左 (または右) に配置します。
SE で見つけた投稿のほとんどは、図の回転 (例: sidewaysfigure の使用) に関するものでしたが、キャプションだけに関するものではありません。キャプションは比較的大きいため、capbeside を使用して右または左に配置するだけでなく、ここで回転する必要があることに注意してください。
以下は私が取得しようとしているものの例です (黒いボックスは含まれているグラフィックを表しています)。
私の問題が明確であることを願う
-ジョーンズ
答え1
このような:
\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{graphics}
\usepackage{array}
\begin{document}
\begin{figure}
\refstepcounter{figure}
\begin{tabular}{c c}
\includegraphics[valign=m]{example-image-a}
&
\rotatebox[origin=c]{90}{Figure~\thefigure: My rotated caption}
\end{tabular}
\end{figure}
\begin{figure}
\includegraphics{example-image-b}
\caption{Standard caption}
\end{figure}
\end{document}
答え2
私自身もこの問題に遭遇しましたが、別の解決策を見つけました。これは OP の理想的なオプションではないことは承知していますが、よりシンプルなようで、私の場合はうまくいきましたので、他の人にもうまくいくかもしれません。アイデアとしては、横長のページを作成し、その横長のページ内で画像だけを 90 度回転させて縦長の方向に戻すというものです。キャプションは横長のまま、横長のままになります。これを試してください:
\documentclass{book}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{lscape}
\usepackage{lipsum}
\begin{document}
\newgeometry{left=1.5cm, right=1cm, top=1.5cm, bottom=1.5cm} % Play around with margins, if necessary
\begin{landscape}
\begin{figure}[p]
\centerline{
\includegraphics[width=8cm, height=22cm, angle=-90]{example-image-c}}
\caption[My short caption]{\lipsum[2]}
\label{fig:mylabel}
\end{figure}
\end{landscape}
\restoregeometry
\end{document}
答え3
これを試してください:
\documentclass{book}
\usepackage{rotating}
\begin{document}
\begin{figure}
\fbox{\vbox to 15pc{\hbox to 10pc{Test}}}%%insert your figure here
\begin{sideways}
\begin{minipage}{10pc}
{\caption{caption test}}
\end{minipage}
\end{sideways}
\end{figure}
\end{document}