大家好,又见面了,我是你们的朋友全栈君。
\usepackage{graphicx}
\begin{figure}[ht]
\centering
\includegraphics[scale=0.6]{KitKat.png}
\caption{this is a figure demo}
\label{fig:pathdemo4}
\end{figure}
\begin{figure}[htbp]
\centering
\subfigure[pic1.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[pic2.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}%
}%
\subfigure[pic3.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}
}%
\subfigure[pic4.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}
}%
\centering
\caption{ pics}
\end{figure}
\begin{figure}[htbp]
\centering
\subfigure[pic1.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[pic2.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}%
}%
%这个回车键很重要 \quad也可以
\subfigure[pic3.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}
}%
\subfigure[pic4.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.eps}
%\caption{fig2}
\end{minipage}
}%
\centering
\caption{ pics}
\end{figure}
有时候,我们使用双栏的论文格式,通常图片显示于单栏,不会跨栏显示;想要跨越双栏显示,则使用如下办法;
\begin{figure*}[ht]
\centering
\includegraphics[scale=0.6]{KitKat.png}
\caption{this is a figure demo}
\label{fig:pathdemo4}
\end{figure*}
几种浮动的效果设置方法为如下
\begin{figure}[ht]
\centering
\includegraphics[scale=0.6]{KitKat.png}
\caption{this is a figure demo}
\label{fig:pathdemo4}
\end{figure}
参考文献
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/132783.html原文链接:https://javaforall.cn