latex如何对.pdf格式的图片实现裁剪

目录

问题描述:

问题解决:


问题描述:

在使用draw.io进行绘图,导出的时候不知道为什么周围会有留白,比如下图:

在导入latex的时候,会因为两侧的留白导致整张图片缩小。 如果直接进行裁剪.pdf,可能需要开通会员

问题解决:

不得不感慨latex的强大,可以直接使用命令进行裁剪。

下面是原始的命令:

python 复制代码
\centering
\includegraphics[width=1\textwidth]{figures/learning.pdf}
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}

裁剪的命令:

python 复制代码
\begin{figure*}[t]
\centering
\includegraphics[width=1\textwidth, trim=1cm 0cm 1cm 0cm, clip]{figures/learning.pdf} 
%  left, botton, right,top
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}

注意在裁剪的时候,不建议把width=1\textwidth,这个去掉,这个去掉可能会影响图片的居中摆放效果,可能会出现左倾或者右斜。

即下面的方式不可取!!!

python 复制代码
\begin{figure*}[t]
\centering
\includegraphics[trim=1cm 0cm 1cm 0cm, clip]{figures/learning.pdf} 
%  left, botton, right,top
\caption{An overview of our dual-channel model framework.}
\label{fig:framework}
\end{figure*}
相关推荐
南风微微吹14 小时前
英语四级作文历年真题及范文模版汇总PDF电子版(2015-2025年6月)
pdf·英语四级
TextIn智能文档云平台17 小时前
如何快速提取PDF文档内容
pdf
小马爱打代码18 小时前
Spring AI:DeepSeek 整合 RAG 增强检索: 实现与 PDF 对话
人工智能·spring·pdf
南风微微吹18 小时前
英语六级作文历年真题及范文模版汇总PDF电子版(2015-2025年6月)
pdf·英语六级
verse_armour19 小时前
markdown插入文献引用并导出pdf
pdf·markdown·pandoc·latex
月屯21 小时前
pandoc安装与使用(html、makdown转docx、pdf)
前端·pdf·html·pandoc·转docx、pdf
摸森堡2 天前
vs code + latex使用攻略
latex
星空椰2 天前
Java Excel转PDF
pdf·excel
Charlene Fung2 天前
如何使用 Markdown 生成带参考文献的 PDF
论文阅读·pdf·markdown
std860212 天前
微软发布 Edge 143 稳定版:PDF 注释支持撤销重做
microsoft·edge·pdf