I am struggling to re-create the format required for the bibliography in a variation of the Harvard style. This is an example of an online article:
Elliott, L. (2008) Economic slowdown and tax breaks put the government in the red. Guardian [Internet], 20 November. Available from: <http://www.guardian.co.uk/business> [Accessed 19 November 2007].
Using the minimal example below, I manage to create the following:
Elliott, L. (2008). Economic slowdown and tax breaks put the government in the red. Guardian. [Internet] (20th Nov. 2008). Available from: <http://www.guardian.co.uk/business> [Accessed 19th Nov. 2017].
Looking at the differences, I have a few questions:
- How to print the date in day-month format as shown without the year and the surrounding parentheses?
- How to remove the periods after the label year and after the journal name?
- How to connect the journal and the date with a comma?
Here is a minimal example:
\begin{filecontents}{test.bib}
@article{test,
author = {L. Elliott},
title = {Economic slowdown and tax breaks put the government in the red},
journal = {Guardian},
date = {2008-11-20},
url = {http://www.guardian.co.uk/business},
urldate = {2017-11-19}
}
\end{filecontents}
\documentclass{article}
\usepackage{times}
\usepackage{csquotes}
\usepackage[british]{babel}
\usepackage[
style=authoryear,
mergedate=false,
urldate=long
]{biblatex}
\addbibresource{test.bib}
\NewBibliographyString{available}
\NewBibliographyString{internet}
\DefineBibliographyStrings{english}{%
urlseen = {Accessed},
available = {Available from},
internet = {[Internet]}
}
\DeclareFieldFormat[article]{title}{#1}
\renewbibmacro{in:}{}
\DeclareFieldFormat[article]{journaltitle}{\textbf{#1}\space\bibstring{internet}}
\DeclareFieldFormat{url}{\bibstring{available}\addcolon\space$<$\url{#1}$>$}
\DeclareFieldFormat{urldate}{\mkbibbrackets{\bibstring{urlseen}\space#1}}
\urlstyle{same}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
DeclareFieldFormat[article]{journaltitle}{\textbf{#1}\space\bibstring{internet}}
looks a bit dangerous to me: It effectively turns all@article
s into online articles.