latex排版--插入图片

1.插入图片语法

\begin{figure}
  \centering       %居中
      % Requires \usepackage{graphicx} 需要调用graphicx包
  \includegraphics[width=3.5in]{fig}\\       %导入图片fig,设置宽度
  \caption{Traffic transfer network.}\label{Fig.2} %设置图片描述及标签
\end{figure}

2.并排插入两张图片

\begin{figure}[htbp]
 \centering
 \begin{minipage}[t]{4.5cm}
 \centering
 \includegraphics[width=0.97\columnwidth]{f2}
 \end{minipage}%
 \begin{minipage}[t]{4.5cm}
 \centering
 \includegraphics[width=0.97\columnwidth]{f2}
 \end{minipage}
 \caption{.}
 \label{Fig}
\end{figure}

设置两图的横向间距,纵向间距。
\hspace{.5in}
\hspace{.1in}

参考文献 改成作者年份格式的:
尾部添加:
\biboptions{authoryear}

你可能感兴趣的:(latex排版)