我使用的是书目样式spbasic
。在参考文献中,文本超出了设置的边距,并且作者姓名重复。如何使用相同的书目样式避免此问题?如下所示,"DeCandia et al(2007)DeCandia, Hastorun, Jampani, Kakulapati, Lakshman, Pilchin, subramanian, Vosshall, and Vogels."
所有文本都排版在同一行,超出了边距。在此行下方,我再次获得了相同的作者姓名,但这次它仍在边距内。我如何删除第一行或删除边距内的第二行和第一行。
DeCandia 等人 (2007)DeCandia、Hastorun、Jampani、Kakulapati、Lakshman、Pilchin、subramanian、Vosshall 和 Vogels。DeCandia G、Hastorun D、Jampani M、Kakulapati G、Lakshman A、Pilchin A、subramanian SS、Vosshall P、Vogels W (2007) Dynamo:亚马逊的高可用性键值存储。在:2007 年第 21 届 ACM 操作系统原理研讨会论文集,SOSP 2007,美国华盛顿史蒂文森,2007 年 10 月 14-17 日,第 205-220 页,DOI 10.1145/1294261.1294281,URL http://doi.acm.org/10.1145/1294261.1294281
Di 等人 (2013)Di、Robert、Vivien、Kondo、Wang 和 Cappello。Di S、Robert Y、Vivien F、Kondo D、Wang C、Cappello F (2013) 使用检查点重启机制优化云任务处理。在:国际高性能计算、网络、存储和分析会议,SC'13,美国科罗拉多州丹佛市 - 2013 年 11 月 17 日至 21 日,第 64:1–64:12 页,DOI 10.1145/2503210.2503217,URLhttp://doi.acm.org/10.1145/2503210.2503217“
答案1
spbasic.bst
引用 Springer书目样式文件的标题:
% 此书目样式文件适用于英文文本
% 这是作者-年份引用格式的书目。因此,它是
% 非标准 LaTeX,需要特殊的包文件才能正常运行。
% Patrick W. Daly 的 natbib.sty 包就是这样的
总之,需要natbib
在preamble中加载包,最好是如下方式:
\usepackage[authoryear,round]{natbib}
然后,确保重新运行 (pdf)LaTeX。
在命令提示符下键入texdoc natbib
以调出natbib
软件包的用户指南。请熟悉软件包natbib
用于创建引文标注的专用命令,例如\citet
、、、、、等等。\citep
\citeauthor
\citealt
\citealp
这是完整 MWE(最小工作示例)的输出,它实现了加载包的建议;观察和生成文本样式和括号样式引用标注的natbib
使用。\citet
\citep
\RequirePackage{filecontents}
%% Aside: Raw bib data obtained from
%% https://dl.acm.org/citation.cfm?doid=1294261.1294281
%% and
%% https://dl.acm.org/citation.cfm?doid=2503210.2503217
%% (Click on the "BibTeX" button on the right-hand edges of the pages.)
\begin{filecontents}{mybib.bib}
@inproceedings{DeCandia:2007:DAH:1294261.1294281,
author = {DeCandia, Giuseppe and Hastorun, Deniz and Jampani, Madan and Kakulapati, Gunavardhan and Lakshman, Avinash and Pilchin, Alex and Sivasubramanian, Swaminathan and Vosshall, Peter and Vogels, Werner},
title = {Dynamo: Amazon's Highly Available Key-value Store},
booktitle = {Proceedings of Twenty-first ACM SIGOPS Symposium on Operating Systems Principles},
series = {SOSP~'07},
year = {2007},
isbn = {978-1-59593-591-5},
location = {Stevenson, Washington, USA},
pages = {205--220},
numpages = {16},
url = {http://doi.acm.org/10.1145/1294261.1294281},
doi = {10.1145/1294261.1294281},
acmid = {1294281},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {performance, reliability, scalability},
}
@inproceedings{Di:2013:OCT:2503210.2503217,
author = {Di, Sheng and Robert, Yves and Vivien, Fr{\'e}d{\'e}ric and Kondo, Derrick and Wang, Cho-Li and Cappello, Franck},
title = {Optimization of Cloud Task Processing with Checkpoint-restart Mechanism},
booktitle = {Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis},
series = {SC~'13},
year = {2013},
isbn = {978-1-4503-2378-9},
location = {Denver, Colorado},
pages = {64:1--64:12},
articleno = {64},
numpages = {12},
url = {http://doi.acm.org/10.1145/2503210.2503217},
doi = {10.1145/2503210.2503217},
acmid = {2503217},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {BLCR, checkpoint-restart mechanism, cloud computing, google, optimal checkpointing interval},
}
\end{filecontents}
\documentclass{article}
\usepackage[hyphens]{url} % for well-formatted URL strings
\usepackage{microtype}
\usepackage[authoryear,round]{natbib} % citation management package
\bibliographystyle{spbasic} % select a suitable bibliography style
\begin{document}
\noindent
\citet{DeCandia:2007:DAH:1294261.1294281},
\citep{Di:2013:OCT:2503210.2503217}
\bibliography{mybib}
\end{document}