【LaTex】插入图片

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tfcy694/article/details/86591168
\usepackage{graphicx,graphicx,subfigure}

单张图

\begin{figure}[htb]
  \label{l1}
  \centering
  \includegraphics[height=4.5cm,width=9.5cm]{test.png}
  \caption{the description}
\end{figure}

横排组图

\begin{figure}[htb]
  \label{l2}
  \centering
  \subfigure[the description for a]{
  	\begin{minipage}[t]{0.3\linewidth}
  		\centering
  		\includegraphics[width=1in]{test.png}
  	\end{minipage}%
  }%
  \subfigure[curve boundary]{
  	\begin{minipage}[t]{0.3\linewidth}
  		\centering
  		\includegraphics[width=1in]{test.png}
  	\end{minipage}%
  }%
  \subfigure[pic3.]{
  	\begin{minipage}[t]{0.3\linewidth}
  		\centering
  		\includegraphics[width=1in]{test.png}
  	\end{minipage}
  }%
  \centering
  \caption{the description}
\end{figure}

竖排组图

\begin{figure}[htb]
  \label{l3}
  \centering
  \subfigure[the description for a]{
  	\label{l3a}
  	\begin{minipage}[c]{0.5\textwidth}
  		\centering
  		\includegraphics[width=1\linewidth]{test.png}
  	\end{minipage}
  }
  \subfigure[the description for b]{
  	\label{l3b}
  	\begin{minipage}[c]{0.5\textwidth}
  		\centering
  		\includegraphics[width=1\linewidth]{test.png}
  	\end{minipage}
  }
  \centering
  \caption{the description}
\end{figure}

猜你喜欢

转载自blog.csdn.net/tfcy694/article/details/86591168