latex 常用插入图片语句
导言区需要加入
\usepackage{graphicx}
\numberwithin{figure}{section}%按章节标注
\usepackage{subfigure}
\usepackage{caption}
一般正常的插图

\begin{figure}[h]%插在正文此处
\centering%图片居中
\includegraphics[width=0.5\textwidth]{./fig/bridge_model}%工作目录下,fig文件夹里图片
\caption{mechanical model of a design domain}%文中标题
\label{fig:bridge_model}%图片引用标签
\end{figure}
需要加入横列子图

\begin{figure}[h]
\subfigure[optimization process]{%子图1
\centering
\includegraphics[width=6cm]{./fig/bridge_optimized}
\label{fig:bridge_optimized}%子图1标签
}
\hspace{0.2in}%横列子图之间距离
\subfigure[Zhaozhou Bridge]{ %子图2
\centering
\includegraphics[width=6cm]{./fig/zhaozhou_bridge}
\label{fig:Zhaozhou_Bridge}%子图2标签
}
\label{fig:real and design}%总图标签
\caption{TO design and real bridge}%总图标题
\end{figure}
需要加入纵列子图

\begin{figure}[h]
\centering%相比于横列,多了个居中命令
\subfigure[optimization process]{%子图1
\centering
\includegraphics[width=6cm]{./fig/bridge_optimized}
\label{fig:bridge_optimized}%子图1标签
}%关键!!!相比于横列,下一行从\hspace{}变成了空行
\subfigure[Zhaozhou Bridge]{ %子图2
\centering
\includegraphics[width=6cm]{./fig/zhaozhou_bridge}
\label{fig:Zhaozhou_Bridge}%子图2标签
}
\label{fig:real and design}%总图标签
\caption{TO design and real bridge}%总图标题
\end{figure}