图形外部的小网格中子图形的ID如何排列?

图形外部的小网格中子图形的ID如何排列?

本质上,我想知道如何在一个小的网格中拥有子图 ID(a、b、c、d、e、f、g、h、i),就像这里所做的那样。

示例图片

答案1

下面是一个示例,使用该subcaption包对图像进行排列和编号,以及对小网格使用彩色表格:

在此处输入图片描述

\documentclass{article}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{subcaption}
\captionsetup{labelfont=bf, figurename=FIGURE}

\begin{document}


\begin{figure}
  \begin{minipage}[t]{0.7\textwidth}
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:a}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:b}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:c}
    \end{subfigure}

    \medskip

    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:d}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:e}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:f}
    \end{subfigure}

    \medskip

    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:g}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:h}
    \end{subfigure}
    \hfill
    \begin{subfigure}{0.32\linewidth}
      \includegraphics[width=\textwidth]{example-image}\phantomsubcaption\label{subfig:i}
    \end{subfigure}
  \end{minipage}\hfill
  \begin{minipage}[t]{0.25\textwidth}
    \arrayrulecolor{white}
    \setlength{\arrayrulewidth}{2pt}
    \rowcolors{1}{lightgray}{lightgray}
    \begin{tabular}{c|c|c}
       \subref{subfig:a} & \subref{subfig:b} & \subref{subfig:c} \\
       \hline
       \subref{subfig:d} & \subref{subfig:e} & \subref{subfig:f} \\
       \hline
       \subref{subfig:g} & \subref{subfig:h} & \subref{subfig:i} \\
    \end{tabular}
    \captionsetup{justification=raggedright}
    \caption{(\subref{subfig:a}) text text text.  (\subref{subfig:b}) text text text. (\subref{subfig:c}) through (\subref{subfig:i}), text text text text text text text texttext text text text text text text text text text text text } \label{figure}
  \end{minipage}
\end{figure}

\end{document}

相关内容