Latex 图像未显示,文档的其余部分也未显示

Latex 图像未显示,文档的其余部分也未显示

该图像被称为已更正,它位于与 tex 文件位于同一目录中的图像文件夹中...我做错了什么?以下是代码:

\documentclass[11pt]{article}

\usepackage{exscale}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{latexsym}
\usepackage{times}
\usepackage{epsfig}

\textwidth 6.5truein          
\textheight 9.0truein
\oddsidemargin 0.0in
\topmargin -0.6in

\parindent 0pt          
\parskip 5pt
\def\baselinestretch{1.1}

\begin{document}

\begin{LARGE}
\centerline {\bf CSci 423 Corrections}
\end{LARGE}
\vskip 0.25cm
\graphicspath{ {images/} }

\begin{enumerate}
\item Homework 1: (9 points) Give the state diagram of a DFA (with 15 states) that recognizes the set of strings such that in each string the number of 0s is divisible by 5 and the number of 1s is divisible by 3.
\newline

\includegraphics{corrected}
\item Homework 1: (10 points) Prove by induction that $\sum_{i=1}^n i^3 = (\sum_{i=1}^n i)^2$.
\newline 

\newline 
\end{enumerate}
\end{document}

答案1

我怀疑您的图像没有显示的原因是它太宽,因此在下面的 MWE 中我修复了width=6cm

在此处输入图片描述

笔记:

  • 除了使用\newline,您还可以使用包裹enumitem来控制itemsepparsep实现所需的额外间距。

  • 根据@egreg 的评论,我已经timesnewtxtext和替换了newtxmath,并删除了 epsfig`,因为它已经过时并且不应该在新文档中加载。

  • 下面我包含的图像非常宽。如果我删除该[width=6cm]选项,\includegraphics我会获得与您描述的结果类似的结果:

在此处输入图片描述

代码:

\documentclass[11pt]{article}

%\usepackage{exscale}
\usepackage{graphicx}
\usepackage{amsmath}
%\usepackage{latexsym}
%\usepackage{times}
%\usepackage{epsfig}
\usepackage{newtxtext,newtxmath}

\usepackage{enumitem}


\textwidth 6.5truein          
\textheight 9.0truein
\oddsidemargin 0.0in
\topmargin -0.6in

\parindent 0pt          
\parskip 5pt
\def\baselinestretch{1.1}

\begin{document}

\begin{LARGE}
\centerline {\bf CSci 423 Corrections}
\end{LARGE}
\vskip 0.25cm
\graphicspath{{../images/}}

\begin{enumerate}[itemsep=10pt,parsep=10pt]
\item Homework 1: (9 points) Give the state diagram of a DFA (with 15 states) that recognizes the set of strings such that in each string the number of 0s is divisible by 5 and the number of 1s is divisible by 3.
%\newline

\includegraphics[width=6cm]{EiffelWide.jpg}
\item Homework 1: (10 points) Prove by induction that $\sum_{i=1}^n i^3 = (\sum_{i=1}^n i)^2$.
%\newline 

%\newline 
\end{enumerate}
\end{document}

相关内容