| 1 | biblatex-unified |
| 2 | ================ |
| 3 | |
| 4 | `biblatex-unified` is an opinionated biblatex implementation of the [Unified Stylesheet for Linguistics Journals](https://www.linguisticsociety.org/resource/unified-style-sheet). The stylesheet was developed by [CELxJ, the Committee of Editors of Linguistics Journals](https://www.linguisticsociety.org/about/who-we-are/committees/editors-linguistics-journals-celxj). |
| 5 | |
| 6 | The first implementation of the stylesheet for LaTeX was [`sp.bst`](https://raw.githubusercontent.com/semprag/tex/master/sp.bst), developed for the house-style of the journal [*Semantics and Pragmatics*](http://semprag.org) (*S&P*). Bridget Samuels produced a revised version `unified.bst`, which has largely disappeared from the internet. |
| 7 | |
| 8 | The current project is a ground-up re-implementation of the unified stylesheet in modern biblatex. It has been used by *S&P* in production for several years. |
| 9 | |
| 10 | Please [file an issue at github](https://github.com/semprag/biblatex-sp-unified/issues/new) to let us know of any problems you encounter and any recommendations for improvement. |
| 11 | |
| 12 | |
| 13 | ## Sources |
| 14 | |
| 15 | The `biblatex-unified` style consists of two files: |
| 16 | |
| 17 | * [`unified.bbx`](unified.bbx) -- for formatting the bibliography. |
| 18 | * [`unified.cbx`](unified.cbx) -- for formatting in-text citations in the style of *S&P*. |
| 19 | - Since the Unified Stylesheet does not give any guidelines for in-text citations, this file is optional and users can choose other citation styles, such as the `authoryear-comp` citation style that comes with biblatex. |
| 20 | |
| 21 | |
| 22 | ## Requirements and backward compatibility |
| 23 | |
| 24 | Compiling LaTeX documents with this style depends on a fairly recent TeX installation that includes biblatex 2.0+. It is tested only with the `biber` backend. TexLive 2019 or later would be ideal. |
| 25 | |
| 26 | |
| 27 | ## Installation |
| 28 | |
| 29 | Manual installation involves putting the two files `unified.bbx` and `unified.cbx` somewhere where your TeX system can find them. This could be local in the same directory as your tex source file, or in your `TEXMF` "home" directory, or in the system `TEXMF` directories. |
| 30 | |
| 31 | |
| 32 | ## Configuring your `.tex` document to use the style |
| 33 | |
| 34 | To use the style in conjunction with *S&P*'s [`sp.cls`](https://raw.githubusercontent.com/semprag/tex/master/sp.cls), |
| 35 | simply add the `biblatex` class option when importing `sp.cls`: |
| 36 | |
| 37 | ```latex |
| 38 | \documentclass[biblatex]{sp} |
| 39 | ``` |
| 40 | |
| 41 | If you are not using the *S&P* document class, you can still use this style by adding the following to your preamble (after `\documentclass{...}` but before `\begin{document}`): |
| 42 | |
| 43 | ```latex |
| 44 | \usepackage[backend=biber, |
| 45 | style=unified, |
| 46 | maxcitenames=3, |
| 47 | maxbibnames=99]{biblatex} |
| 48 | ``` |
| 49 | |
| 50 | The unified citation style relies on hyperlinking between in-text citations and the bibliography. So, the `hyperref` package is required. It is automatically loaded by `sp.cls` but if you use a different document class and `hyperref` is not loaded by that class, you need to add `\usepackage{hyperref}` to your preamble as well. |
| 51 | |
| 52 | If you were previously using `natbib`, remove `\usepackage{natbib}` and any accompanying `\bibliographystyle{...}` and `\bibpunct{...}` settings. |
| 53 | You might also find it helpful to add `natbib` to the list of options (`\usepackage[..., natbib]{biblatex}`), to load biblatex's `natbib` compatibility module, which implements common `natbib` commands like `\citet`, `\citep`, `\citealt`, `\citealp`, etc. |
| 54 | |
| 55 | Whether you're using `sp.cls` or a different document class, you'll need to change the usual BibTeX commands to biblatex, in two places: |
| 56 | |
| 57 | 1. Replace the `\bibliography{your-bibfile}` line in the backmatter with `\printbibliography`. |
| 58 | 2. Add the following command to your preamble: |
| 59 | `\addbibresource{your-bibfile.bib}` |
| 60 | - NB: the `.bib` extension must be included (unlike BibTeX) |
| 61 | |
| 62 | ## Documentation |
| 63 | |
| 64 | The full documentation and implementation notes can be found in [`biblatex-unified.pdf`](biblatex-unified.pdf). The PDF can be regenerated by typesetting the `tex` source file with `xelatex`. The `tex` is actually itself generated from the underlying `md` markdown file via `pandoc` with the following incantation: |
| 65 | |
| 66 | ```zsh |
| 67 | pandoc -f markdown -t latex biblatex-unified.md -s\ |
| 68 | -o biblatex-unified.tex --highlight-style=kate |
| 69 | ``` |
| 70 | |
| 71 | ## License and copyright |
| 72 | |
| 73 | Copyright ©2022 Kai von Fintel. |
| 74 | |
| 75 | This package is author-maintained. Permission is granted to copy, distribute |
| 76 | and/or modify this software under the terms of the LaTeX Project Public License, |
| 77 | version 1.3c. |
| 78 | |
| 79 | This software is provided “as is,” without warranty of any kind, either |
| 80 | expressed or implied, including, but not limited to, the implied warranties of |
| 81 | merchantability and fitness for a particular purpose. |