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*}
相关推荐
浮尘20257 分钟前
PC端pdf软件测评
pdf·软件评测
SEO-狼术22 分钟前
PDF Content Through the Viewer
pdf
SEO-狼术1 小时前
Convert Word Documents to PDF
pdf·word
七分辣度1 小时前
Python给PDF添加水印(极速版)
python·pdf
"YOUDIG"2 小时前
PDF高效处理全解析:压缩、拆分、合并的原理与实践——一站式在线工具指南
pdf
weixin_462446232 小时前
Python 使用 pypdf 按指定页码范围批量拆分 PDF(分章节)
python·pdf·pdf分割
全能打工人2 小时前
ruoyi项目导出PDF
java·elementui·pdf
开开心心就好1 天前
右键菜单管理工具,添加程序自定义名称位置
linux·运维·服务器·ci/cd·docker·pdf·1024程序员节
Mars空港1 天前
PDF 转换其他格式
pdf
YJlio1 天前
PsPing 学习笔记(14.6):直方图视图——可视化延迟分布与抖动
开发语言·笔记·python·学习·eclipse·pdf·github