LaTex插入矢量图(pdf版)
第一步:绘图
使用www.iodraw.com绘图(使用其他软件也可以,这个网站是一个在线绘图网站,不需要下载)
第二步:导出为pdf
选择【文件】【导出为】【pdf...】

第三步:导出的设置
选择【裁剪】,并让【边框宽度】为0,然后点击下面的【打印】(鼠标滚轮往下翻可以看到【打印】)

第四步:调整pdf大小
选择打印后会弹出一个打印窗口,左上角【打印机】按下图选择

在【更多设置】里面调整纸张大小和缩放,尽量让图片占满整个pdf(或者后期用pdf裁剪工具把白边裁掉)

第五步:插入LaTex
\usepackage{graphicx} % 必须导入的宏包
% 基本插入方式
\includegraphics{example.pdf}
% 指定宽度
\includegraphics[width=0.8\textwidth]{example.pdf}
% 指定高度
\includegraphics[height=5cm]{example.pdf}
% 同时指定宽高(可能变形)
\includegraphics[width=10cm, height=6cm]{example.pdf}
% 按比例缩放
\includegraphics[scale=0.7]{example.pdf}
% 保持宽高比
\includegraphics[width=0.5\textwidth, keepaspectratio]{example.pdf}

浙公网安备 33010602011771号