我不是 Latex 的频繁用户,当我尝试编译我的主要 tex 文件时,我不断收到以下错误:
! Extra \else.
\@include ...ediate \closeout \@partaux \fi \else
\deadcycles \z@ \@nameuse ...
l.5 \include{01_layout}
我想包含我的布局文件,但似乎它有问题!主文件以以下方式开始:
\documentclass[12pt,a4paper,titlepage]{article}
\include{01_layout}
...
布局文件很长,但由于我不知道错误可能来自哪里,所以我认为包含整个代码是合理的:
\usepackage[ansinew]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{amsbsy}
\usepackage[left=40mm,right=20mm,top=20mm,bottom=20mm]{geometry}
\usepackage{setspace}
\usepackage{rotating}
\usepackage{natbib}
\usepackage{fancyhdr}
\usepackage[nonumberlist,acronym=true,toc=true]{glossaries}
\usepackage{makeidx}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{graphics}
\usepackage{latexsym}
\usepackage{pdflscape}
\usepackage{epigraph}
\usepackage{adjustbox}
\usepackage{graphicx}
\usepackage{url}
\urlstyle{same}
\usepackage{siunitx}
\sisetup{
detect-mode,
input-symbols = {()},
input-open-uncertainty = ,
input-close-uncertainty = ,
tight-spacing = true,
group-digits = false
}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{threeparttablex}
\usepackage[font=small,labelfont=bf]{caption}
\newcommand{\bftab}{\fontseries{b}\selectfont}
\usepackage{caption}
\usepackage{soul}
\usepackage{enumitem}
\usepackage{float}
\usepackage{subfiles}
\usepackage{ifthen}
\usepackage{theorem}
\usepackage{epsfig}
\usepackage{mathrsfs}
\usepackage{lipsum}
\usepackage[usenames]{color}
\usepackage{epstopdf}
\definecolor{MidnightBlue}{rgb}{0.1, 0.1, 0.44}
\definecolor{blue}{rgb}{0, 0, 0.8}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{mathrsfs}
\usepackage{hyperref}
\newglossary[slg]{symbolslist}{syi}{syg}{\symbolslistname}
\renewcommand*{\glspostdescription}{}
\makeindex
\glossarystyle{long}
\makeglossaries
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
\fancyhf{}
\fancyhead[L]{\sc \leftmark}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\parskip}{1.5ex plus 0.5ex minus 0.5ex}
\setlength{\parindent}{0em}
\addtolength{\skip\footins}{2mm}
\AtBeginDocument{\renewcommand\refname{Literaturverzeichnis}}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{satz}{Satz}[section]
\newtheorem{anmerkung}{Anmerkung}
\newtheorem{annahme}{Annahme}
\input{02_linebreak}
该代码在 2018 年曾经有效(我用它撰写了我的学士论文),但现在我很难找出可能发生了什么变化。
任何帮助都值得感激。提前谢谢您!