nanmu42 / CQUThesis

:pencil: 重庆大学毕业论文LaTeX模板---LaTeX Thesis Template for Chongqing University
https://www.ctan.org/pkg/cquthesis
Other
262 stars 65 forks source link

cquthesis.cls样式文件编译出错(line 339,340) #51

Closed JoshuaWu1997 closed 4 years ago

JoshuaWu1997 commented 4 years ago

xelatex和latexmk编译都出现fatal error: Package caption: bi-first' undefined in familiescap tion'. Package caption: bi-second' undefined in familiesca ption'.

cquthesis.cls: line 339-348

\captionsetup[bi-first]{bi-first}
\captionsetup[bi-second]{bi-second}
\DeclareCaptionOption{bi-first}[]{%
\def\tablename{\shorttablename}
\def\figurename{\shortfigurename}
}%bi-first
\DeclareCaptionOption{bi-second}[]{%
\def\tablename{\shorttablenameEN}
\def\figurename{\shortfigurenameEN}
}%bi-second

尝试交换DeclareCaptionOption和captionsetup语块位置,error解决。

nanmu42 commented 4 years ago

抱歉,我没法重现这个问题。目前的代码看起来是正常工作的。

下次遇到这个问题,也许你可以运行下make cleanall,有时候异常状态的中间文件(*.aux等)会导致错误。