
我正在做以下
\begin{figure}
\includegraphics{gd.jpg}
\caption{Amazon Guard Duty}
\end{figure}
在序言中我有以下內容
\usepackage{graphicx}
\graphicspath{C:\Users\user1\user\Lab assignments\project\march2020\paper\EUSFLAT 2019 template\images}
路徑「C:\Users\user1\user\Lab assignments\project\march2020\paper\EUSFLAT 2019 template\images」是我嵌入到產生的pdf中的圖片的資料夾路徑。
但是當我編譯這個然後我得到
Undefined control sequence. \includegraphics{gd.jpg}
那我在上面犯了什麼錯誤呢?
更新1
正如下面評論中所建議的,我將\
文件路徑更改為/
新路徑如下
\documentclass{eusflat2019}
\title{\bf paper title}
\author{{\bf author1$^1$} , {\bf author1$^2$} , {\bf author1$^{3}$}\\
$^1$CSE \\ $^2$CSE \\$^3$ CSE }
\usepackage{parskip}
\usepackage{indentfirst}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{graphicx}
\graphicspath{C:/Users/User1/user/Lab assignments/project/march2020/paper/EUSFLAT 2019 template/images}
在括號中我做了
\includegraphics{{gd.jpg}}
現在我得到的是
包 pdftex.def 錯誤:找不到檔案「gd.jpg」:使用草稿設定。 \includegraphics{{gd.jpg}}
我試過
\includegraphics{{gd.jpg}}
那我得到的錯誤是
Package pdftex.def Error: File `gd.jpg' not found: using draft setting. \includegraphics{gd.jpg}
我在 Windows 10 上使用 tex studio。