我在编译时收到此错误。
我知道这种问题经常发生。但我尝试排除几种情况:检查 aux 文件中的花括号是否闭合。tex 文件中没有奇怪的符号。
另一个不同之处在于,在我清理并重新编译之后,它可以成功编译。但突然在我写了一些内容之后,这种情况又发生了。
因此错误文件是:
./forarxiv.aux:142: LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.142 c
tion*.4}\protected@file@percent }
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
./forarxiv.aux:142: Extra }, or forgotten \endgroup.
l.142 ction*.4}
\protected@file@percent }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
./forarxiv.aux:142: Extra }, or forgotten \endgroup.
l.142 ction*.4}\protected@file@percent }
I've deleted a group-closing symbol because it seems to be
spurious, as in `$x}$'. But perhaps the } is legitimate and
you forgot something else, as in `\hbox{$x}'. In such cases
the way to recover is to insert both the forgotten and the
deleted material, e.g., by typing `I$}'.
aux 文件中的最后几行:
\abx@aux@refcontextdefaultsdone
\abx@aux@defaultrefcontext{0}{alon1994random}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{chapman2018expander}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{conlon2017hypergraph}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{dinur2007pcp}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{hoory2006expander}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{kaufman2013high}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{kaufman2016high}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{lubotzky1988ramanujan}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{reingold2002entropy}{anyt/global//global/global}
\abx@aux@defaultrefcontext{0}{sipser1994expander}{anyt/global//global/global}
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\tocsection {}{5}{Concluding Remarks}}{14}{section.5}\protected@file@percent }
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {subsection}{\tocsubsection {}{5.1}{Acknowledgements}}{14}{subsection.5.1}\protected@file@percent }
\@writefile{toc}{\defcounter {refsection}{0}\relax }\@writefile{toc}{\contentsline {section}{\tocsection {}{}{References}}{14}{section*.4}\protected@file@percent }
错误发生在最后一行。
但我不认为这有什么问题,因为即使编译成功它仍然会保留。
我的渗透性
\documentclass[oneside,english]{amsart}
% \usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,lmargin=2cm,rmargin=2cm}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{1}
\usepackage{color}
\usepackage{refstyle}
\usepackage{amstext}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{thmtools}
\usepackage{hyperref}
%\usepackage{tkz-graph}
\usepackage[
backend=biber,
style=alphabetic,
citestyle=alphabetic
]{biblatex}
\makeatletter
\addbibresource{/Users/eyalkarni/Dropbox/mybibilo.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\AtBeginDocument{\providecommand\lemref[1]{\ref{lem:#1}}}
\AtBeginDocument{\providecommand\subsecref[1]{\ref{subsec:#1}}}
\AtBeginDocument{\providecommand\defref[1]{\ref{def:#1}}}
\RS@ifundefined{subsecref}
{\newref{subsec}{name = \RSsectxt}}
{}
\RS@ifundefined{thmref}
{\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
{}
\RS@ifundefined{lemref}
{\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\theoremstyle{plain}
\newtheorem*{fac*}{\protect\factname}
\theoremstyle{remark}
\newtheorem*{rem*}{\protect\remarkname}
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}[section]
\theoremstyle{definition}
\newtheorem{defn}[thm]{\protect\definitionname}
\theoremstyle{plain}
\newtheorem{lem}[thm]{\protect\lemmaname}
\theoremstyle{remark}
\newtheorem{claim}[thm]{\protect\claimname}
\theoremstyle{plain}
\newtheorem{fact}[thm]{\protect\factname}
\theoremstyle{plain}
\newtheorem{cor}[thm]{\protect\corollaryname}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{refstyle}
\usepackage{url}
\usepackage{relsize}
\newref{definition}{name=Definition~,Name=Definition~,names=Definitions~,Names=Definitions~}
\newref{claim}{name=Claim~,Name=Claim~,names=Claims~,Names=Claims~}
\newref{theorem}{name=Theorem~,Name=Theorem~,names=Theorems~,Names=Theorems~}
\usepackage{bbm}
\usepackage{pdfsync}
文档甚至更长。那会是什么呢?
谢谢。