天天看点

论文写作之Latex使用技巧1、两张图片并列

论文写作之Latex使用技巧

  • 1、两张图片并列
    • 1、代码展示
    • 2、代码展示

1、两张图片并列

1、代码展示

%添加包
\usepackage{subfigure}

\begin{figure}[htbp]
\centering
\subfigure
{
	\begin{minipage}[b]{.4\linewidth}
	\centering
	\includegraphics[scale=0.3]{figure1}
	\end{minipage}
}
\subfigure
{
	\begin{minipage}[b]{.4\linewidth}
	\centering
	\includegraphics[scale=0.3]{figure2}
	\end{minipage}
}
\caption{figure title}
\end{figure}
           

效果展示

论文写作之Latex使用技巧1、两张图片并列

2、代码展示

\begin{figure}[htbp]
\begin{minipage}[t]{0.5\linewidth}
%并排插图时,线宽很重要,自己慢慢试,俩张图就不要超过0.5,三张图不要超过0.33之类的,自己看着办
\centering
\includegraphics[height=4cm,width=5cm]{DUT-RGBD-PR-CROP}
\caption{Fatiguedetection overview}
\end{minipage}
\hfill%分栏的意思吧
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[height=4cm,width=5cm]{NJUD-PR-CROP}
\caption{The imageprocessing}
\end{minipage}
\end{figure}
           

效果展示

论文写作之Latex使用技巧1、两张图片并列