natbib:\citenum 用逗号分隔,\citep 用冒号分隔

natbib:\citenum 用逗号分隔,\citep 用冒号分隔

我的小例子如下:

    \documentclass{article}

    \usepackage[round]{natbib}
    \newcommand{\citea}[1]{[\citenum{#1}]}
    %\setcitestyle{comma}

    \begin{document}

    Please ref \citep{efron1996bootstrap,tibshirani1996regression}
    or ref \citea{efron2004least,hastie2015statistical}

    \bibliographystyle{unsrtnat}
    %\nocite{*}
    \bibliography{test}

    \end{document}

其中test.bib包含

    @article{tibshirani1996regression,
        title={Regression shrinkage and selection via the lasso},
        author={Tibshirani, Robert},
        journal={Journal of the Royal Statistical Society: Series B (Methodological)},
        volume={58},
        number={1},
        pages={267--288},
        year={1996},
        publisher={Wiley Online Library}
    }

    @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}
    }

    @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}
    }

    @book{hastie2015statistical,
        title={Statistical learning with sparsity: the lasso and generalizations},
        author={Hastie, Trevor and Tibshirani, Robert and Wainwright, Martin},
        year={2015},
        address={Boca Raton},
        publisher={CRC press}
    }       

我知道\setcitestyle{comma}可以改变标点符号。但是,我希望保留 的默认冒号分隔方式,并使用修改后的 的\citep逗号分隔方式。\citea\citenum

相关内容