将 eps 图像嵌入到 LaTeX 中

将 eps 图像嵌入到 LaTeX 中

我无法将 eps 图像嵌入 LaTeX 文档。我尝试使用示例图像,效果很好,所以我知道这与文件路径或其他东西有关?当我尝试编译它时,我收到“未定义控制序列”的错误消息。我是否缺少处理部分问题的包?我的文件与 .tex 文件位于同一文件夹中,并且我使用的是 TexMaker,如果这有区别的话:

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{epstopdf}


\begin{document}
\title{Assignment 5}
\author{Katlyn LaFranca}
\maketitle
\date{}

\section{Part 1}
\begin{figure}
\includegraphics[scale=0.2]{integralscreenshot.eps}
\caption{This is a screenshot from our assignment on integrals and loops.}
\label{Figure 1}
\end{figure}

\end{document}

错误消息:

! Undefined control sequence.<argument> \integralscreenshot.eps ...aphics[scale=0.2]{\integralscreenshot.eps}

! Undefined control sequence.<write>LaTeX Warning: File `\integralscreenshot.eps' not found\on@line . ...aphics[scale=0.2]{\integralscreenshot.eps}

! Package pdftex.def Error: File `./-eps-converted-to.pdf' not found: using draft setting.See the pdftex.def package documentation for explanation.Type H <return> for immediate help.... ...aphics[scale=0.2]{\integralscreenshot.eps}

File `.eps' not found

相关内容