This repository contains two LaTeX implementations of the Harvard referencing style recommended by the University of Bath Library.
biblatex
contains the implementation for use with biblatex and Biber.bst
contains the implementation for use with BibTeX.
For details of how to use these styles, please see the PDF documentation bundled with the code on the releases page, or on the bath-bst or biblatex-bath package pages on CTAN.
This repository also contains a development area for maintaining an implementation of the Bath Harvard style in Citation Style Language. Please look there for tips on how to arrange your CSL database to make best use of the style.
Changes made here are submitted upstream to the official repository for CSL styles.
The Python script check.py
can be used to test the output of the various
styles. It relies on a lot of dependencies, but not all of them are needed
for all tests.
- GNU Make
bash
,awk
,sed
,curl
- A LaTeX distribution (e.g. TeX Live, MikTeX) with
latexmk
,lualatex
, etc. pandoc
v2.11+- Python v3.8+ and the Python packages
click
,lxml
andpyyaml
- LibYAML
citeproc-js-server
running athttp://127.0.0.1:8085
You can find pandoc
and citeproc-js-server
on GitHub.
To show what testing options are available:
./check.py -h
Testing LaTeX styles:
./check.py biblatex
: tests the biblatex output usingbath.bbx
and the more native biblatex.bib
file../check.py compat
: tests the biblatex output usingbath.bbx
and the BibTeX.bib
file tailored forbathx.bst
../check.py bst
: tests the BibTeX output ofbathx.bst
../check.py bst-old
: tests the BibTeX output ofbath.bst
.
Testing the CSL style:
./check.py csl
: tests the output of the Haskellciteproc
library usingharvard-university-of-bath.csl
viapandoc
../check.py csl-impl
: tests for variance between the output of the Haskellciteproc
library andciteproc-js
when usingharvard-university-of-bath.csl
.
Testing consistency:
./check.py sync
: confirms whether the three implementations are all targeting the same set of LaTeX-formatted references.