你能帮我修改我的参考书目风格吗?
我正在使用具有以下参数的 biblatex:
- 样式=脚注-dw
- bibstyle=数字
- citestyle=numeric
- url=false
- 排序=无
- 后端=biber
然后我有在线资源,例如:
@Online{online:def_commerce,
author = {{Oxford Dictionaries}},
title = {{Definition of commerce}},
url = {https://en.oxforddictionaries.com/definition/commerce},
urldate = {2017-01-24},
}
我想修改输出。我希望它像这样:
牛津词典。商业的定义。https://en.oxforddictionaries.com/definition/commerce. 访问日期: 2017-01-24.
把它们加起来:
- 我想删除“URL:”
- URL 后面应该有一个句点。
- “(访问于 xxx)”应为“访问于:xxx”。
- 日期格式应为“yyyy-mm-dd”
答案1
使用
\documentclass[british]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=numeric, sorting=none, url=false, urldate=edtf]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Online{online:def_commerce,
author = {{Oxford Dictionaries}},
title = {{Definition of commerce}},
url = {https://en.oxforddictionaries.com/definition/commerce},
urldate = {2017-01-24},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\addcolon\space#1}
\renewbibmacro*{url+urldate}{%
\usebibmacro{url}%
\iffieldundef{urlyear}
{}
{\setunit*{\addperiod\space}%
\usebibmacro{urldate}}}
\DefineBibliographyStrings{english}{urlseen = {accessed}}
\begin{document}
\cite{online:def_commerce}
\printbibliography
\end{document}
特别注意style=footnote-dw, bibstyle=numeric, citestyle=numeric
可以折叠成style=numeric
。