定制 plainnat.bst 以使引用以特定格式显示

定制 plainnat.bst 以使引用以特定格式显示

我使用 Bibtex 和 plainnat 与 Natbib 结合使用,并且我希望对 plainnat 进行一些自定义。我的测试示例如下:

\documentclass{article}
\usepackage[numbers]{natbib}

\begin{document}
Hello, Latex!

\bibliographystyle{plainnat}
\nocite{*}
\bibliography{test}

并且书目文件 test.bib 是

@Book{hastie2009elements,
Title     = {The elements of statistical learning (second edition)},
Author    = {Hastie, Trevor and Tibshirani, Robert and Friedman, Jerome},
address = {New York},
Publisher = {Springer},
Year      = {2009}
}
@Article{beck2009fast,
Title     = {A fast iterative shrinkage-thresholding algorithm for linear inverse problems},
Author    = {Beck, Amir and Teboulle, Marc},
Journal   = {SIAM Journal on Imaging Sciences},
Number    = {1},
Pages     = {183--202},
Volume    = {2},
Year      = {2009},
Publisher = {SIAM}
}
@Article{becker2011nesta,
Title     = {NESTA: A fast and accurate first-order method for sparse recovery},
Author    = {Becker, Stephen and Bobin, J{\'e}r{\^o}me and Cand{\`e}s, Emmanuel J},
Journal   = {SIAM Journal on Imaging Sciences},
Number    = {1},
Pages     = {1--39},
Volume    = {4},
Year      = {2011},
Publisher = {SIAM}
}
@Article{EfronB2004,
Title     = {Least angle regression},
Author    = {Efron, Bradley and Hastie, Trevor and Johnstone, Iain and Tibshirani, Robert},
Journal   = {The Annals of Statistics},
Number    = {2},
Pages     = {407--499},
Volume    = {32},
Year      = {2004},
Publisher = {Institute of Mathematical Statistics}
}

我想要改变的是:

(1)将作者姓名显示为:姓氏,名字的首字母

(2)最后一位作者前没有“and”,只有一个“,”就像其他作者一样

(3)删除每个参考文献末尾的句号(.)

(4)对于书籍条目,将“出版商,地址”更改为“地址:出版商”

(5)对于文章条目,将“volume(number):pages”更改为“volume:pages”

例如,ref [1] 来自

[1] Amir Beck and Marc Teboulle. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM Journal on Imaging Sciences, 2(1): 183–202, 2009.

[1] Beck A, Teboulle M. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM Journal on Imaging Sciences, 2: 183–202, 2009

我们注意到(1)和(2)已经被解决了 米科李泽平分别。那么(3)-(5)怎么样?

相关内容