| 1 | # biblatex-bath: Harvard referencing style as recommended by the University of Bath Library |
| 2 | |
| 3 | This package provides a [biblatex] style to format reference lists in the |
| 4 | [Harvard style][bath-harvard] recommended by the University of Bath Library. |
| 5 | |
| 6 | ## Installation |
| 7 | |
| 8 | The files you need are included in the zip archive available from [GitHub]. |
| 9 | If you use the zip archive from [CTAN], you will need to run `luatex |
| 10 | biblatex-bath.dtx` to generate them. |
| 11 | |
| 12 | You can use this style simply by copying all the `.bbx`, `.cbx`, `.dbx` and |
| 13 | `.lbx` files into your working directory, that is, the directory holding the |
| 14 | main `.tex` file for your document. If you want the style to be available for |
| 15 | all your documents without having to copy the files over each time, you can |
| 16 | install them using the instructions below. |
| 17 | |
| 18 | ### Managed way |
| 19 | |
| 20 | The latest stable release of biblatex-bath has been packaged for TeX Live and |
| 21 | MiKTeX. If you are running TeX Live and have `tlmgr` installed, you can install |
| 22 | the package simply by running `tlmgr install biblatex-bath`. If you are running |
| 23 | MiKTeX, you can install the package by running `mpm --install=biblatex-bath`. |
| 24 | Both `tlmgr` and `mpm` have GUI versions that you might find friendlier. |
| 25 | |
| 26 | ### Automated way |
| 27 | |
| 28 | A makefile is provided which you can use with the Make utility on |
| 29 | UNIX-like systems: |
| 30 | |
| 31 | * Running `make source` generates the derived files |
| 32 | - `README.md` |
| 33 | - `bath.bbx`, `bath.cbx`, `bath.dbx` |
| 34 | - `english-bath.lbx`, `british-bath.lbx` |
| 35 | - `biblatex-bath.bib` |
| 36 | - `biblatex-bath.ins` |
| 37 | * Running `make` generates the above files and also `biblatex-bath.pdf`. |
| 38 | Ensure you have (at least) the [luatexja], [adobemapping] and [ipaex] |
| 39 | packages installed first. |
| 40 | * Running `make inst` installs the files in the user's TeX tree. |
| 41 | You can undo this with `make uninst`. |
| 42 | * Running `make install` installs the files in the local TeX tree. |
| 43 | You can undo this with `make uninstall`. |
| 44 | |
| 45 | ### Manual way |
| 46 | |
| 47 | You do not need to follow the first step if you downloaded the zip archive from |
| 48 | [GitHub]. You do not need to follow the second step if you already have the PDF |
| 49 | documentation. |
| 50 | |
| 51 | 1. Run `luatex biblatex-bath.dtx` to generate the source files. |
| 52 | |
| 53 | 2. Compile `biblatex-bath.dtx` with [LuaLaTeX] and [Biber] to generate the |
| 54 | documentation. You will need, among other things, the [luatexja], |
| 55 | [adobemapping] and [haranoaji] packages installed; this is just |
| 56 | for the documentation, not for the biblatex style itself. |
| 57 | |
| 58 | 3. If you are using TeX Live, find your home TeX tree using the following |
| 59 | command at the command prompt/terminal: |
| 60 | |
| 61 | ``` |
| 62 | kpsewhich -var-value=TEXMFHOME |
| 63 | ``` |
| 64 | |
| 65 | If you are using MikTeX, consult the MikTeX manual entry for [integrating |
| 66 | local additions](http://docs.miktex.org/manual/localadditions.html). You |
| 67 | can use one of the roots (TeX trees) already defined – preferably one of |
| 68 | the User roots – or set up a new one. |
| 69 | |
| 70 | 4. Move the files to your TeX tree as follows: |
| 71 | - `source/latex/biblatex-bath`: |
| 72 | `biblatex-bath.dtx`, |
| 73 | (`biblatex-bath.ins`) |
| 74 | - `tex/latex/biblatex-bath`: |
| 75 | `bath.bbx`, |
| 76 | `bath.cbx`, |
| 77 | `bath.dbx`, |
| 78 | `english-bath.lbx`, |
| 79 | `british-bath.lbx` |
| 80 | - `doc/latex/biblatex-bath`: |
| 81 | `biblatex-bath.pdf`, |
| 82 | `README.md` |
| 83 | |
| 84 | 5. You may then have to update your installation's file name database |
| 85 | before TeX and friends can see the files. |
| 86 | |
| 87 | [bath-harvard]: https://library.bath.ac.uk/referencing/harvard-bath |
| 88 | [biblatex]: http://ctan.org/pkg/biblatex |
| 89 | [GitHub]: https://github.com/alex-ball/bathbib/releases |
| 90 | [CTAN]: http://ctan.org/pkg/biblatex-bath |
| 91 | [LuaLaTeX]: http://ctan.org/pkg/lualatex-doc |
| 92 | [Biber]: http://ctan.org/pkg/biber |
| 93 | [luatexja]: http://ctan.org/pkg/luatexja |
| 94 | [adobemapping]: http://ctan.org/pkg/adobemapping |
| 95 | [ipaex]: http://ctan.org/pkg/ipaex |
| 96 | [haranoaji]: http://ctan.org/pkg/haranoaji |
| 97 | |
| 98 | ## Licence |
| 99 | |
| 100 | Copyright 2016-2026 University of Bath. |
| 101 | |
| 102 | This work consists of the documented LaTeX file biblatex-bath.dtx and a Makefile. |
| 103 | |
| 104 | The text files contained in this work may be distributed and/or modified |
| 105 | under the conditions of the [LaTeX Project Public License (LPPL)][lppl], |
| 106 | either version 1.3c of this license or (at your option) any later |
| 107 | version. |
| 108 | |
| 109 | This work is ‘maintained’ (as per LPPL maintenance status) by [Alex Ball][me]. |
| 110 | |
| 111 | [lppl]: http://www.latex-project.org/lppl.txt "LaTeX Project Public License (LPPL)" |
| 112 | [me]: https://github.com/alex-ball/bathbib "Alex Ball" |
| 113 |