将上标引用放在括号中

将上标引用放在括号中

为了满足期刊的要求,我想调整 REVTeX4.1 文档中当前的参考书目以:

  1. 在我的(上标)引用两边加上括号,这样读起来就是(1),,(4)和,(2,3,5)而不是1,,42,3,5

  2. 在参考书目中每个编号的参考文献周围加上括号,这样它们读起来都类似于(12)而不是12。如果可能的话,参考书目列表应该是非上标的,而文内引用是上标的(不是我的规则……是期刊的要求)。

我的MWE如下:

\documentclass[a4paper,twocolumn,       %   A4 paper, two columns
  nofootinbib,superscriptaddress,       %       
  aps,prb,citeautoscript, 10pt,         %   The prb style of RevTex uses superscript cross-references for citations
  eqsecnum,notitlepage,showkeys]{revtex4-1}

\usepackage{hyperref}   % Hyperref likes to be the last package included but putting it last breaks figure references!
\begin{document}
The manuscript elements have been formatted for you with LaTeX. 
References can be included such as \cite{R2006} or \cite{R2009}.
Multiple references are also handled \cite{R2007, R2002,CDCgirlGrowthCharts}.
\bibliographystyle{PAPER_IJAE_BIBTEX_plain}
\bibliography{PAPER_JSAE_template_BIBLIOGRAPHY}
\end{document}

包含PAPER_JSAE_template_BIBLIOGRAPHY.bib

@Article{R2007,
   Author="Another, J.  and van Alphabet, B.  and Master, M. A. ",
   Title="{{A}utomatic data is nice}",
   Journal="Med Image",
   Year="2007",
   Volume="11",
   Number="1",
   Pages="35--46",
   Month="Feb"
}
@mastersthesis{R2009,
    author    = "Matthew W. Author",
    title     = "Paper title here",
    school    = "University of Virginia",
    type     = "Master's thesis",
    address  = "",
    year      = "2007",
    month    = "",
    note     = "",
}
@online{CDCgirlGrowthCharts,
  author = {{National Center for Health Statistics}},
  title = {{CDC} Clinical Growth Charts},
  year = 2000,
  url = {http://www.cdc.gov/growthcharts/clinical_charts.htm},
  urldate = {30/09/2010}
  howpublished = {\url{http://www.cdc.gov/growthcharts/clinical_charts.htm}} 
}
@article{R2006,
   author = {Rabbit, Peter F  and Brown, J Charlie and Duck, Donald R},
   title = {Factors of growth},
   journal = {Journal of Surgery},
   volume = {41},
   number = {11},
   pages = {1854-1858},
   year = {2006}
}
@inproceedings{R2002,
   author = {Kane, M. and Freed, Y.},
   title = {Development for safety ({THUMS})},
   booktitle = {Proceedings of conference},
   year = {2002}
}

而我的PAPER_IJAE_BIBTEX_plain.bst实际上只是plain.bst- 不会影响编号(此处链接至文件)。我很乐意对 .bst 文件进行进一步的更改,但我似乎无法缩小影响我尝试更改的内容的范围。任何帮助都值得感激。

显示未带括号的 cites-bibs

答案1

您可以通过重新定义\NAT@biblabelnum\NAT@citesuperrevtex4-1内部使用natbib)来实现此目的:

\documentclass[a4paper,twocolumn,
  nofootinbib,superscriptaddress,  
  aps,prb,citeautoscript, 10pt,
  eqsecnum,notitlepage,showkeys]{revtex4-1}
\usepackage{filecontents}% just for the example
\usepackage{hyperref} 

\begin{filecontents*}{PAPER_JSAE_template_BIBLIOGRAPHY.bib}
@Article{R2007,
   Author="Another, J.  and van Alphabet, B.  and Master, M. A. ",
   Title="{{A}utomatic data is nice}",
   Journal="Med Image",
   Year="2007",
   Volume="11",
   Number="1",
   Pages="35--46",
   Month="Feb"
}
@mastersthesis{R2009,
    author    = "Matthew W. Author",
    title     = "Paper title here",
    school    = "University of Virginia",
    type     = "Master's thesis",
    address  = "",
    year      = "2007",
    month    = "",
    note     = "",
}
@online{CDCgirlGrowthCharts,
  author = {{National Center for Health Statistics}},
  title = {{CDC} Clinical Growth Charts},
  year = 2000,
  url = {http://www.cdc.gov/growthcharts/clinical_charts.htm},
  urldate = {30/09/2010}
}
@article{R2006,
   author = {Rabbit, Peter F  and Brown, J Charlie and Duck, Donald R},
   title = {Factors of growth},
   journal = {Journal of Surgery},
   volume = {41},
   number = {11},
   pages = {1854-1858},
   year = {2006}
}
@inproceedings{R2002,
   author = {Kane, M. and Freed, Y.},
   title = {Development for safety ({THUMS})},
   booktitle = {Proceedings of conference},
   year = {2002}
}
\end{filecontents*}
\makeatletter
\renewcommand\NAT@biblabelnum[1]{\textsuperscript{(#1)}}
\renewcommand\NAT@citesuper[3]{\ifNAT@swa
\unskip\hspace{1\p@}\textsuperscript{(#1)}%
   \if\relax#3\relax\else\ (#3)\fi\else (#1)\fi\endgroup}
\makeatother

\begin{document}

The manuscript elements have been formatted for you with LaTeX. 
References can be included such as \citealp{R2006} or \citep{R2009}.
Multiple references are also handled \cite{R2007, R2002,CDCgirlGrowthCharts}.
\bibliographystyle{PAPER_IJAE_BIBTEX_plain}
\bibliography{PAPER_JSAE_template_BIBLIOGRAPHY}

\end{document}

在此处输入图片描述

相关内容