I am writing a report in LaTeX for the Open University using Overleaf. The OU are insistent on a specific layout for online references as follows:
Surname, Initial. (Year) Title of web page. Available at: URL (Accessed: date).
with full block wrapping of the URL and no indent on the second and subsequent wrapped lines eg:
The best I have managed so far is
Surname, Initial. (Year) Title of web page. URL: URL (Accessed: date).
Where "URL:" is printed rather than "Available at:", the URL itself is in a monospaced font, 2nd & subsequent lines are indented. eg
Here is the compilable test document code which generates that output.
\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, natbib]{biblatex} % 'backend=biber' is the default
\addbibresource{TestReferences.bib}
\usepackage{xurl}
\DefineBibliographyStrings{english}{urlseen = {Accessed:}}
\ExecuteBibliographyOptions{alldates=long}
\begin{document}
\subsection{Citation}
\citep{Hampton}
\printbibliography[heading=bibintoc,title={References}]
\end{document}
and here is the TestReferences.bib entry for the Hampton reference example above:
@Online{Hampton,
author = {{Hampton, D.L et al.}},
year = "2006",
title = {{‘An overview of the instrument suite for the deep impact mission'}},
url = {https://www.researchgate.net/publication/226736423_An_Overview_of_the_Instrument_Suite_for_the_Deep_Impact_Mission.},
urldate = {2024-04-23},
}
So my question is: how can I further configure the bibliography to remove the indents, get the "URL:" prompt changed to "Available at:", get the font used to print the URL in the same font style as the rest of the reference as in the target example.
Please note: x-post stackoverflow.com/q/78520361/2777074
author = {{Hampton, D.L et al.}},
it is usually better to give all names and not force theet al.
manually. The example entry is actually a paper that was published in a journal, so@article
would be more appropriate. Because there are so many names, the entry does not fit into the comments, but you can see what I would use at gist.github.com/moewew/97f90672187f2381cec33d0b90e52a15..bib
file and want to force "et al." manually (instead of having the style do that), you should use theand others
keyword as inauthor = {D. L. Hampton and others},
. (See e.g. tex.stackexchange.com/a/95956/35864.) But usually it's best to give all names and let the style do its thing.