RevTEX 4-2 连续论文引用不会压缩

RevTEX 4-2 连续论文引用不会压缩

我目前正在使用 AIP 的模板撰写论文。他们使用 Revtex4-2 作为文档类别,并带有额外的内容(方括号中的内容,我不知道该术语)。我需要引用几篇连续的论文。指导声称该\cite命令会自动折叠引用编号,例如[1,2,3,5] -> [1-3,5]但这对我来说不起作用。这是我的 MWE:

\documentclass[%
 aip,
% jmp,
% bmf,
% sd,
% rsi,
cp,  % Conference Proceedings
 amsmath,amssymb,%nobibnotes,
% preprint,%
 reprint,%
%author-year,%
%author-numerical,%
]{revtex4-2}

\usepackage{graphicx}% Include figure files
\usepackage{dcolumn}% Align table columns on decimal point
\usepackage{bm}% bold math
%\usepackage[mathlines]{lineno}% Enable numbering of text and display math
%\linenumbers\relax % Commence numbering lines

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%% Loads a Times-like font. You can also load
%% {newtxtext,newtxtmath}, but not {times}, 
%% {txfonts} nor {mathtpm} as these packages
%% are obsolete and have been known to cause problems.
\usepackage{mathptmx} 

\begin{document}

\title{Title}% Force line breaks with \\

\author{Author's Name} % Write as First name Surname
 \email[Corresponding author: ]{[email protected]}
\affiliation{
  Replace this text with an author's affiliation
  (use complete addresses, including country name or code).% Force line breaks with \\ if necessary
}


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

\maketitle

\section{INTRODUCTION}

In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}.
\\
In the last couple of decades, the dynamics of magnetic \cite{zhu2012study, handoko2015scanning, zhang2017spin, metaxas2007creep}.

\section{Conclusion}

In this section we welcome you to include a summary of the end results of your research.

\begin{acknowledgments}
This is something to acknowledge.
\end{acknowledgments}

\nocite{*}
\bibliography{aipsamp}% Produces the bibliography via BibTeX.

\end{document}
%
% ****** End of file aipsamp.tex ******

这是我的 aipsamp.bib

@article{zhu2012study,
  title={The study of perpendicular magnetic anisotropy in CoFeB sandwiched by MgO and tantalum layers using polarized neutron reflectometry},
  author={Zhu, T and Yang, Y and Yu, RC and Ambaye, H and Lauter, V and Xiao, JQ},
  journal={Applied Physics Letters},
  volume={100},
  number={20},
  pages={202406},
  year={2012},
  publisher={American Institute of Physics}
}

@article{handoko2015scanning,
  title={Scanning transmission X-ray microscopy study of the stretched magnetic-domain structure of Co/Pt multilayers under an in-plane field},
  author={Handoko, Djati and Quach, Duy-Truong and Lee, Sang-Hyuk and Shim, Je-Ho and Kim, Dong-Hyun and Lee, Kyung-Min and Jeong, Jong-Ryul and Kim, Namdong and Shin, Hyun-Joon},
  journal={Journal of the Korean Physical Society},
  volume={66},
  pages={1732--1735},
  year={2015},
  publisher={Springer}
}

@article{zhang2017spin,
  title={Spin-orbit-torque-induced magnetic domain wall motion in Ta/CoFe nanowires with sloped perpendicular magnetic anisotropy},
  author={Zhang, Yue and Luo, Shijiang and Yang, Xiaofei and Yang, Chang},
  journal={Scientific reports},
  volume={7},
  number={1},
  pages={2047},
  year={2017},
  publisher={Nature Publishing Group UK London}
}


@article{szambolics2009domain,
  title={Domain wall motion in ferromagnetic systems with perpendicular magnetization},
  author={Szambolics, Helga and Toussaint, J-Ch and Marty, Alain and Miron, Ioan Mihai and Buda-Prejbeanu, LD},
  journal={Journal of magnetism and magnetic materials},
  volume={321},
  number={13},
  pages={1912--1918},
  year={2009},
  publisher={Elsevier}
}

@article{metaxas2007creep,
  title={Creep and flow regimes of magnetic domain-wall motion in ultrathin Pt/Co/Pt films with perpendicular anisotropy},
  author={Metaxas, PJ and Jamet, JP and Mougin, A and Cormier, M and Ferr{\'e}, J and Baltz, Vincent and Rodmacq, B and Dieny, B and Stamps, RL},
  journal={Physical review letters},
  volume={99},
  number={21},
  pages={217208},
  year={2007},
  publisher={APS}
}

我认为需要先引用参考文献,这样在下一次引用之后它才会起作用。因此下面多了一个句子的副本。但仍然什么也没发生。有人能帮我吗?如果我的英语很乱,请原谅。

免责声明:我正在使用 Overleaf。项目中只有两个文件,主.tex文件和aipsamp.bib文件。

答案1

引用压缩在 REVTeX 中通常有效,并且适用于非 AIP 样式以及根子aip样式,但您在使用AIP 子样式的选项时,会停止从到 的cp引用压缩。由于[1,2,3,5][1-3,5]REVTeX 4.2 的 AIP 子样式作者指南表示指定 AIP 期刊样式的正确类选项确实是aip,cp,自然的推论是使用未压缩的引文是 AIP 会议论文集的正确样式。

不幸的是,在 AIP 会议论文集中没有提到这一特定行为REVTeX 4.2 的 AIP 子样式作者指南(实际上根本没有提到 AIP 类选项cp),如果您认为这是一个错误,则应将其标记(特定于 AIP 子样式)到 AIP。

省略cpclass 选项将提供压缩引用,但这显然会改变文档的外观,同样,省略aipclass 选项似乎会导致cp忽略 class 选项并生成标准aps样式的文档。

单个参考书目条目中的多个参考文献(REVTeX 4.2 作者指南第 VIII.5 节)在和下有效aip,cp,因此您可以改用 来\cite{zhu2012study,*handoko2015scanning,*zhang2017spin, szambolics2009domain, metaxas2007creep}生成[1,2,3]其中1是包含三个参考文献zhu2012studyhandoko2015scanning和的单个参考书目条目zhang2017spin,这将构成后续块[1,3]

可以覆盖 class 选项的设置,cp以强制压缩引用

\makeatletter
\def\NAT@cmprs{\@ne}
\makeatother

答案2

如果有人需要,我会在这里写下我的技巧。所以我使用了\vphantom。我相信你可以在其他地方找到有关该命令的详细信息,并且有比我更好的解释。基本上,它会隐藏文本(包括文本水平宽度),但文件仍然知道它的存在(抱歉没有更好的词)。

我写的

In the last couple of decades, the dynamics of magnetic. \vphantom{\cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}}

然后我[1-5]在句子末尾添加

In the last couple of decades, the dynamics of magnetic [1-5]. \vphantom{\cite{zhu2012study, handoko2015scanning, zhang2017spin, szambolics2009domain, metaxas2007creep}} Next sentence ...

幸运的是,我正在撰写的论文没有那么多可压缩的引用,所以我可以这样做。如果有人有更好的办法,请告诉我们。

相关内容