LaTeX 总能给你
| Subfigure 1 | Subfigure 2 |
| Subfigure 3 | Subfigure 4 |
但我想得到
| Subfigure 1 | Subfigure 2 |
| Subfigure 4 | Subfigure 3 |
答案1
假设您使用该subcaption
包创建子图,则可以按照以下示例所示进行操作。答案是先增加计数器,然后减少计数器subfigure
。
\documentclass{article}
\usepackage{subcaption}
\setlength\textwidth{10cm} % just for this example
\begin{document}
\begin{figure}
\begin{subfigure}{0.5\textwidth}
\centering
% other instructions...
\caption{Subfigure aa} \label{fig:a}
\end{subfigure}%
\begin{subfigure}{0.5\textwidth}
\centering
% other instructions...
\caption{Subfigure bb} \label{fig:b}
\end{subfigure}
\stepcounter{subfigure}%
\begin{subfigure}{0.5\textwidth}
\centering
% other instructions...
\caption{Subfigure dd} \label{fig:d}
\end{subfigure}%
\addtocounter{subfigure}{-2}%
\begin{subfigure}{0.5\textwidth}
\centering
% other instructions...
\caption{Subfigure cc} \label{fig:c}
\end{subfigure}
\caption{A figure with four subfigures}
\end{figure}
\end{document}