Overleaf / Latex 中插入 一张/并排两张图片
·
插入图片
在开头导入包
\usepackage{graphicx} %导入包
\graphicspath{ {image/} } %image为文件夹名,可以在左侧自己创建文件夹
插入一张图片
\begin{figure*}[htbp] %不带*单栏,带*双栏
\centering
\includegraphics[width=0.9\textwidth]{Fig1.jpg} % 0.9为相对于文本长度的缩放比例,Fig.jpg文件名
\caption{System Model} % 图片名称
\label{FIG:1}
\end{figure*}
并排插入两张图片
\begin{figure}[htbp] \centering %图片全局居中 \subfigure[]{ \includegraphics[width=5cm,height = 6cm]{Figure 2(a).png}} \subfigure[]{ \includegraphics[width=7cm,height = 5cm]{Figure 2(b).png}} \caption{Graphical data: (a) F-V curve, and (b) Volume-Time curve.} \end{figure}
讲解一下这个代码:
1、在\subfigure后面是子图片名称
2、在\includegraphics可以在 [ ] 中定义每张图片的大小,这里推荐直接用cm为单位,后面的{}里面就是要插入的图片的名称了
3、\caption就是对这两张图片整体的描述了
结果图
更多推荐
所有评论(0)