我的大学要求使用哈佛格式,Biblatex 格式的 authoryear 效果很好。对于在线资源,它要求这样做
我已成功将标准 URL 更改为“[在线]”。可从以下网址获取:
\usepackage[minbibnames=1,maxbibnames=99,maxcitenames=2,backend=biber,
style=authoryear,firstinits=true,dashed=false,natbib=true,url=true,
bibencoding=utf8,isbn=false]{biblatex}
\addbibresource{refa.bib}%
\DefineBibliographyStrings{english}{%
urlseen = {Accessed}
}
\DeclareFieldFormat{url}{\bibstring{[Online]. Available at}\space\url{#1}}
但它渲染为
文字以粗体显示,首字母小写,有什么想法吗?
这是 MWE
\documentclass[11pt,oneside,british]{scrbook}
\usepackage{scrhack}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage[british]{babel}
\usepackage[minbibnames=1,maxbibnames=99,maxcitenames=2,backend=biber,style=authoryear,
firstinits=true,dashed=false,natbib=true,url=true,bibencoding=utf8,isbn=false]{biblatex}
\addbibresource{refa.bib}%
\DefineBibliographyStrings{english}{%
urlseen = {Accessed}
}
\DeclareFieldFormat{url}{\bibstring{[Online]. Available at}\space\url{#1}}
\begin{document}
\cite{schmitt_gradient_2013}
\printbibliography[heading=bibintoc]
\end{document}
答案1
\documentclass{article}
\usepackage[british]{babel}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}%
\DefineBibliographyStrings{english}{%
urlseen = {Accessed}
}
\DefineBibliographyStrings{english}{%
urlseen = {Accessed},
url = {[Online]. Available at}
}
\DeclareFieldFormat{url}{\bibstring{url}\space\url{#1}}
\begin{document}
\cite{ctan}
\printbibliography
\end{document}