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*}
相关推荐
2601_967760781 小时前
2026年PDF压缩与页码添加工具技术实测:性能、算法与本地化适配深度对比
算法·pdf
weixin_450813538 小时前
pdf文档转为markdown文档
linux·pdf
慧都小妮子9 小时前
用 Python 批量把 PDF 参考文献排成 MLA 格式:Spire.Doc for Python 实战
python·pdf·c#·spire.doc·mla格式·参考文献排版·pdf批量处理
weixin_4935036712 小时前
商会系统里的在线文件预览:PDF/Word/Excel 三种实现与选型(Node + 前端实战)
pdf·word·excel
ygwelcome14 小时前
视频收割机-VideoHarvester架构功能介绍
pdf·音视频
2601_9677607815 小时前
PDF转图片分辨率怎么选?几款工具实测
pdf
runningshark16 小时前
Lecture: Simple Present vs Present Continuous PDF
pdf
GiantGo1 天前
Texstudio编译参考文献出现问号
latex
weixin_416667961 天前
Stirling-PDF是一款完全开源免费、本地部署的全能PDF处理工具
pdf
开开心心就好1 天前
PDF图片去水印软件,支持批量处理页面
前端·javascript·人工智能·智能手机·pdf·语音识别