latex 子图_多图横排,每一行是一个子图(包含若干图片),每一行的子图的图题在左侧...

这篇博客介绍了如何使用 LaTeX 实现多图横向排列,每个图行包含多个子图,并且子图的图题位于左侧。通过示例代码展示了如何设置子图的宽度、高度以及整体布局,确保图题不会被挤压。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

%% 多图横排,每一行是一个子图(包含若干图片),每一行的子图的图题在左侧,如下图所示

322a527cbc21ae44b6919ad6530d7576.png

usepackage{graphicx}

begin{figure*}%加*的作用是跨栏(双栏和单栏latex的区别)

centering % 图居中

(a)

begin{minipage}[c]{0.95textwidth}

% 0.95 这个数字控制整个图的宽度,可以调节,但是由于有图题(a)所以不能为1,否则图题会被挤到上一行

% 0.24 这个数字控制单张子图的宽度,也可以调节,但是不能超过0.25,否则排列不整齐

% 0.5 这个数字控制单张子图的高度,可以调节,"in"是英寸的意思,可以换成厘米"cm"

% figure1/1-1.png 是图片的路径

includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png}

end{minipage}

(b)

begin{minipage}[c]{0.95textwidth}

includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png} includegraphics[width=0.24textwidth,height=0.5in]{figure1/1-1.png}

end{minipage}

end{figure*}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值