\maketitle 在 LaTeX 中与组合一起使用多次

问题描述

我正在尝试为会议摘要书制作 .tex 模板。我希望模板是可编译的,因此参与者可以在提交之前单独查看他们的摘要。而且我想用这些文件来编译带有目录和标题摘要书。

所以,我有文件

\documentclass[12pt]{combine}
\usepackage{authblk}


\begin{document}
    \tableofcontents
    
    \begin{papers}

        \coltocauthor{Crist\'{o}bal Josevich Junta,Fyodor Simeonovich Kivrin}
        \coltoctitle{Title of the first abstract}
        \import{first}

        \coltocauthor{Roman Oyra-Oyra}
        \coltoctitle{Title of the second abstract}
        \import{second}

    \end{papers} 
    
\end{document}

还有两个导入的文件是:

\documentclass{article}
\usepackage{authblk}
\title{Title of the first abstract}

\author[1]{Crist\'{o}bal Josevich Junta}
\author[2]{Fyodor Simeonovich Kivrin}

\affil[1]{Department of the Meaning of Life}
\affil[2]{Department of Linear Happiness}


\begin{document}

    \maketitle
    
    Text of the first abstract. 

\end{document}

\documentclass{article}
\usepackage{authblk}

\title{Title of the second abstract}
\author[1]{Roman Oyra-Oyra}
\affil[1]{Laboratory of the most unexpected sciences}


\begin{document}
    
    \maketitle

    Text of the second abstract. 

\end{document}

问题是第二个 \maketitle 不打印作者姓名及其隶属关系。

我尝试使用重新定义的 \settitle 而不是 \maketitle

\makeatletter
\newcommand{\settitle}{\@maketitle}
\makeatother

它没有帮助。

另外,我尝试了 titling 包,结果没有变化。

我想要 \maketitle 打印名称和单位,或者找出自动为每个摘要制作标题的更好方法

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)