latex 常用插入圖片語句
導言區(qū)需要加入
\usepackage{graphicx}
\numberwithin{figure}{section}%按章節(jié)標注
\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標簽
????}%關鍵!?。?/span>相比于橫列,下一行從\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}