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*}
相关推荐
流形填表2 天前
Pdf to forms如何实现?如何在3分钟内将PDF自动转换为Microsoft Forms
microsoft·pdf·c#
IDRSolutions_CN2 天前
什么是线性化PDF?
经验分享·pdf·软件工程·团队开发
辣香牛肉面2 天前
开源PDF分割合并工具 PDFsam Basic v5.3.0绿色版
pdf
天赐信息科技2 天前
衡水市城区小区地图)矢量高清cdr|pdf大图内容测评
pdf·贴图
SunkingYang2 天前
C#如何通过使用XpsToPdf库来转换xps为pdf文件
pdf·c#·使用方法·转换·xps·xpstopdf
辣香牛肉面3 天前
PDF 擦除工具
pdf
花千树-0103 天前
LangChain教程 - RAG - PDF解析
langchain·pdf
LCG元4 天前
Vue.js组件开发-实现导出PDF文件可自定义添加水印及水印样式方向
javascript·vue.js·pdf
LCG元5 天前
Vue组件开发-使用 html2canvas 和 jspdf 库实现PDF文件导出 设置页面大小及方向
前端·vue.js·pdf
pianmian15 天前
导出地图为pdf文件
arcgis·pdf