LaTeX插入裁剪后的pdf图像

画图

VSCode + Draw.io Integration插件

有数学公式的打开下面的选项:

导出

File -> Export -> .svg导出成svg格式的文件。然后用浏览器打开svg文件后Ctrl+P选择另存为PDF,将图片存成pdf格式。

裁剪

只要安装了TeXLive,就只需要在图片pdf所在路径下使用以下命令,其中origin.pdf是需要裁剪的pdf,而crop.pdf表示裁剪后的pdf名称,pdfcrop会自动识别裁剪的区域:

bash 复制代码
pdfcrop origin.pdf crop.pdf

使用

tex 复制代码
\begin{figure}
    \centering
	\includegraphics[width=\columnwidth]{xxx.pdf}
    \caption{Description.}
    \label{fig:xxx}
\end{figure}

编译:pdflatex -> bibtex -> pdflatex*2

相关推荐
bu_shuo8 天前
将AI生成的数学公式正确复制到word中
人工智能·chatgpt·word·latex
꧁Q༒ོγ꧂8 天前
LaTeX 语法入门指南
开发语言·latex
seasonsyy11 天前
Latex中&符号的作用:对齐
latex·software
seasonsyy11 天前
Latex:把图标以图片形式插入到某句话中
latex·software
爱数模的小云16 天前
美赛LaTeX小白入门指南
数学建模·latex·数模美赛
时光Autistic16 天前
【环境配置】安装LaTeX并配置到PyCharm使用
ide·python·pycharm·latex
seasonsyy19 天前
CTex 2.8.0 更改编辑区文字大小
latex·ctex·winedit
seasonsyy21 天前
CTex2.8.0.125改变编辑区背景颜色
latex·ctex
seasonsyy22 天前
CTex 2.9.2 更改编辑区文字大小
latex·ctex·winedit
小桥流水---人工智能25 天前
tcolorbox 设置 breakable 后断页颜色失效问题及解决方案
latex