\documentclass{thuthesis}
\begin{document}
\begin{definition}
道千乘之国,敬事而信,节用而爱人,使民以时
\end{definition}
\end{document}使用上述代码,出现环境未定义错误
我在 thuthesis.cls 中找到
\AtEndOfPackageFile*{amsthm}{%
\newtheoremstyle{thu}
{\z@}{\z@}
{\normalfont}{\z@}
{\normalfont\sffamily}{\thu@theorem@separator}
{0.5em}{}
\theoremstyle{thu}
\newtheorem{assumption}{\thu@assumption@name}[chapter]%
\newtheorem{definition}{\thu@definition@name}[chapter]%这表明需要加载特定宏包,模板才会进行适配。
查看 thuthesis-example.tex,发现其加载了 \input{thusetup},而 thusetup.tex 中包含了 \usepackage{amsthm},因此完整代码为
\documentclass{thuthesis}
\usepackage{amsthm}
\begin{document}
\begin{definition}
道千乘之国,敬事而信,节用而爱人,使民以时
\end{definition}
\end{document}
感谢您的提醒,已重新编辑。
@u37102 我粗略试验了一下,主要还是
thusetup.tex的问题,将这个文件\input进去就可以了