我的书目中有这样的条目:
@online{DBHammerMRScrewdriver,
author = {Mark C. Chu-Carroll},
title = {Databases are hammers; MapReduce is a screwdriver.},
year = {2008},
url = {https://scienceblogs.com/goodmath/2008/01/22/databases-are-hammers-mapreduc},
urldate = {2019-01-07},
note = {website},
}
这会产生以下结果。
以下可能吗?
- url 属性总是从新行开始。
- pdf 中省略了“url”一词。(编辑:可以找到此问题的答案这里正如@Ulrike 在评论中指出的那样(添加
\DeclareFieldFormat{url}{\url{#1}}
)。
我的最小工作示例:
\documentclass[a4paper, 12pt, oneside]{Thesis} % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
\usepackage[utf8]{inputenc}
\usepackage[backend=biber, style=numeric, sorting=none]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}
\cite{DBHammerMRScrewdriver}
\printbibliography
\end{document}
(这足够了吗?我使用的 overleaf.com 项目还列出了一些其他人类可读的文件:,,,,,。3dplot.sty
如果您需要这些文件的内容,请告诉我,我会提供它们。)lstpatch.sty
Thesis.cls
tikz-er2.sty
vector.sty
答案1
例如,一个快速破解方法是添加\newline
您使用的\DeclareFieldFormat
:
\DeclareFieldFormat{url}{\newline\url{#1}}
使用以下 MWE(请参阅我使用类article
在一页上获取文本和参考书目)
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{DBHammerMRScrewdriver,
author = {Mark C. Chu-Carroll},
title = {Databases are hammers; MapReduce is a screwdriver.},
year = {2008},
url = {https://scienceblogs.com/goodmath/2008/01/22/databases-are-hammers-mapreduc},
urldate = {2019-01-07},
note = {website},
}
\end{filecontents}
\documentclass[a4paper, 12pt, oneside]{article} % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
\usepackage[utf8]{inputenc}
\usepackage[backend=biber, style=numeric, sorting=none]{biblatex}
\addbibresource{\jobname.bib}
\DeclareFieldFormat{url}{\newline\url{#1}} % <==========================
\begin{document}
\cite{DBHammerMRScrewdriver}
\printbibliography
\end{document}
得到结果: