如何解决 Texmaker(64 位)中的“作业中止,非停止模式下文件错误”错误?

如何解决 Texmaker(64 位)中的“作业中止,非停止模式下文件错误”错误?

第一次在这里发帖。希望不是无知的。

我在 Ubuntu 12.10 上使用 Texmaker 和 PDFlatex。我运行的是 64 位机器。新安装的 Linux 和 Texmaker,我非常习惯使用 Texmaker,不知道为什么会出现此错误。我可以编译其他文档,所以(据我所知)不一定是 texmaker。

这是我的日志文件:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2014.2.14)  14 FEB 2014 18:18
entering extended mode
 %&-line parsing enabled.
**"Book Corrections for Dr.tex"

! Emergency stop.
<*> "Book Corrections for Dr.tex"

*** (job aborted, file error in nonstop mode)


Here is how much of TeX's memory you used:
 3 strings out of 495061
 126 string characters out of 1182621
 45108 words of memory out of 3000000
 3282 multiletter control sequences out of 15000+50000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 28 hyphenation exceptions out of 8191
 0i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

我附上了文件的相关部分:

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\author{Jeffrey Wubbenhorst}
\title{Book Errors}
\usepackage [english]{babel}
%\usepackage [autostyle, english = american]{csquotes}
%\MakeOuterQuote{"}
\usepackage{listings}
\usepackage{color}

\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}

\lstset{
  language=Python,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true
  tabsize=3
}
\begin{document}

\maketitle
\section*{Introduction}
I really appreciate this book, and am honored to help contribute to it. Here are most of the errors I have found. Hopefully, this will help bring the book one step closer to publication. 

Thanks!
\section*{Python}
\begin{itemize}
\subsection*{Recurring}
\item One recurring error in code examples is the {\tt print} option, which often does not contain parentheses. 
\subsection*{c3}

\item Page 7/9: ``...  $\vee$ (simQ):..." I think there's a forgotten $\backslash$.
\subsection*{c6}
\item Page 13: ``...copy ofeach element..."
\item Page 13: ``...range iterator ylelds up the integers 0-9..."
\item Page 18: ``...function in Pyton 2, but.." 
\item Page 20: ``I will walk through a collection, such as a list, because listss, strings and tuples
all have built in iterators that walk throug them in order.."
\item Page 21: Example does not run- perhaps the author meant to define k? Possible code is shown below:
\begin{lstlisting}
>>> groceries = ["milk", "eggs", "caviar", "foie gras"]
>>> k=0
>>> while k <= 4:
... print groceries[k]
... k += 1
\end{lstlisting}

does not run straight out of the box. 


\end{itemize}

\end{document}

谢谢你尽你所能的帮助。

答案1

正如 tohecz 所建议的,从文件名中删除空格可以解决这个问题。一旦文件被正确命名,代码就可以很好地编译:

问题中的代码按原样编译在适当命名的文件中

如果问题仍然存在,最好的策略是转到命令行,这样您就可以在非不间断模式下进行编译。这样有望告诉您错误是什么和/或错误在哪里,而不是简单地告诉您有错误。

除此之外,注释掉部分代码(例如加载的包)直到你看不到错误为止,这有助于缩小问题的范围。

如果您需要编译较新的文档,则可能需要更新版本的 TeX Live。一种方法是卸载使用包管理器安装的版本,然后直接从上游安装 TeX Live 2013。说明可在TUG 的网站这个问题

相关内容