![错误:未指定 \title](https://linux22.com/image/430455/%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9C%AA%E6%8C%87%E5%AE%9A%20%5Ctitle.png)
我试图使用大学的标准封面作为我的论文,但是出现错误:没有给出 \title,我不知道原因。
这是我在主文件中引入的“\frontpage”的代码。
% cover page generation
\newcommand{\frontPage}{
\begin{titlepage}
\begin{center}
\vspace*{1cm}
\includegraphics[width=3cm]{Logo_.png} \\[4ex]
\textsc{\LARGE \textbf{University of}} \\[2ex]
\textsc{\large \textbf{Department of Civil, Environmental and Architectural Engineering}} \\[2ex]
PhD Course in Architectural and Civil Engineering
\vfill
{\LARGE \textbf{\@title}}
\vfill
\begin{minipage}[t]{.49\textwidth}
\begin{flushleft}
\centering
\textbf{Supervisor:} \\
Doctor \@supervisor \\
\textbf{Co-Supervisors:} \\
Doctor J u \\
Doctor J S
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{.49\textwidth}
\begin{flushright}
\centering
\textbf{Author:} \\
\@candidate \\
(Ciclo XX)
\end{flushright}
\end{minipage}
\vfill
\textsc{Academic Year \@academicYear}
\vspace{1cm}
\end{center}
\end{titlepage}
}
答案1
frontpage 有一个命令\@title
,我之前没有定义过标题。所以添加\title{Name}
它就可以了。