微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决\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 举报,一经查实,本站将立刻删除。