\documentclass[iicol]{sn-jnl}% Default with double column layout
\usepackage[authoryear,sort]{natbib}
\begin{document}
\citep{Tripathi_2019}
\citep{Singh_2020}
\bibliographystyle{plainnat}
\bibliography{Reference}
\end{document}
我的 bib 文件包含
@article{Tripathi_2019,
title = {{Use of Principal Component Analysis for parameter selection for development of a novel Water Quality Index: A case study of river Ganga India}},
journal = {{Ecological Indicators}},
volume = {96},
pages = {430-436},
year = {2019},
issn = {1470-160X},
doi = {https://doi.org/10.1016/j.ecolind.2018.09.025},
url = {https://www.sciencedirect.com/science/article/pii/S1470160X18307003},
author = {Mansi Tripathi and Sunil Kumar Singal},
}
@InProceedings{Singh_2020,
author="Singh, Rosysmita Bikram
and Sai Priya, J.
and Amrutha Varshini, K.
and Praneeth Kumar, S.",
editor="Zhang, Guoqiang
and Kaushika, N. D.
and Kaushik, S. C.
and Tomar, R. K.",
title="{Greywater Recycle and Reuse for Domestic and Irrigation Purposes}",
booktitle="{Advances in Energy and Built Environment}",
year="2020",
publisher="Springer Singapore",
address="Singapore",
pages="195--202",
isbn="978-981-13-7557-6"
}
我需要一个如屏幕截图所示的输出
答案1
要获得引用中包含作者姓名和日期的格式,您需要传递选项sn-basic
。
\begin{filecontents*}{\jobname.bib}
@article{Tripathi_2019,
title = {Use of Principal Component Analysis for parameter selection for
development of a novel Water Quality Index: A case study of river Ganga India},
journal = {Ecological Indicators},
volume = {96},
pages = {430-436},
year = {2019},
issn = {1470-160X},
doi = {https://doi.org/10.1016/j.ecolind.2018.09.025},
url = {https://www.sciencedirect.com/science/article/pii/S1470160X18307003},
author = {Mansi Tripathi and Sunil Kumar Singal},
}
@InProceedings{Singh_2020,
author = {Singh, Rosysmita Bikram and Sai Priya, J.
and Amrutha Varshini, K. and Praneeth Kumar, S.},
editor = {Zhang, Guoqiang and Kaushika, N. D.
and Kaushik, S. C. and Tomar, R. K.},
title={Greywater Recycle and Reuse for Domestic and Irrigation Purposes},
booktitle={Advances in Energy and Built Environment},
year={2020},
publisher={Springer Singapore},
address={Singapore},
pages={195--202},
isbn={978-981-13-7557-6},
}
\end{filecontents*}
\documentclass[iicol,sn-basic]{sn-jnl}% Default with double column layout
\begin{document}
\citep{Tripathi_2019}
\citep{Singh_2020}
\bibliography{\jobname}
\end{document}
确保将在文件夹sn-basic.bst
中找到的文件放置bst
在文档旁边。
我使用filecontents*
,\jobname
只是为了不破坏我的文件,使用你的命名方案。最重要的是不是加载natbib
或声明\bibliographystyle
。
请注意,用括号括住标题是个坏习惯。将大写字母保留在 bib 样式中,并且只保护必须被保存。