如何从一系列上标引用中删除内部括号?

如何从一系列上标引用中删除内部括号?

我使用的cite包如下

\usepackage[superscript,biblabel]{cite}

但是,当我尝试引用多篇文章时,范围包括内部括号,如下所示。

有人能告诉我如何删除这些以便上标仅包含 吗6--8?我正在使用IEEEtran conference文档类,并且IEEEtran bibliographystyleif 与它有任何关系。

谢谢!

编辑

根据请求,我附上了该文件的一个工作示例。

\documentclass[11pt,conference]{IEEEtran}

\usepackage[cmex10]{amsmath}
\usepackage[superscript,biblabel]{cite}

\begin{document}

\section{Introduction}

Several tools rely on this identification of discordant read pairs to detect SV~\cite{alkan2011sv,rausch2012delly,Layer2014lumpy}.

\bibliographystyle{IEEEtran}
\bibliography{svdetect_refs}

\end{document}

.bib 文件中的相关引用:

@article{alkan2011sv,
      title={Genome structural variation discovery and genotyping},
      author={Alkan, Can and Coe, Bradley P and Eichler, Evan E},
      journal={Nature Reviews Genetics},
      volume={12},
      number={5},
      pages={363--376},
      year={2011},
      publisher={Nature Publishing Group}
    }

@article{rausch2012delly,
      title={DELLY: structural variant discovery by integrated paired-end and split-read analysis},
      author={Rausch, Tobias and Zichner, Thomas and Schlattl, Andreas and St{\"u}tz, Adrian M and Benes, Vladimir and Korbel, Jan O},
      journal={Bioinformatics},
      volume={28},
      number={18},
      pages={i333--i339},
      year={2012},
      publisher={Oxford Univ Press}
    }

@article{Layer2014lumpy,
      doi = {10.1186/gb-2014-15-6-r84},
      url = {http://dx.doi.org/10.1186/gb-2014-15-6-r84},
      year  = {2014},
      publisher = {Springer Science $\mathplus$ Business Media},
      volume = {15},
      number = {6},
      pages = {R84},
      author = {Ryan M Layer and Colby Chiang and Aaron R Quinlan and Ira M Hall},
      title = {{LUMPY}: a probabilistic framework for structural variant discovery},
      journal = {Genome Biol}
    }

答案1

加载后cite,更新\citedash--(默认为]--[):

在此处输入图片描述

\documentclass[conference]{IEEEtran}

\usepackage{filecontents}
\begin{filecontents*}{svdetect_refs.bib}
@article{alkan2011sv,
      title={Genome structural variation discovery and genotyping},
      author={Alkan, Can and Coe, Bradley P and Eichler, Evan E},
      journal={Nature Reviews Genetics},
      volume={12},
      number={5},
      pages={363--376},
      year={2011},
      publisher={Nature Publishing Group}
    }

@article{rausch2012delly,
      title={DELLY: structural variant discovery by integrated paired-end and split-read analysis},
      author={Rausch, Tobias and Zichner, Thomas and Schlattl, Andreas and St{\"u}tz, Adrian M and Benes, Vladimir and Korbel, Jan O},
      journal={Bioinformatics},
      volume={28},
      number={18},
      pages={i333--i339},
      year={2012},
      publisher={Oxford Univ Press}
    }

@article{Layer2014lumpy,
      doi = {10.1186/gb-2014-15-6-r84},
      url = {http://dx.doi.org/10.1186/gb-2014-15-6-r84},
      year  = {2014},
      publisher = {Springer Science $\mathplus$ Business Media},
      volume = {15},
      number = {6},
      pages = {R84},
      author = {Ryan M Layer and Colby Chiang and Aaron R Quinlan and Ira M Hall},
      title = {{LUMPY}: a probabilistic framework for structural variant discovery},
      journal = {Genome Biol}
    }
\end{filecontents*}
\usepackage[superscript]{cite}
\renewcommand{\citedash}{--}% Default is ]--[
\begin{document}

\section{Introduction}

Several tools rely on this identification of discordant read pairs to detect SV~\cite{alkan2011sv,rausch2012delly,Layer2014lumpy}.

\bibliographystyle{IEEEtran}
\bibliography{svdetect_refs}

\end{document}

对于类似于(而不是默认的)compress的 ed 输出,你可以使用[X]-[Y]X]-[Y\@cite@netoolbox

\usepackage[superscript]{cite}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@cite@n}% <cmd>
  {\let\@celt\@compress@cite\@cite@list\@h@ld}% <search>
  {\citeleft\let\@celt\@compress@cite\@cite@list\@h@ld\citeright}% <replace>
  {}{}% <success><failure>
\makeatother

上述补丁将\citeleft(默认为[)和\citeright(默认为])插入到适当的位置。

在此处输入图片描述

相关内容