如何在 revtex 4 中切换 PACS 和关键字的位置

如何在 revtex 4 中切换 PACS 和关键字的位置

我正在尝试向期刊提交一篇论文,他们希望在 PACS 编号之前显示关键字。我使用的模板是 revtex4,我几乎尝试了所有方法让关键字出现在 PACS 之前,但都没有成功,您能否就这个问题给我一些建议。这是我的编码副本:

\documentclass[jkps,preprint,fleqn,showkeys,showpacs]{revtex4}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{enumitem}  

\begin{document}
\setcounter{page}{0}
\title[]{atomic beam experiment}
\author{1st author}
\email{[email protected]}
\author{2nd author}
%\thanks{Fax: +82-2-554-1643}
\affiliation{Department of Physics}

\date[]{ September 2016}

\begin{abstract}
 *******************
\end{abstract}

\keywords{Atom beam experiment; qubit manipulation; Rb atom beam}

\pacs{42.50.Ex, 32.80.Wr, 32.80.-t; 32.10.Fn}

%the [jkps] is the journal of Korean physical society 
\end{document}

答案1

提供正确的样式文件应该是期刊编辑的职责。如果他们不提供,而只是要求您使用您喜欢的任何类,您可以按照以下方式修复 PACS 和关键字的顺序。

\documentclass[preprint,fleqn,showkeys,showpacs]{revtex4}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{enumitem}
\usepackage{etoolbox}

\makeatletter
% the macro for printing the PACS adds a vertical space before them
\patchcmd\frontmatter@PACS@format{\addvspace{11\p@}}{}{}{}% remove the space
% add the vertical space before the keywords
\pretocmd\frontmatter@keys@format{\addvspace{11\p@}}{}{}
% switch the positions between PACS and keywords
\patchcmd{\titleblock@produce}
  {\@pacs@produce\@pacs\@keywords@produce\@keywords}
  {\@keywords@produce\@keywords\@pacs@produce\@pacs}
  {}{}
\makeatother

\begin{document}
\title[]{atomic beam experiment}
\author{1st author}
\email{[email protected]}
\author{2nd author}
%\thanks{Fax: +82-2-554-1643}
\affiliation{Department of Physics}

\date[]{ September 2016}

\begin{abstract}
 *******************
\end{abstract}

\keywords{Atom beam experiment; qubit manipulation; Rb atom beam}

\pacs{42.50.Ex, 32.80.Wr, 32.80.-t; 32.10.Fn}

\maketitle

\end{document}

在此处输入图片描述

答案2

完整的标题,包括关键字,只有当命令\maketitle执行命令时排版,见下文。关键字将出现PACS,但不要试图改变这一点(你希望它们出现),因为顺序是由发布者而不是作者定义的。附带说明一下,您不必重置计数器page,这是自动完成的。

\documentclass[jkps,preprint,fleqn,showkeys,showpacs]{revtex4}
\begin{document}

\title[]{atomic beam experiment}
\author{1st author}
\email{[email protected]}
\author{2nd author}
\affiliation{Department of Physics}
\date[]{ September 2016}
\begin{abstract}
  A paper on atomic beam experiments.
\end{abstract}
\keywords{Atom beam experiment; qubit manipulation; Rb atom beam}
\pacs{42.50.Ex, 32.80.Wr, 32.80., 32.10.Fn}

\maketitle

\end{document}

在此处输入图片描述

答案3

我不确定您是否使用了正确的期刊文档类别。该revtex类别是为美国物理学会期刊设计的,但是您想提交给韩国物理学会期刊。这就是为什么revtex无法识别该选项jkps并在日志中报告

LaTeX Warning: Unused global option(s):
    [jkps].

仍然可以切换 PACS 和关键字的顺序。因此,我从 复制了标题宏的定义,revtex4.cls并切换了行\@keywords@produce\@keywords\@pacs@produce\@pacs

\documentclass[preprint,showkeys,showpacs]{revtex4}

\makeatletter
\def\titleblock@produce{%
 \begingroup
  \let\footnote\footnote@latex
  \let\@makefnmark\@makefnmark@latex
  \let\@footnotemark\@footnotemark@latex
  \let\thefootnote\frontmatter@thefootnote
  \global\c@footnote\z@
  \let\@makefnmark\frontmatter@makefnmark
  \frontmatter@setup
  \thispagestyle{titlepage}\label{FirstPage}%
  \frontmatter@title@produce
  \groupauthors@sw{%
   \frontmatter@author@produce@group
  }{%
   \frontmatter@author@produce@script
  }%
  \frontmatter@RRAPformat{%
   \expandafter\produce@RRAP\expandafter{\@date}%
   \expandafter\produce@RRAP\expandafter{\@received}%
   \expandafter\produce@RRAP\expandafter{\@revised}%
   \expandafter\produce@RRAP\expandafter{\@accepted}%
   \expandafter\produce@RRAP\expandafter{\@published}%
  }%
  \frontmatter@abstract@produce
  \@keywords@produce\@keywords
  \@pacs@produce\@pacs
  \par
  \frontmatter@finalspace
 \endgroup
}%
\makeatother

\begin{document}

\title{Atomic Beam Experiment}
\author{A. U. Thor}
\email{[email protected]}
\affiliation{Department of Physics}

\begin{abstract}
\input lorem
\end{abstract}

\keywords{Atom beam experiment; qubit manipulation; Rb atom beam}

\pacs{42.50.Ex, 32.80.Wr, 32.80.-t; 32.10.Fn}

\maketitle

\end{document}

在此处输入图片描述

相关内容