错误:未定义的控制序列缺失 = 插入 \ifnum

错误:未定义的控制序列缺失 = 插入 \ifnum

我正在尝试使用 Taylor & Francis LaTeX 模板撰写论文。每当我引用作者时,都会出现此错误,尽管我已经在交互示例

    \documentclass[]{interact}
    \usepackage{epstopdf}
    \usepackage[longnamesfirst,sort]{natbib}
    \bibpunct[, ]{(}{)}{;}{a}{,}{,}
    \renewcommand\bibfont{\fontsize{10}{12}\selectfont}
     \theoremstyle{plain}% Theorem-like structures provided by amsthm.sty
    \newtheorem{theorem}{Theorem}[section]
    \newtheorem{lemma}[theorem]{Lemma}
    \newtheorem{corollary}[theorem]{Corollary}
    \newtheorem{proposition}[theorem]{Proposition}
    
    \theoremstyle{definition}
    \newtheorem{definition}[theorem]{Definition}
    \newtheorem{example}[theorem]{Example}
    
    \theoremstyle{remark}
    \newtheorem{remark}{Remark}
    \newtheorem{notation}{Notation}
\begin{document}
   
\section{Introduction}\label{intro}

The smartphone is considered an essential component of modern life \cite{perez2016power}.

\bibliographystyle{apacite}
\bibliography{interactapasample}
\end{document}

显示的内容

<to be read again>
}
l.70
I was expecting to see `<', `=', or `>'. Didn't.

! Missing number, treated as zero.
<to be read again> 
                   }

答案1

\bibliographystyle{apacite}不能直接与一起使用\usepackage[longnamesfirst,sort]{natbib}

如果\bibliographystyle{apacite}您要提交的场地可以接受(请查看提交指南以及 LaTeX 模板中/文档中可能的附加注释),请替换

\usepackage[longnamesfirst,sort]{natbib}
\bibpunct[, ]{(}{)}{;}{a}{,}{,}

\usepackage[natbibapa]{apacite}

使用natbib命令apacite

相关内容