如何给我的论文添加第二个标题?

如何给我的论文添加第二个标题?

我正在写论文,需要两个封面,一个是英文标题,另一个是西班牙文标题。我正在使用模板,我正在使用此代码。

% Variables for the title page in displayed order
\providecommand{\theinstitute}{University of Barcelona}


\providecommand{\thetitlelabel}{Topic:}
\providecommand{\thetitle}{Shocks and Frictions in the Spanish economy}
\providecommand{\thesubtitle}{A DSGE model}

\providecommand{\theauthorlabel}{By:}
\providecommand{\theauthor}{Name}
\providecommand{\theauthoridlabel}{ID}
\providecommand{\theauthorid}{xxxxxxxxx}
\providecommand{\theauthoremail}{\url{mail}}

\providecommand{\theadvisorlabel}{Advisor:}
\providecommand{\theadvisor}{Professor...}
\providecommand{\thecity}{city}

% leave empty for actual compilation of images, use "draft" for faster compilation while in draft state
\providecommand{\thedraft}{draft}

\maketitle

问题是我需要西班牙语也是一样,所以我想我需要创建类似的东西:

\makespanishtitle

但我不知道该怎么做。

在此先感谢您的帮助!

答案1

很大程度上取决于您的文档类别。您能提供一个最小工作示例吗?几行代码,尽可能短,可以复制并粘贴到 overleaf 中?

假设您使用该类scrartcl,您只需再次调用所有相关的宏,如下所示:

  \documentclass[titlepage]{scrartcl}

  \begin{document}
  % Make english title
  \title{English Title}
  \subtitle{Hello World}
  \maketitle

  % Make spanish title
  \title{Título español}
  \subtitle{Hola Mundo}
  \maketitle

  The Text
  \end{document}

相关内容