目前,我正在使用 \bibliography{mybibfile} 准备参考文献,一开始,参考文献中的 URL 太长了。 因此,我发现我应该使用:
\usepackage[hyphens]{url}
\usepackage{hyperref}
然后我意识到 URL 和地址之间有一个很大的空格。 然后我尝试了另一种方法:
\begingroup
\raggedright
\bibliography{second_paper2}
\endgroup
但它只将 URL 和 http 保存在一行,其余部分保存在下一行。 我还尝试更改 bib 文件:
@article{wanunu_dna_2008,
title = {{DNA} {Translocation} {Governed} by {Interactions} with {Solid}-{State} {Nanopores}},
volume = {95},
issn = {00063495},
url = {http://linkinghub.elsevier.com/retrieve/pii/S0006349508786107},
doi = {10.1529/biophysj.108.140475},
language = {en},
number = {10},
urldate = {2018-07-09},
journal = {Biophysical Journal},
author = {Wanunu, Meni and Sutin, Jason and McNally, Ben and Chow, Andrew and Meller, Amit},
month = nov,
year = {2008},
pages = {4716--4725}
}
对此(使用 \url):
@article{wanunu_dna_2008,
title = {{DNA} {Translocation} {Governed} by {Interactions} with {Solid}-{State} {Nanopores}},
volume = {95},
issn = {00063495},
note = {\url{http://linkinghub.elsevier.com/retrieve/pii/S0006349508786107}},
doi = {10.1529/biophysj.108.140475},
language = {en},
number = {10},
urldate = {2018-07-09},
journal = {Biophysical Journal},
author = {Wanunu, Meni and Sutin, Jason and McNally, Ben and Chow, Andrew and Meller, Amit},
month = nov,
year = {2008},
pages = {4716--4725}
}
但只删除 URL 并将 http 地址放在 DOI 之前是错误的。这是我的代码:
\documentclass[preprint,12pt,sort&compress]{elsarticle}
\usepackage{amssymb,amsfonts,graphicx,amsmath,setspace,bm}
\usepackage{subcaption}
\usepackage[toc,page]{appendix}
\usepackage[retainorgcmds]{IEEEtrantools}
\usepackage{diagbox}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\begin{document}
something\cite{ren_numerical_2016,cao_translocation_2015,wanunu_dna_2008}.
\bibliographystyle{elsarticle-num}
\section*{\refname}
\bibliography{second_paper2}
\end{document}
我使用 pdflatex 和 bibtex。您知道该如何修复这个问题吗?非常感谢。