在 windows texstudio 中找不到檔案 SVG

在 windows texstudio 中找不到檔案 SVG

我在 Linux 上使用 Latex 一段時間,並且使用 SVG。我記得修復錯誤是一段非常困難的時期,特別是那句話

找不到檔案“./somesvg”

現在,安裝了 TeXStudio 和最新版本的 InkScape、MikTex 以及所需的軟體套件。

製作一個簡單的測試 tex:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{color}
\usepackage{graphicx}
\graphicspath{ {images/} }     %%%% file path here
\usepackage{svg}
\usepackage[margin=0.5in]{geometry}
\usepackage{float}
\usepackage{subfig}

\begin{document}

\begin{figure}[H]
\centering
\includesvg[width=140mm]{samplecar}  %%%%%%%%%% error here
\caption{aaaaaaa}
\label{fig:aaaaaaaa}
\end{figure}

\end{document}

建立一個名為 的資料夾images並在其中放入一個名為 的檔案samplecar.svg

我收到錯誤:

未找到檔案“./samplecar”。 \includesvg[寬度=140mm]{樣本車}

samplecar.svg即使在與文件相同的路徑中複製也.tex沒有幫助。

我哪裡出錯了?

請避免連結到這個問題因為它對我沒有幫助。

相關內容