latex⽣成⼦图及并列图latex⽣成⼦图及并列图一去二三里教案
\upackage{graphicx}%插⼊图⽚
\upackage{subfigure} %⼦图
⼦图
代码
\begin{figure}
\centering
\subfigure[Average total cost with different schemes.]{
\includegraphics[width=3in]{V9-1-vary-S}3d动物
}古诗词配画
\subfigure[Average time delay with different schemes.]{
\includegraphics[width=3in]{V9-2-vary-S}
}
\subfigure[Average energy consumption with different schemes.]{
\includegraphics[width=3in]{V9-3-vary-S}
}
\DeclareGraphicsExtensions.
\caption{Average cost with different schemes.}
%\label{V9-1-vary-S}
\end{figure}
天津爆炸原因
并列⼦图
代码
\begin{figure} %⼦图加并列
\centering
\subfigure[the first subfigure]{
\begin{minipage}[b]{0.2\textwidth}
\includegraphics[width=1\textwidth]{V9-1-vary-S} \\ \includegraphics[width=1\textwidth]{V9-1-vary-S} \end{minipage}
熊骨}
\subfigure[the cond subfigure]{
\begin{minipage}[b]{0.2\textwidth}
电力系统自动化技术
\includegraphics[width=1\textwidth]{V9-1-vary-S} \\ \includegraphics[width=1\textwidth]{V9-1-vary-S} \end{minipage}
}
\end{figure}
并列图
代码
\upackage{caption2}
\begin{figure*}[t!] 并排⼩图
\begin{minipage}[t]{0.33\textwidth}
\tcaptionwidth{2in}
%\hspace{0pt}
\includegraphics[scale = 0.25]{V9-1-vary-S}
\caption{Average total cost with different schemes.}
\label{V9-1-vary-S} %\vspace{-10pt}
\end{minipage}
\begin{minipage}[t]{0.33\textwidth}
四壁之外\tcaptionwidth{2in}
喜气临门
%\hspace{0pt}
\includegraphics[scale = 0.25]{V9-2-vary-S}
\caption{Average time delay with different schemes.}
\label{V9-2-vary-S} %\vspace{-10pt}
\end{minipage}
\begin{minipage}[t]{0.33\textwidth}
\tcaptionwidth{2in}
%\hspace{0pt}
\includegraphics[scale = 0.25]{V9-3-vary-S}
\caption{Average energy consumption with different schemes.}
\label{V9-3-vary-S} %\vspace{-10pt}
\end{minipage}
%\caption{(a) Energy state of EV $S_{\textit{i,t}}$. (b) Thermal energy state of water tank $W_\textit{t}$. (c) Electricity amount bought from power grid.} \end{figure*}
效果