bibtex:引用两位以上作者的多篇论文,第一作者姓氏相同

bibtex:引用两位以上作者的多篇论文,第一作者姓氏相同

下面是我给出的小示例:

    \documentclass{article}

    \usepackage[hidelinks]{hyperref}
    \usepackage[sort&compress,numbers]{natbib}
    \setcitestyle{super}
    \newcommand{\citea}[1]{\citeauthor{#1}~\textsuperscript{\cite{#1}}}

    \begin{document}

    For more details,
    please see \citet{efron1996bootstrap,efron2001empirical,efron2004least}.

    For more details,
    please see \citea{efron1996bootstrap,efron2001empirical,efron2004least}.

    \bibliographystyle{unsrtnat}
    \nocite{*}
    \bibliography{efron}

    \end{document}

参考书目文件 efron.bib 位于

    @article{efron2004least,
    title={Least angle regression},
    author={Efron, Bradley and Hastie, Trevor and Johnstone, Iain and Tibshirani, Robert},
    journal={The Annals of Statistics},
    volume={32},
    number={2},
    pages={407--499},
    year={2004},
    publisher={Institute of Mathematical Statistics}
    }

    @article{efron2001empirical,
    title={Empirical Bayes analysis of a microarray experiment},
    author={Efron, Bradley and Tibshirani, Robert and Storey, John D and Tusher, Virginia},
    journal={Journal of the American Statistical Association},
    volume={96},
    number={456},
    pages={1151--1160},
    year={2001},
    publisher={Taylor \& Francis}
    }


    @article{efron1996bootstrap,
    title={Bootstrap confidence levels for phylogenetic trees},
    author={Efron, Bradley and Halloran, Elizabeth and Holmes, Susan},
    journal={Proceedings of the National Academy of Sciences},
    volume={93},
    number={23},
    pages={13429--13429},
    year={1996},
    publisher={National Acad Sciences}
    }

我想证明

Efron et al. $^{[1–3]}$

而默认\citet{}为逗号提供了意外的位置,并且新定义的\citea{}给出

Efron et al., Efron et al., Efron et al. $^{[1–3]}$

具有多个不紧凑的Efron 等人

如果我们不想手动输入

    For more details,
    please see Efron et al. \cite{efron1996bootstrap,efron2001empirical,efron2004least}.

我们可以通过修改来做什么\citet或重新定义\citea

答案1

像这样吗?

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{efron.bib}
@article{efron2004least,
title  ={Least angle regression},
author ={Efron, Bradley and Hastie, Trevor and Johnstone, Iain and Tibshirani, Robert},
journal={The Annals of Statistics},
volume ={32},
number ={2},
pages  ={407--499},
year   ={2004},
publisher={Institute of Mathematical Statistics},
}

@article{efron2001empirical,
title  ={Empirical {Bayes} analysis of a microarray experiment},
author ={Efron, Bradley and Tibshirani, Robert and 
        Storey, John D. and Tusher, Virginia},
journal={Journal of the American Statistical Association},
volume ={96},
number ={456},
pages  ={1151--1160},
year   ={2001},
publisher={Taylor \& Francis},
}

@article{efron1996bootstrap,
title  ={Bootstrap confidence levels for phylogenetic trees},
author ={Efron, Bradley and Halloran, Elizabeth and Holmes, Susan},
journal={Proceedings of the National Academy of Sciences},
volume ={93},
number ={23},
pages  ={13429--13429},
year   ={1996},
publisher={National Acad Sciences},
}
\end{filecontents}

\documentclass{article}
\usepackage[sort&compress,super,square]{natbib}
\bibliographystyle{unsrtnat}
\newcommand\citea[2]{\citeauthor{#1}\cite{#2}}

\begin{document}
\citea{efron1996bootstrap}{efron1996bootstrap, efron2001empirical, efron2004least}.
\bibliography{efron}.
\end{document}

相关内容