在一页上排列多个子图

时间:2017-11-07 17:14:36

标签: latex figure subfigure

我想在一页上安排4组3个子图,如附图所示。我希望4组子图中的每一个都有自己的图号和标题。 是否可以将页面拆分为可以放置子图的四分之一? enter image description here

1 个答案:

答案 0 :(得分:2)

您可以将子图集合放在minipage内。每个人都有一些\subcaption s和自己的\caption。可以根据需要更改间距。

enter image description here

\documentclass{article}

\usepackage{graphicx,subcaption}

\begin{document}

\begin{figure}
  \centering
  \begin{minipage}{.48\linewidth}
    \centering
    \subcaptionbox{First top left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-a}}

    \subcaptionbox{Second top left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-b}}

    \subcaptionbox{Third top left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-c}}

    \caption{Top left}
  \end{minipage}\quad
  \begin{minipage}{.48\linewidth}
    \centering
    \subcaptionbox{First top right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-a}}

    \subcaptionbox{Second top right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-b}}

    \subcaptionbox{Third top right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-c}}

    \caption{Top right}
  \end{minipage}

  \bigskip

  \begin{minipage}{.48\linewidth}
    \centering
    \subcaptionbox{First bottom left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-a}}

    \subcaptionbox{Second bottom left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-b}}

    \subcaptionbox{Third bottom left}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-c}}

    \caption{Bottom left}
  \end{minipage}\quad
  \begin{minipage}{.48\linewidth}
    \centering
    \subcaptionbox{First bottom right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-a}}

    \subcaptionbox{Second bottom right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-b}}

    \subcaptionbox{Third bottom right}
      {\includegraphics[width=\linewidth,height=50pt]{example-image-c}}

    \caption{Bottom right}
  \end{minipage}
\end{figure}

\end{document}