格式化 revtex 4 标题页

格式化 revtex 4 标题页

此代码使目录显示在标题和摘要上方。我希望两者在同一页上。请帮忙。

\documentclass[aps,prl,dvipsnames] {revtex4-1}
\usepackage[toc,page]{appendix}
%(and other packages relevant to my document)
\begin{document}
\title{Radiotherapy Rotation}
\author{Saoirse Conroy}
\date{Feb 2023}
\begin{abstract}
\centering
Please see ``references" for note to which competency/ies a section is fulfilling, any academic references or acknowledgements will be written in the text where appropriate instead.
\end{abstract}
\tableofcontents
\maketitle
\pagebreak

答案1

标题和摘要是在 时排版的\maketitle,而不是使用相关宏时,因此需要\tablecontents在 之后\maketitle

随着最近revtex4-2这就是所需的一切

\documentclass[aps,prl,dvipsnames] {revtex4-2}
\usepackage[toc,page]{appendix}
%(and other packages relevant to my document)
\begin{document}
\title{Radiotherapy Rotation}
\author{Author}
\date{Feb 2023}
\begin{abstract}
\centering
Please see ``references" for note to which competency/ies a section is fulfilling, any academic references or acknowledgements will be written in the text where appropriate instead.
\end{abstract}
\maketitle
\tableofcontents
\section{Foo}
\section{Bar}
\end{document}

revtex4-1,课程选项notitlepage也是必填项。

\documentclass[aps,prl,dvipsnames,notitlepage] {revtex4-1}
\usepackage[toc,page]{appendix}
%(and other packages relevant to my document)
\begin{document}
\title{Radiotherapy Rotation}
\author{Author}
\date{Feb 2023}
\begin{abstract}
\centering
Please see ``references" for note to which competency/ies a section is fulfilling, any academic references or acknowledgements will be written in the text where appropriate instead.
\end{abstract}
\maketitle
\tableofcontents
\section{Foo}
\section{Bar}
\end{document}

答案2

\documentclass[aps,prl,dvipsnames,notitlepage] {revtex4-1}
\usepackage[toc,page]{appendix}

\makeatletter
\newcommand*{\toccontents}{\@starttoc{toc}}
\makeatother

\begin{document}
\title{Radiotherapy Rotation}
\author{Saoirse Conroy}
\date{Feb 2023}
\begin{abstract}
\centering
Please see ``references" for note to which competency/ies a section is fulfilling, any academic references or acknowledgements will be written in the text where appropriate instead.
\end{abstract}

\maketitle
\toccontents

\pagebreak

相关内容