一位作者消失了

一位作者消失了

我想先列出原作者,然后再列出修订者。但是,使用以下代码,我完全失去了第一作者。请问有什么好方法可以解决这个问题吗?谢谢!

\documentclass[english]{article}

\usepackage{babel}

\begin{document}

\title{Title}
\author{S. S}
\author{Revised by T. H and X. S}
\date{\today}
\maketitle

\end{document}

在此处输入图片描述

答案1

一个解决方案是添加到现有\@maketitle命令中。

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\makeatletter
\def\redactor#1{\def\@redactor{#1}}
\def\@maketitle{% <-- NB this is the definition from article.cls; it may well not work (well) with other classes!
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
  \let \footnote \thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author\\ % <-- the \\ is added
        \@redactor%  <-- added; you could put the string 'Revised by' here, but it is less flexible
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em}
\makeatother

% Note: I'm inclined to include 'metadata' in the preamble, but it is not required in this case....
\title{Title}
\author{S. S}
\redactor{Revised by T. H and X. S}
\date{August 2015}
\begin{document}
% \title{Title}
% \author{S. S}
% \redactor{Revised by T. H and X. S}
% \date{\today}
\maketitle

\end{document}

相关内容