如何在標題中加入作者的姓氏和簡稱?

如何在標題中加入作者的姓氏和簡稱?

我希望標題中顯示作者姓名,如下圖所示。在這裡,每行顯示作者姓名及其所屬單位和電子郵件地址。 在此輸入影像描述

另外,我想定義一個簡短的標題。例如,如果完整標題是“推薦系統中深度強化學習的調查:系統回顧和未來方向”,我想定義一個簡短的標題,例如“RS 中的 DRL 服務”。在標題中,應顯示作者的姓氏和短標題。例如,在這種樣式中,在偶數頁中,頁首是這樣的:

在此輸入影像描述

並且,在奇數頁中,我們有:

在此輸入影像描述

我搜索並找到了這個問題,但又不同。

'''

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage{commath}   % For use of abs   >>> \abs{a}
\usepackage{appendix}
\usepackage{amsthm}    % To add a box at the end of the proof    \qed
\usepackage{setspace}  % To add space between lines \setstretch{1.25}
\usepackage{natbib}

\usepackage[a4paper, left=0.9in, right=0.9in, top=1in, bottom=1in, footskip=0.25in]{geometry}
%\usepackage[a4paper, left=0.1in, right=0.2in, top=1in, bottom=1in, margin=1in,footskip=0.25in]{geometry}
\usepackage{hyperref,xcolor}
\DeclareMathOperator{\Tr}{tr}
\newtheorem{assumption}{Assumption}
\hypersetup{
    colorlinks=true,
    linkcolor=red,
    urlcolor=red,
    linktoc=all,
    citecolor=red
           }
\usepackage{apptools}
\AtAppendix{\counterwithin{lemma}{section}}
%%%%%%%%%%%%%%% For writing algorithms %%%%%%%%%%%%%%%
\usepackage{xcolor}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
%%% Coloring the comment as blue
\newcommand\mycommfont[1]{\footnotesize\ttfamily\textcolor{blue}{#1}}
\SetCommentSty{mycommfont}

\SetKwInput{KwInput}{Input}                % Set the Input
\SetKwInput{KwOutput}{Output}              % set the Output



\setstretch{1.35}

 %\bibpunct[, ]{(}{)}{,}{a}{}{,}%
 \def\bibfont{\small}%
 \def\bibsep{\smallskipamount}%
 \def\bibhang{24pt}%
 \def\newblock{\ }%
 \def\BIBand{and}%

%% Setup of theorem styles. Outcomment only one.
%% Preferred default is the first option.
\TheoremsNumberedThrough     % Preferred (Theorem 1, Lemma 1, Theorem 2)
%\TheoremsNumberedByChapter  % (Theorem 1.1, Lema 1.1, Theorem 1.2)
\ECRepeatTheorems
\newtheorem{observation}{Observation}
\newtheorem{proposition}{Proposition}
\newtheorem{definition}{Definition}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{corollary}{Corollary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hypersetup{
    colorlinks=true,% make the links colored
}
\definecolor{myblue}{RGB}{54, 58, 202}
\usepackage[toc,page]{appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{A Survey of Deep Reinforcement Learning in Recommender Systems: A Systematic Review and Future Directions}
\author{Xiaocong Chen, Lina Yao, Julian McAuley, Guanglin Zhou, Xianzhi Wang}

\date{\today}

\begin{document}

\maketitle
{
  \hypersetup{linkcolor=myblue}\tableofcontents}
\newpage
\section{Introduction}
\end{document}

答案1

這不是一個完整的解決方案,但我希望它可以幫助其他人幫助您。使用以下程式碼,您可以格式化標題下的作者。

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, left=0.9in, right=0.9in, top=1in, bottom=1in, footskip=0.25in]{geometry}
\usepackage{lipsum} % just for generating dummy text
\usepackage{fancyhdr}
\usepackage{ifoddpage}


% Set the title, authors, and short title
\title{A Survey of Deep Reinforcement Learning in Recommender Systems: A Systematic Review and Future Directions}
\author{
  Xiaocong Chen\\
  Institution\\
  Address\\
  \texttt{email}
  \and
  Lina Yao\\
  Institution\\
  Address\\
  \texttt{email}
  \and
  Julian McAuley\\
  Institution\\
  Address\\
  \texttt{email}
  \and
  Guanglin Zhou\\
  Institution\\
  Address\\
  \texttt{email}
  \and
  Xianzhi Wang\\
  Institution\\
  Address\\
  \texttt{email}
}
\newcommand{\shortauthor}{Chen et al.}
\newcommand{\shorttitle}{A Survey of DRL in RS}

\begin{document}

\maketitle

\thispagestyle{empty} % suppress page number in first page

\begin{abstract}
This is the abstract.
\end{abstract}

\clearpage

\setcounter{page}{1} % start page numbering from 1
\section{Introduction}
\lipsum[1-30] % dummy text

\end{document}

在此輸入影像描述

如果地址或機構較大,則每位作者將排成一行。

答案2

除了scd的回答之外:

為了在左頁和右頁上獲得不同的標題,您需要以下選項twoside

\documentclass[11pt,twoside]{article}

或者

\usepackage[twoside]{fancyhdr}

您需要的額外命令是:

\pagestyle{fancy}
\fancyhead[EL,OR]{\thepage}
\fancyhead[OL,ER]{\shortauthor: \shorttitle}

在此輸入影像描述

在此輸入影像描述

相關內容