Debian Codegraph @

texmf-dist/doc/bibtex/bath-bst/README.md

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