如何绘制一个有 6 个子图(每行 2 个图*3 行)的图?

如何绘制一个有 6 个子图(每行 2 个图*3 行)的图?

我正在尝试制作一个理想情况下有 3 行 2 列的图,以便布局为

Row Description(A) |fig(a) |fig(b)|      
Row Description(B) |fig(a) |fig(b)|
Row Description(C) |fig(a) |fig(b)|
    Fig. 1: [Caption]

“行描述”将包括每行的简短描述。我希望有一个指向每个图的超链接,例如 \ref{1Aa} 应该链接到第 1 行和第 1 列的图。

我遇到的最接近的帖子是如何将 2 组 3 个数字放在 2 列上?。但我还是没法让它工作。

答案1

比较粗糙,请见谅,以前是自己tabularray排版的。

\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{tabularray}
\UseTblrLibrary{counter}
\begin{document}
\newcounter{cussublabel}
\makeatletter
\newcommand{\cuslabel}{%
\stepcounter{cussublabel}%
\def\@currentlabel{(\alph{cussublabel})}%
\@currentlabel%
}
\makeatother
\begin{figure}
\begin{tblr}
{
colspec={Q[co=-1,c,m]Q[co=-1,c,m]Q[co=-1,c,m]},
columns={colsep=5pt},
rows={rowsep=5pt},
column{1}={preto={\cuslabel}},
}
\label{aaa}Row Description a&
\includegraphics[width=.3\textwidth,valign=c]{example-image}&
\includegraphics[width=.3\textwidth,valign=c]{example-image}\\
\label{bbb} Row Description b&
\includegraphics[width=.3\textwidth,valign=c]{example-image}&
\includegraphics[width=.3\textwidth,valign=c]{example-image}\\
\label{ccc} Row Description c&
\includegraphics[width=.3\textwidth,valign=c]{example-image}&
\includegraphics[width=.3\textwidth,valign=c]{example-image}\\
\end{tblr}
\caption{title}
\label{key}
\end{figure}
\figurename~\ref{aaa}\par
\figurename~\ref{bbb}\par
\figurename~\ref{ccc}\par
\figurename~\ref{key}
\end{document}

在此处输入图片描述

相关内容