我正在使用软件包\usepackage[font=small]{caption}
,\usepackage{graphicx}
并且\usepackage[font=small, subrefformat=parens]{subcaption}
我想像这样组织 7 张图片:
有没有办法用这些包来实现它?
答案1
你可以将两个subfigure
环境并列起来,然后在第二个环境中使用以下命令\subcaptionbox
:
\documentclass{article}
\usepackage{tikz}
\newcommand\mypicture[1][1cm]{\tikz\node[draw,rectangle, minimum width=#1,minimum height={2*#1},rounded corners]{};}
\usepackage[font=small]{caption}
\usepackage[font=small, subrefformat=parens]{subcaption}
\begin{document}
\begin{figure}[!ht]
\begin{subfigure}[b]{.3333\linewidth}
\centering\mypicture[2cm]
\caption{}\label{fig:1a}
\end{subfigure}%
\begin{subfigure}[b]{.6666\linewidth}
\centering
\subcaptionbox{\label{fig:1b}}[.3333\linewidth]{\mypicture}\hfill%
\subcaptionbox{\label{fig:1c}}[.3333\linewidth]{\mypicture}\hfill%
\subcaptionbox{\label{fig:1d}}[.3333\linewidth]{\mypicture}
\subcaptionbox{\label{fig:1e}}[.3333\linewidth]{\mypicture}\hfill%
\subcaptionbox{\label{fig:1f}}[.3333\linewidth]{\mypicture}\hfill%
\subcaptionbox{\label{fig:1g}}[.3333\linewidth]{\mypicture}
\end{subfigure}%
\end{figure}
\begin{verbatim}
\ref{fig:1a}\quad\ref{fig:1b}\quad
\ref{fig:1c}\quad\ref{fig:1d}\quad
\ref{fig:1e}\quad\ref{fig:1f}\quad\ref{fig:1g}
\end{verbatim}
\ref{fig:1a}\quad\ref{fig:1b}\quad
\ref{fig:1c}\quad\ref{fig:1d}\quad
\ref{fig:1e}\quad\ref{fig:1f}\quad\ref{fig:1g}
\end{document}