接上篇
使用XeLaTeX排版
插入图片
代码
\usepackage{graphicx} % 插入图片所需宏包
\begin{figure}[htbp] % []中调整图片位置(htbp为自动选择)
\centering % 居中
\includegraphics[scale=0.6]{y-s-1980.png}
\caption{Moore's(1980)method} % 图片说明
\label{fig:label} % 图片标签
\end{figure}
关于\includegraphics[]{}
[]中设置图片的大小,scale表示缩放系数
{}中输入图片路径
效果

并排插入两张图片
代码
\begin{figure}[htbp]
\begin{minipage}[c]{0.45\linewidth} %需调整
\centering
\includegraphics[scale=0.45]{y-s-1980.png} %需调整
\caption{Moore's(1980)method}
\label{fig:label}
\end{minipage}
\hfill %弹性长度
\begin{minipage}[c]{0.45\linewidth} %需调整
\centering
\includegraphics[scale=0.45]{y-s-1980.png} %需调整
\caption{Moore's(1980)method}
\label{fig:label}
\end{minipage}
\end{figure}
Tips
- 代码中间换行导致排版错乱 (不知道什么原因)
- 需要自行调整
[scale=0.45]和{0.45\linewidth}以正常显示图片 (不要超过页面尺寸)
效果

本文详细介绍了使用XeLaTeX进行论文排版时,如何插入和调整图片大小及位置的方法。包括使用includegraphics命令插入图片,通过scale参数调整图片大小,以及并排插入多张图片的技巧。
1万+





