
Latex 几种并列放置两个图片模板
第二种:统一大标题,各个图片带小标题 代码:
PS:
发布日期:2021-05-06 16:33:44
浏览次数:27
分类:精选文章
本文共 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}
效果图:

\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}
效果图:

竖直布置:
这里只列统一标题的代码,如果要独立的标题的直接按正常单一图片放置就好了
代码:
\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}
效果图:

可以在\subfigure[]
这句中的中括号里面填写小标题名称,如
\subfigure[The number of frame for a video.]
其他照旧,图片大小不合适还要慢慢调
发表评论
最新留言
很好
[***.229.124.182]2025年05月06日 09时44分42秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
LeetCode地平线专场——第308场周赛题解
2023-01-31
LeetCode数据库题目汇总一(附答案)
2023-01-31
LeetCode数据库题目汇总二(附答案)
2023-01-31
LeetCode新手指南:从零开始掌握算法挑战
2023-01-31
LeetCode智加科技专场——第207场周赛题解
2023-01-31
leetcode正则表达式匹配
2023-01-31
LeetCode真题解析!字节技术亲码13W字算法刷题宝典太香了!(附源码+视频解析)
2023-01-31
leetcode第40题:组合总和II
2023-01-31
leetcode算法题解(Java版)-6-链表,字符串
2023-01-31
LeetCode经典——202.快慢指针之快乐数
2023-01-31
LeetCode经典——70.爬楼梯&&509.斐波拉契数列
2023-01-31
Leetcode经典系列——LRU最近最少使用机制
2023-01-31
LeetCode美团专场——第203场周赛题解
2023-01-31
LeetCode蔚来专场——第208场周赛题解
2023-01-31
leetcode题解-买卖股票的最佳时机
2023-01-31
leetcode题解102-二叉树的层序遍历
2023-01-31
leetcode题解102-翻转二叉树
2023-01-31
leetcode题解104- 二叉树的最大深度
2023-01-31
leetcode题解108-将有序数组转换为二叉排序树
2023-01-31
leetcode题解118-杨辉三角
2023-01-31