\documentclass{article}
\usepackage{amssymb, amsfonts, stmaryrd,fancyhdr,amsmath,amsthm,amsbsy,amsfonts, titletoc}
\usepackage{fnpct} % I used following package for footnotes when using \footnote{text1}\footnote{text2} instead of using \footnote{text1}$^{,}$\footnote{text2}
% I think this is the reason I got Error for
%... \@begindocumenthook ...ent@language \fi \expanded ... break here .... {\noexpand \forcsvlist {\n...
% =================== main document =======================
\begin{document}
{\Large\bf my title is here}\\
\centerline{Author \footnote{Address1}\footnote{Address2}}
\end{document}
输出:
! Undefined control sequence.
\@begindocumenthook ...ent@language \fi \expanded
{\noexpand \forcsvlist {\n...
l.46 \begin{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
答案1
\expanded
已经在 luatex 中可用了一段时间,但去年才添加到 pdftex 和 xetex 中,因此您需要更新与 texmaker 一起使用的 tex 发行版(或使用不使用该命令的适当的旧宏集)