一行突然出现多个错误

一行突然出现多个错误

我正处于论文审查的最后阶段。今天当我尝试打开文件时,无法生成 pdf。我尝试编译文件,但在包含 \begin{document} Latex 文件的行上出现了许多错误:

\documentclass[a4paper, oneside, 12pt, openright]{book}%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[final]{pdfpages}
\usepackage[english]{babel}
%Remove following comment (disabled double space)
\usepackage{setspace}
\usepackage{varioref}
\usepackage{array}
\usepackage{hyperref}

\usepackage{listings}
\usepackage{color}
\usepackage{verbatim}
\usepackage{float}
\usepackage{subfloat}
%\usepackage{pdfpages}
\usepackage{epsfig}
\usepackage{url}
\usepackage{mathptmx}
\usepackage{times}
\usepackage{stfloats}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{url,hyperref,lineno,microtype,subcaption}
\usepackage{tabulary, makecell}

\usepackage[numbers]{natbib}
%\usepackage[numbers,super]{natbib}

%\usepackage{cite}
\usepackage{makeidx}  % allows for indexgeneration
% \makeindex          % be prepared for an author index
\usepackage{algorithmic}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{booktabs} % For formal tables
\usepackage{csquotes}
\usepackage{paralist}
\usepackage[flushleft]{threeparttable}
\usepackage{colortbl}
\definecolor{gray}{rgb}{0.66, 0.66, 0.66}
\usepackage{graphics}
\usepackage{etoolbox}
\usepackage{csquotes}
\usepackage[bottom]{footmisc}

\usepackage{pdflscape}

\usepackage{eurosym}

\usepackage[euler]{textgreek}

\usepackage{longtable}

%\usepackage[noadjust]{cite}
%\usepackage[hyphens]{url}
\usepackage{natbib}


\BeforeBeginEnvironment{figure}{\vskip-2ex}
\AfterEndEnvironment{figure}{\vskip-1ex}

\BeforeBeginEnvironment{table}{\vskip-2ex}
\AfterEndEnvironment{table}{\vskip-1ex}





\hypersetup{
    pdftitle=TITLE
    pdfauthor=FirstName LastName,
    pdfsubject=Ph.D. Thesis,
    colorlinks=true,
    urlcolor=blue,
    citecolor=blue,
    linkcolor=black
}
\def\acrobat{\hyperdef{jump}{here}{}}
\graphicspath{{images/}}
%Remove following comment (disabled one half space)
\onehalfspace
%\linespread{1.25}
% for setting the spacing refer to
%http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907092

\parindent 0mm
\parskip 0.5cm
\newcommand{\degree}{\ensuremath{^\circ}}


\begin{document}
%\setlength{\emergencystretch}{3em}
\frontmatter

\begin{titlepage}
\begin{center}

{\LARGE{Agile Methodology Implementation in Lebanon}}\\


%\vspace{30mm}
\vspace{55mm}
{\large Scarlet Rahy} \\
\vspace{20mm}
\includegraphics[width=0.30\textwidth]{salfordlogo} \\
{{\Large{\textsc{University of Salford }}} \\
\rule[0.1cm]{9.2cm}{0.1mm} \\
\rule[0.5cm]{9.2cm}{0.6mm} \\
{\small{\textsc{School of Computing, Science and Engineering}}}} \\
\vspace{20mm}
\textsc{\today} \\
\vspace{20mm}
\small{This document is toward the degree of Doctor of Philosophy} \\
\end{center}
\end{titlepage}


\renewcommand{\bibname}{References}
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{plainnat}
\bibliography{mybib}



\appendix
\addcontentsline{toc}{chapter}{Appendix}
%\input{chapter_appendices_a}
\input{chapter_appendices_b}







\renewcommand{\thechapter}{\Alph{chapter}}
%\chapter{Publications}
%is this seat taken
%trying to pull up a chair
\end{document}

这是我现在遇到的日志错误

! Missing \endcsname inserted.
<to be read again> 
                   \relax 
l.96 \begin{document}
                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Missing \endcsname inserted.
<to be read again> 
                   \relax 
l.96 \begin{document}
                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra \endcsname.
\check@bm@number ...0\else \csname B_#1\endcsname 
                                                  \fi 
l.96 \begin{document}
                     
I'm ignoring this, since I wasn't doing a \csname.

! Missing \endcsname inserted.
<to be read again> 
                   \relax 
l.96 \begin{document}
                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

(thesis.out)
! Missing \endcsname inserted.
<to be read again> 
                   \endgroup 
l.96 \begin{document}
                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Missing \endcsname inserted.
<to be read again> 
                   \endgroup 
l.96 \begin{document}
                     
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Use of \B_ doesn't match its definition.
<recently read> \endgroup 
                          
l.96 \begin{document}
                     
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

! Missing number, treated as zero.
<to be read again> 
                   \endcsname 
l.96 \begin{document}
                     
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! Missing { inserted.
<to be read again> 
                   \endcsname 
l.96 \begin{document}
                     
A left brace was mandatory here, so I've put one in.
You might want to delete and/or insert some corrections
so that I will find a matching right brace soon.
(If you're confused by all this, try typing `I}' now.)

! Extra \else.
\ReadBookmarks ...fx \WriteBookmarks \relax \else 
                                                  \if@filesw \newwrite \@out...
l.96 \begin{document}
                     
I'm ignoring this; it doesn't match any \if.

! Undefined control sequence.
<argument> \@outlinefile 
                         
l.96 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ... \immediate \closeout \@outlinefile 
                                                  \ReFiCh@Check {}\x {\jobna...
l.96 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> \x 
              
l.96 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...Ch@0 \MessageBreak After: \space \x 
                                                  \@gobble 
l.96 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
\ReadBookmarks ...mmediate \openout \@outlinefile 
                                                  =\jobname .out\relax \ifHy...
l.96 \begin{document}
                     
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Extra \fi.
\ReadBookmarks ... {<relaxxml>\relax }\fi \fi \fi 
                                                  
l.96 \begin{document}
                     
I'm ignoring this; it doesn't match any \if.

! Extra \fi.
\Hy@AtBeginDocumentHook ...per \ReadBookmarks \fi 
                                                  \Hy@pdfstringtrue \PDF@Set...
l.96 \begin{document}
                     
I'm ignoring this; it doesn't match any \if.

)
! Incomplete \iffalse; all text was ignored after line 96.
<inserted text> 
                \fi 
<*> ./thesis.tex
                
The file ended while I was skipping conditional text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.

! Emergency stop.
<*> ./thesis.tex
                
*** (job aborted, no legal \end found)

 
Here is how much of TeX's memory you used:
 15713 strings out of 480930
 247181 string characters out of 2894163
 565272 words of memory out of 3000000
 31248 multiletter control sequences out of 15000+200000
 533143 words of font info for 26 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 41i,1n,45p,1124b,1066s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

相关内容