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

[Latex] 插入圖片

2022-06-13 00:57: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://yzsam.com/2022/164/202206130052498625.html