Latex 几种并列放置两个图片模板
发布日期:2021-05-06 16:33:44 浏览次数:25 分类:精选文章

本文共 1391 字,大约阅读时间需要 4 分钟。

收集了几种并列和竖直放置图片的模板,备忘。

并列布置:

第一种:无统一大标题,独立小标题

代码:

\begin{figure} \begin{minipage}[t]{0.5\linewidth} \centering \includegraphics[width=2.0in]{frame_count.jpg} \caption{No.frame for video} \label{frame} \end{minipage}% \begin{minipage}[t]{0.5\linewidth} \centering \includegraphics[width=1.8in]{label_count.jpg} \caption{No.video for label} \label{label} \end{minipage} \end{figure}

效果图:

pic1
第二种:统一大标题,各个图片带小标题
代码:

\begin{figure}   \centering   \subfigure[No.frame for video]{     %\label{fig:subfig:a} %% label for first subfigure     \includegraphics[width=1.5in]{frame_count.jpg}   }   \subfigure[No.video for label]{     %\label{fig:subfig:b} %% label for second subfigure     \includegraphics[width=1.5in]{label_count.jpg}   }   \caption{Distribution of the datasets}   %\label{fig:subfig} %% label for entire figure \end{figure}

效果图:

pic2

竖直布置:

这里只列统一标题的代码,如果要独立的标题的直接按正常单一图片放置就好了

代码:

\begin{figure}\centering\subfigure[]{\begin{minipage}[b]{0.5\textwidth}\includegraphics[width=1\textwidth]{frame_count.jpg}\end{minipage}}\subfigure[]{\begin{minipage}[b]{0.5\textwidth}\includegraphics[width=1\textwidth]{label_count.jpg}\end{minipage}} \caption{Distribution of the datasets. (a)The number of frame for a video. (b)The number of video for a label.} \label{distribution:dataset}\end{figure}

效果图:

shuzhi
PS:

可以在\subfigure[] 这句中的中括号里面填写小标题名称,如

\subfigure[The number of frame for a video.]

其他照旧,图片大小不合适还要慢慢调

上一篇:linux 学习笔记四:目录与路径及管理
下一篇:LaTex 自动生成IEEE格式的参考文献

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2025年04月12日 18时30分16秒