0

I am using Biblatex and try to mimic Harvard referencing. Therefore, I have set the style to authoryear in the brackets when setting the package up. I set it to that style because that is how you would cite a source with an author. However, when I try to cite a website without an author, and only an editor/publisher, I want to cite the source as (Title Year) and not (Editor/Author Year). How is it possible to change the citation depending on certain criteria so that you can satisfy a certain referencing standard (such as Harvard)?

  • 3
    Welcome to TeX.SE. It would be helpful if you composed a fully compilable minimal working example with bibliography (MWEB) including \documentclass and the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – user36296 Mar 14 at 19:40
1

Unlike other styles such as APA style(https://www.apastyle.org/manual, biblatex implementation biblatex-apa) and Chicago style(https://www.chicagomanualofstyle.org/home.html, biblatex implementation biblatex-chicago and more recently windycity) the term Harvard style does not refer to a well-defined and unique citation and bibliography style. Instead Harvard style is used to refer to a broad class of author-year citations. Many schools, universities, institutes and professors have their own interpretation of what "Harvard style" should mean exactly.

The biblatex standard style authoryear or its variants authoryear-ibid, authoryear-comp, authoryear-icomp are usually a good starting point for Harvard style.

Indeed those styles already give you a title year citation if there is no author or editor.

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=authoryear, backend=biber]{biblatex}


\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{ics,
  title   = {On the Importance of the Civil Service},
  date    = {2019},
  url     = {https://example.edu/impcs.pdf},
  urldate = {2019-03-11},
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}


\begin{document}
Lorem \autocite{sigfridsson}
ipsum \autocite{ics}
\printbibliography
\end{document}

Lorem (Sigfridsson and Ryde 1998) ipsum (On the Importance of the Civil Service 2019)

  • Thanks man! But the thing is that I want to provide an editor to the online source in the bibliography (not an author though). And since an editor is not an author, I would still like to use the title rather than the Editor when citing the source - is this possible? – step Mar 16 at 15:43
  • @step useditor=false as entry option? (I.e. add options = {useeditor=false} to the .bib entry.) Without a proper example (at best a so-called MWE: tex.meta.stackexchange.com/q/228/35864, tex.meta.stackexchange.com/q/4407/35864) that's mostly guessing, though. – moewe Mar 16 at 15:58
  • You are a true savior! Exactly the options that I wanted. – step Mar 16 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.