\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}
The Output:
! 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.
\expandednot\@begindocumenthook– David Carlisle Jun 08 '20 at 16:00