在我的 .bib 档案中我有下一个参考:
@misc{Quora,
title = {In optimization, why is Newton's method much faster than gradient descent?},
howpublished = {\url{https://www.quora.com/In-optimization-why-is-Newtons-method-much-faster-than-gradient-descent/}},
note = {Accessed: 2015-06-07},
author = {Carlin Eng}
}
pdf 中的结果是
我认为这是针对长 URL “In-optimization-why-is-Newtons-method-much-faster-than-gradient-descent/” 而没有任何斜杠的。
我在用着\bibliographystyle{ieeetr}
答案1
biblatex
使用以及它的url
和字段会更简单urlseen
:
\documentclass[a4paper,twoside,11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{filecontents}
\begin{filecontents}{urltest.bib}
@misc{Quora,
title = {In optimization, why is Newton's method much faster than gradient descent?},
url = {https://www.quora.com/In-optimization-why-is-Newtons-method-much-faster-than-gradient-descent/},
urldate = {2015-06-07},
author = {Carlin Eng}
}
\end{filecontents}
\usepackage[backend = biber]{biblatex}
\usepackage{hyperref}
\DefineBibliographyStrings{english}{
urlseen = {accessed on}
}
\addbibresource{urltest.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}