Latex 插入多行多列图片排版

\usepackage{subfigure}
\usepackage{parskip}

\begin{figure}[htbp]
    \centering
    \subfigure[SubCaption_1]{
        \includegraphics[width=2.5in]{PrintScreen_0001}
        \label{label_for_cross_ref_1}
    }
    \subfigure[SubCaption_2]{
	\includegraphics[width=2.5in]{PrintScreen_0002}
        \label{label_for_cross_ref_2}
    }
    \quad    %用 \quad 来换行
    \subfigure[SubCaption_3]{
    	\includegraphics[width=2.5in]{PrintScreen_0003}
        \label{label_for_cross_ref_3}
    }
    \subfigure[SubCaption_4]{
	\includegraphics[width=2.5in]{Photos/PrintScreen_0004}
        \label{label_for_cross_ref_4}
    }
    \caption{This is a Demo of $2\times 2$}
    \label{fig.1}
\end{figure}

在这里插入图片描述

\begin{figure*}[!ht] #强制单栏排版
  \centering #居中
  \begin{minipage}[b]{0.93\linewidth} #整体划分一个0.93倍页面宽度的页面
  \subfloat[image1-4]{
    \begin{minipage}[b]{0.17\linewidth} #继续划分子页面 每个宽度0.17倍总宽度
      \centering
      #依次读取每张图片  宽度或者高度可以自定义
      #这里的几张图片是纵向排列的
      \includegraphics[width=\linewidth]{p1.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p2.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p3.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p4.png}
    \end{minipage}
  }
  \hfill
   \subfloat[image5-8]{
    \begin{minipage}[b]{0.17\linewidth}
      \centering
      \includegraphics[width=\linewidth]{p1.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p2.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p3.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p4.png}
    \end{minipage}
  }
  \hfill
    \subfloat[image9-12]{
    \begin{minipage}[b]{0.17\linewidth}
      \centering
      \includegraphics[width=\linewidth]{p1.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p2.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p3.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p4.png}
    \end{minipage}
  }
  \hfill
    \subfloat[image13-16]{
    \begin{minipage}[b]{0.17\linewidth}
      \centering
      \includegraphics[width=\linewidth]{p1.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p2.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p3.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p4.png}
    \end{minipage}
  }
  \hfill
    \subfloat[image17-20]{
    \begin{minipage}[b]{0.17\linewidth}
      \centering
      \includegraphics[width=\linewidth]{p1.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p2.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p3.png}\vspace{8pt}
      \includegraphics[width=\linewidth]{p4.png}
    \end{minipage}
  }
  \end{minipage}
  \vfill
  \caption{这里是你的标题}
\end{figure*}

在这里插入图片描述
转:https://zhuanlan.zhihu.com/p/61893353
https://www.freesion.com/article/9655849367/

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值