Неопределенная последовательность управления, но тот же cls \maketitle

Неопределенная последовательность управления, но тот же cls \maketitle

У меня возникла эта проблема при создании названия моей диссертации. Я знаю, что это происходит из-за того, что команда, созданная в файле .cls, отличается от объявлений, которые я использую в файле .tex, но я не могу найти проблему. Вот моя часть .tex:

\title{\Large{title}}
\crest{\includegraphics[width=40mm]{Figures/...}}
\author{My Name}
\collegeordept{Dept}
\university{Uni Name}

\supervisor{Supervisor name}
% DECLARATION
% Use the following command to change the declaration text:
%\renewcommand{\submittedtext}{INSERT NEW TEXT HERE}
\degree{Master's degree}
\degreedate{Date}

\begin{document}

% A page with the abstract and running title and author etc may be
% required to be handed in separately. If this is not so, comment
% the following 3 lines:
% \begin{abstractseparate}
%   \input{Abstract/abstract}
% \end{abstractseparate}
\begin{spacing}{1}
\maketitle
\end{spacing}

И часть .cls:

% TITLE PAGE
\renewcommand{\maketitle}{%
\pagenumbering{roman} % Sasa Tomic
\setcounter{page}{0}  % Sasa Tomic
\begin{alwayssingle}
  \renewcommand{\footnotesize}{\small}
  \renewcommand{\footnoterule}{\relax}
  \thispagestyle{empty}
%  \null\vfill
\begin{center}
  { \Huge {\bfseries {\@title}} \par}
  {\large \vspace*{30mm} {{\@crest} \par} \vspace*{20mm}}
  {{\Large \@author} \par}
  {\large \vspace*{1ex}
  {{\@collegeordept} \par}
  \vspace*{1ex}
  {{\@university} \par}
  \vspace*{20mm}
  {{\submittedtext} \par}
  \vspace*{1ex}
  {\it {\@degree} \par}
  \vspace*{2ex}
  {\@degreedate}}
 \end{center}
%     \null\vfill
 \end{alwayssingle}
}

Где я не прав? Спасибо всем.

Редактировать: ошибка

\maketitle ... } \vspace *{20mm} {{\submittedtext 
                                              } \par } \vspace *{1ex} 
{\...
l.109 \maketitle
            
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

Определяет.cls

\newcommand{\submittedtextt}{{\textit{Supervisor}}}

все же \maketitleиспользует

\submittedtext

Вам нужно исправить, .clsчтобы определить

\newcommand{\submittedtext}{{\textit{Supervisor}}}

Связанный контент