0

I have written a biology assignment in TeX, and am now struggling with making my bibliography match with the format we need to use for the course, that is, matching this guide for authors. We were told it is the Harvard style, but reading other questions on here I am realising that doesn't mean much.

I'm fairly new to LaTex so I don't know what to do to get my bibliography in this style. I'm using the biblatex package, and currently using the authoryear style, but it's not really the same.

An example of the style in an article is here.

Matt
  • 101
  • Have you checked https://www.elsevier.com/authors/policies-and-guidelines/latex-instructions? – Dr. Manuel Kuehner Mar 07 '22 at 23:59
  • https://www.overleaf.com/latex/examples/a-simple-example-showing-how-to-create-harvard-style-referencing-in-latex/mnwzgkyvdbyy – Dr. Manuel Kuehner Mar 08 '22 at 00:00
  • You could start with https://tex.stackexchange.com/questions/13509 – Dr. Manuel Kuehner Mar 08 '22 at 00:03
  • Chances are there is no ready-made biblatex style for this journal. Most journals/publishers don't accept biblatex in submissions. Often they encourage BibTeX-based or manual bibliographies. biblatex styles are a very rare exception. Elsevier specifically has a LaTeX template that comes with BibTeX bibliography styles. Those styles may or may not produce the same bibliography output found in published papers of that journal (sometimes there are discrepancies in the output that are fixed during the publishing process when the LaTeX source is postprocessed). – moewe Mar 08 '22 at 20:15
  • I guess your choice is to either use the template provided by the publisher and its BibTeX style and hope that it comes close to the desired output or to modify a standard biblatex style so that it does what you need (you can get started at https://tex.stackexchange.com/q/12806/35864, but for more specific issues you probably need to ask a new question if you can't find an existing one). – moewe Mar 08 '22 at 20:23

1 Answers1

0

I used biblatex (and its extension, see biblatex-ext) to create what you need.

Maybe further refinements are needed (I only tested article and book as bib entries).

\begin{filecontents}[overwrite]{bib.bib}
@article{andreadis1992structure,
  title={Structure and novel exons of the human. tau. gene},
  author={Andreadis, Athena and Brown, William M and Kosik, Kenneth S},
  journal={Biochemistry},
  volume={31},
  number={43},
  pages={10626--10633},
  year={1992},
  publisher={ACS Publications}
}
@article{baker2001electrostatics,
  title={Electrostatics of nanosystems: application to microtubules and the ribosome},
  author={Baker, Nathan A and Sept, David and Joseph, Simpson and Holst, Michael J and McCammon, J Andrew},
  journal={Proceedings of the National Academy of Sciences},
  volume={98},
  number={18},
  pages={10037--10041},
  year={2001},
  publisher={National Acad Sciences},
  url={https://the/url/of/the/article.com}
}
@article{desta2020performance,
  title={Performance and its limits in rigid body protein-protein docking},
  author={Desta, Israel T and Porter, Kathryn A and Xia, Bing and Kozakov, Dima and Vajda, Sandor},
  journal={Structure},
  volume={28},
  number={9},
  pages={1071--1081},
  year={2020},
  publisher={Elsevier}
}
@book{laskowski2011ligplot+,
  title={LigPlot+: multiple ligand--protein interaction diagrams for drug discovery},
  author={Laskowski, Roman A and Swindells, Mark B},
  year={2011},
  publisher={ACS Publications}
}
\end{filecontents}

\documentclass[a4paper]{article}

\usepackage[english]{babel} \usepackage{csquotes}

\usepackage[ style=ext-authoryear, maxbibnames=99, maxcitenames=2, giveninits=true, uniquename=init, ]{biblatex}

\usepackage{xurl}

% Citation settings % comma between name and year in citations \renewcommand*{\nameyeardelim}{\addcomma\space}

% Bibliography settings % Inversion of given and family names \DeclareNameAlias{sortname}{family-given}

%remove "and" before the last name \DeclareDelimAlias[bib]{finalnamedelim}{multinamedelim}

% remove parentheses around year and put a comma before it \DeclareFieldFormat{biblabeldate}{\addcomma\addspace #1}

% no space between initials \renewcommand*{\bibinitdelim}{}

% titles without quotes \DeclareFieldFormat{title}{#1} \DeclareFieldFormat[article]{title}{#1}

% journal in normal font \DeclareFieldFormat{journaltitle}{#1}

% space between journal title \renewcommand*{\jourvoldelim}{\addspace}

% leave out "In:" before journal name \renewbibmacro{in:}{\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct\nopunct}}}

% print only volume (no number) \renewbibmacro*{volume+number+eid}{% \printfield{volume}% \setunit{\addcomma\addspace}% }

% leave out "pp." from pages \DeclareFieldFormat{pages}{#1}

% URL without the word "URL" and normal font \urlstyle{same} \DeclareFieldFormat{url}{\url{#1}} % END Bibliography and citation customization

\addbibresource{bib.bib}

\begin{document} Autocite: \autocite{laskowski2011ligplot+}

Two citations \autocite{baker2001electrostatics, desta2020performance}

Cite: \cite{desta2020performance}

Parencite: \parencite{andreadis1992structure}

Textcite: \textcite{baker2001electrostatics}

\printbibliography

\end{document}

enter image description here

CarLaTeX
  • 62,716