当前位置:网站首页>[Latex] 插入图片

[Latex] 插入图片

2022-06-13 00:53:00 让我安静会

将图片统一放入picture文件夹:

\begin{
    figure}[ht]
\centering
\includegraphics[scale=0.6]{
    picture/model.png}
\caption{
    this is a figure demo}
\label{
    fig:pathdemo}
\end{
    figure}

在正文中,引用该图片的时候:~\ref{fig:pathdemo}

添加svg矢量图

将.svg图片转为.pdf图片,下载并安装:https://inkscape.org/release/all/windows/64-bit/exe/

记得选择,添加到PATH,否则后续要手动添加:在这里插入图片描述

在需要转换的svg图片(demo.svg)下进入cmd,输入:

inkscape -D --export-type=pdf --export-latex demo.svg

参考:

  1. Latex中插入图片:https://blog.csdn.net/qq_35091353/article/details/111403178
  2. 【Latex】latex导入svg图片:https://blog.csdn.net/dl962454/article/details/114479159
  3. 【InkScape+LaTeX】如何绘制矢量图并优雅地用在LaTeX文档中?:https://www.bilibili.com/video/BV1V7411u7cg?p=2
原网站

版权声明
本文为[让我安静会]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_31225201/article/details/125053698