我有代码:
\renewcommand{\thesubfigure}{\roman{subfigure}}
\begin{figure}[h!]
\begin{subfigure}{.32\textwidth}
\includegraphics[scale=.21]{figures/201.pdf}
\caption{}
\end{subfigure}
\begin{subfigure}{.33\textwidth}
\includegraphics[scale=.21]{figures/202.pdf}
\caption{}
\end{subfigure}
\end{figure}
\begin{figure}[h!]
\begin{subfigure}{.32\textwidth}
\includegraphics[scale=.21]{figures/204.pdf}
\caption{\roman{4}}
\end{subfigure}
\end{figure}
我想要罗马数字继续用于新的图形子图?可以吗?现在子图的标题是 I、II 和 I。我希望它们是 I、II、III。谢谢!
答案1
是的,这是可能的。在第二个数字\ContinuedFloat
后面插入(并更改为),即:\begin{figure}[h!]
\caption{\roman{4}}
\caption{}
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\renewcommand{\thesubfigure}{\roman{subfigure}}
\begin{document}
\begin{figure}[h!]
\begin{subfigure}{.32\textwidth}
\includegraphics[scale=.21]{figures/201.pdf}
\caption{}
\end{subfigure}
\hfill
\begin{subfigure}{.33\textwidth}
\includegraphics[scale=.21]{figures/202.pdf}
\caption{}
\end{subfigure}
\end{figure}
\begin{figure}[h!]
\ContinuedFloat % --- This line added
\begin{subfigure}{.32\textwidth}
\includegraphics[scale=.21]{figures/204.pdf}
\caption{}
\end{subfigure}
\end{figure}
\end{document}
另请参阅包装文档的第 3.3 节“连续浮动” caption
。