我有两个人物,每个人物有 4 个子人物。它们目前摆放如下
A1 A2 A3
A4
- Ac ---
B1 B2 B3
B4
- Bc ---
Ac
并Bc
表示标题。每个子图也有自己的标题。
组织这种情况的最有效空间方法是什么?
我能想到的最好的办法如下,但我不知道如何实现它
A1 A2 A3
A4 B4
-Ac--
B1 B2 B3
-Bc-----
生成此代码的 Latex 代码看起来类似于
\begin{figure}
\begin{subfigure}{0.33\textwidth} A1\end{subfigure}
\begin{subfigure}{0.33\textwidth} A2\end{subfigure}
\begin{subfigure}{0.33\textwidth} A3\end{subfigure}
\begin{subfigure}{0.33\textwidth} A4\end{subfigure}
\end{figure}
\begin{figure}
\begin{subfigure}{0.33\textwidth} B1\end{subfigure}
\begin{subfigure}{0.33\textwidth} B2\end{subfigure}
\begin{subfigure}{0.33\textwidth} B3\end{subfigure}
\begin{subfigure}{0.33\textwidth} B4\end{subfigure}
\end{figure}
如果重要的话,这是单列格式(LNCS)。
答案1
如果您的字幕很短,您可以这样做:
\documentclass{article}
\usepackage{graphicx}
\usepackage[list=true]{subcaption}% add to LOF
\usepackage{duckuments}
\renewcommand{\thesubfigure}{\thefigure\alph{subfigure}}% affects LOF and \ref too
\captionsetup[subfigure]{labelformat=simple}
\begin{document}
\listoffigures
\begin{figure}
\setlength{\dimen0}{\dimexpr \textwidth-2\columnsep}%
\divide\dimen0 by 3
\sbox0{\begin{subfigure}{\dimen0}% measure height
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}}%
\usebox0\hfill
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}\hfill
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}\hfill
\begin{minipage}[c][\dimexpr \ht0+\dp0][s]{\dimen0}
\setlength{\abovecaptionskip}{0pt}%
\setlength{\belowcaptionskip}{0pt}%
\caption{Top caption}
\vfill
\caption{Bottom caption}
\end{minipage}\hfill
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}\hfill
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}\hfill
\begin{subfigure}{\dimen0}
\includegraphics[width=\textwidth]{example-image-duck}
\caption{}
\end{subfigure}
\end{figure}
\end{document}