LaTeX 多图 排列

**

1.\usepackage{subfig}和\subfloat{}

**
需要注意的是使用了\newline来另起一行。

......
\usepackage{graphicx}
\usepackage{subfig}
......
\begin{document}
\begin{figure*}[ht]
  \subfloat[img 1]{\includegraphics[width=0.3\textwidth]{1.jpg}}
 \hfill 	
  \subfloat[img 2]{\includegraphics[width=0.3\textwidth]{2.jpg}}
  
  \newline
  \subfloat[img 3]{\includegraphics[width=0.3\textwidth]{3.jpg}}
 \hfill 	
  \subfloat[img 4]{\includegraphics[width=0.3\textwidth]{4.jpg}}
 
\caption{Caption}
\end{figure*}
......
\end{document}

在这里插入图片描述

参考

### 实现片左右排列 为了在 LaTeX 中实现片左右并排显示,可以采用 `minipage` 环境来管理像的位置和布局。下面提供一种常见的方式: #### 使用 minipage 并排显示两张片 通过定义两个宽度总和不超过 `\textwidth` 的 `minipage` 来放置两幅,并给每一张加上独立的说明文字。 ```latex \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \begin{figure}[htp] \centering \begin{minipage}[t]{0.49\textwidth} \centering \includegraphics[width=\textwidth]{name1.png} \caption{} \label{fig:name1} \end{minipage} \hfill \begin{minipage}[t]{0.49\textwidth} \centering \includegraphics[width=\textwidth]{name2.png} \caption{} \label{fig:name2} \end{minipage} \end{figure} \end{document} ``` 此方法适用于希望各自拥有单独标题的情况[^1]。 对于更复杂的场景,比如想要共享一个主标题以及子标题,则推荐使用 `subfigure` 宏包中的命令来进行处理: ```latex \documentclass{article} \usepackage{subfigure} \usepackage[demo]{graphicx} \begin{document} \begin{figure}[htbp] \centering \subfigure[Sub-caption A]{ \label{fig:subcapA} \includegraphics[scale=0.5]{image-a}} \qquad \subfigure[Sub-caption B]{ \label{fig:subcapB} \includegraphics[scale=0.5]{image-b}} \caption{Main caption describing both figures together.} \label{fig:both} \end{figure} \end{document} ``` 这种方法不仅可以让片并排放置,还可以方便地为每个子添加描述性的副标题[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值