Latex 错误:\begin{appendices} 以 \end{document} 结束

Latex 错误:\begin{appendices} 以 \end{document} 结束

一切正常,直到我在附录中插入了一个表格

\documentclass[a4paper,12pt]{article}
    \makeatletter
    \let\@fnsymbol\@arabic
    \makeatother
\usepackage{geometry}
 \geometry{
 left=20mm,
 top=20mm,
 bottom=40mm
 }
\usepackage{amsmath}
\usepackage{mathtools}

\DeclarePairedDelimiter\abs{\lvert}{\rvert}%
\DeclarePairedDelimiter\norm{\lVert}{\rVert}%

\makeatletter
\newenvironment{mcases}[1][l]
 {\let\@ifnextchar\new@ifnextchar
  \left\lbrace
  \def\arraystretch{1.2}%
  \array{@{}l@{\quad}#1@{}}}
 {\endarray\right.}
\makeatother

% Swap the definition of \abs* and \norm*, so that \abs
% and \norm resizes the size of the brackets, and the 
% starred version does not.
\makeatletter
\let\oldabs\abs
\def\abs{\@ifstar{\oldabs}{\oldabs*}}
%
\let\oldnorm\norm
\def\norm{\@ifstar{\oldnorm}{\oldnorm*}}
\makeatother
\usepackage{stackrel}
\usepackage{lmodern}
\usepackage{mathrsfs}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{natbib}
\usepackage{arydshln}
\usepackage{fixmath}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{longtable}
\usepackage{answers}
\usepackage{enumerate}
\usepackage[T1]{fontenc}
\doublespacing
\usepackage[utf8]{inputenc}
\usepackage[titletoc,title]{appendix}
\usepackage{bm}
\usepackage{multirow}
\usepackage{cleveref}
\usepackage{algorithmic}
\usepackage[ruled, vlined, linesnumbered]{algorithm2e}
\usepackage[affil-it]{authblk}
\usepackage{float}
\renewcommand\Authfont{\fontsize{12}{14.4}\selectfont}
\renewcommand\Affilfont{\fontsize{9}{10.8}\itshape} 
\topmargin 0.0cm
\oddsidemargin 0.2cm
\textwidth 16cm 
\textheight 21cm
\footskip 1.0cm
\setlength{\affilsep}{0em}
\begin{document}
XXXXX




\begin{appendices}
\section{XX1}
xxxxxx
\section{XX2}
\begin{table}[ht]
\caption{some caption}
\begin{subtable}{.5\linewidth}
\caption{some caption}
\centering
\begin{tabular}{c c c}
\hline
$\hat{\tau}$ & $\hat{P}(\hat{\tau}|\bm{D})$ & $r_{T,\tau}$\\
\hline
$\ast\tau$& 0.998& 1\\
\hline
\end{tabular}
\end{subtable}%
\begin{subtable}{.5\linewidth}
\caption{some caption}
\centering
\begin{tabular}{c c c}
\hline
$\hat{\tau}$ & $\hat{P}(\hat{\tau}|\bm{D})$ & $r_{T,\tau}$\\
\hline
$\ast\tau$&0.992& 0.998\\
\hline
\end{tabular}
\end{subtable}
\end{table}
\normalsize\doublespace
\small \singlespace
\end{appendices}
\end{document}

当我删除表时,一切正常。表是从文件的先前位置复制的,并且在那里正常工作。这个表有什么问题?

答案1

如果删除这些行,\normalsize\doublespace \small \singlespace它将正确编译。它们在这种情况下确实毫无意义。

相关内容