[Tex/LaTex] Modify bibliography style of @Online

biblatex

Can you please help me modifying my bibliography style?

I'm using biblatex with the following parameters:

  • style=footnote-dw
  • bibstyle=numeric
  • citestyle=numeric
  • url=false
  • sorting=none
  • backend=biber

Then I've online sources, for example:

@Online{online:def_commerce,
  author  = {{Oxford Dictionaries}},
  title   = {{Definition of commerce}},
  url     = {https://en.oxforddictionaries.com/definition/commerce},
  urldate = {2017-01-24},
}

In the bibliography, the source is printed as follows:
bibliography

I'd like to modify the output. I'd prefer it like this:

Oxford Dictionaries. Definition of commerce. https://en.oxforddictionaries.com/definition/commerce. Accessed: 2017-01-24.

To sum it up:

  • I'd like to remove the "URL:"
  • After the URL should be a period.
  • Instead of "(visited on xxx )" should be "Accessed: xxx."
  • The date should be of format "yyyy-mm-dd"

Best Answer

Use

\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}

Oxford Dictionaries. Definition of commerce. https://en.oxforddictionaries.com/definition/commerce. Accessed: 2017-01-24.

Note in particular that style=footnote-dw, bibstyle=numeric, citestyle=numeric can be collapsed into style=numeric.