我想让作者的姓名显示在标题中,如下图所示。这里,作者的姓名及其所属机构和电子邮件地址显示在每一行中。
另外,我想定义一个简短的标题。例如,如果完整标题是“推荐系统中深度强化学习的调查:系统评价和未来方向”,我想定义一个简短的标题,例如“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}
如果地址或机构较大,则每个作者将占一行。