
答案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}