summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-02-06 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2022-02-06 03:01:17 +0000
commit350b3e35109171f0edd6fe9d697b91d5e76561f9 (patch)
treec6eac90d0b35dec36fa17ee58b736e55d6e42755 /macros/latex/contrib/biblatex-contrib
parent08ccf305ee79ab8e5ba9d1a8f3d22e74dccedd80 (diff)
CTAN sync 202202060301
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/README.md6
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.md53
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.pdfbin72052 -> 78358 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.tex135
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.bib9
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.tex2
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-unified/unified.bbx158
7 files changed, 235 insertions, 128 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/README.md b/macros/latex/contrib/biblatex-contrib/biblatex-unified/README.md
index b4398c0963..29120705d3 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/README.md
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/README.md
@@ -1,7 +1,7 @@
biblatex-unified
================
-`biblatex-unified` is an opinionated biblatex implementation of the [Unified Stylesheet for Linguistics Journal](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).
+`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).
The first implementation of the stylesheet for LaTeX was [`sp.bst`](https://raw.githubusercontent.com/semprag/tex/master/sp.cls), 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.
@@ -47,6 +47,8 @@ If you are not using the *S&P* document class, you can still use this style by a
maxbibnames=99]{biblatex}
```
+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.
+
If you were previously using `natbib`, remove `\usepackage{natbib}` and any accompanying `\bibliographystyle{...}` and `\bibpunct{...}` settings.
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.
@@ -68,7 +70,7 @@ pandoc -f markdown -t latex biblatex-unified.md -s\
## License and copyright
-Copyright ©2020 Kai von Fintel.
+Copyright ©2022 Kai von Fintel.
This package is author-maintained. Permission is granted to copy, distribute
and/or modify this software under the terms of the LaTeX Project Public License,
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.md b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.md
index e9bdf19081..294ca5aa17 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.md
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.md
@@ -1,7 +1,7 @@
---
title: biblatex-unified
author: Kai von Fintel (fintel@mit.edu)
-date: 2020-05-25
+date: 2022-02-05
colorlinks: true
numbersections: true
...
@@ -54,6 +54,8 @@ If you are not using the *S&P* document class, you can still use this style by a
maxbibnames=99]{biblatex}
```
+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.
+
If you were previously using `natbib`{.latex}, remove `\usepackage{natbib}`{.latex} and any accompanying `\bibliographystyle{...}`{.latex} and `\bibpunct{...}`{.latex} settings.
You might also find it helpful to add `natbib`{.latex} to the list of options (`\usepackage[..., natbib]{biblatex}`{.latex}), to load biblatex's `natbib`{.latex} compatibility module, which implements common `natbib`{.latex} commands like `\citet`{.latex}, `\citep`{.latex}, `\citealt`{.latex}, `\citealp`{.latex}, etc.
@@ -225,7 +227,6 @@ NB: biblatex-unified is the only biblatex style that we know of that implements
`biblatex-unified`: We take it that this does not refer to material that has officially been published online, in which case permanent document identifiers such as DOIs and the like will take care of the linking requirements. Rather, we are assuming this refers to "unpublished" material available online (on author's homepages or repositories such as the Semantics Archive or LingBuzz). In this case, just use the `@unpublished` entry-type, give the URL in the `url = {}` field, and if deemed necessary include the date the material was accessed by adding an `urldate = {}` field. The date should be given in YYYY-MM-DD format, e.g. `urldate = {2013-08-11}`. The style will then add the date in parentheses, formatted to the style sheet's rather odd format.
-
# Departures from the Unified Style Sheet
We already mentioned our one major disagreement with the Unified Style Sheet: the incorrect treatment of the "von" part of names.
@@ -237,6 +238,29 @@ We depart from the style sheet only in a few other places. These are actually on
3. In the one case of an online journal article, the Pedersen 2005 entry, the example has a comma between the journal + volume and the URL. We think that this is analogous to the break between journal + volume(issue) and page numbers, and so it should be a period instead of a comma. That is what `biblatex-unified` does.
4. There is a period between the URL and the URL access date (which is in parentheses). We do not think that this period should be there. `biblatex-unified` has a space.
+# Additional remarks on DOIs and other links
+
+The Unified Style Sheet was devised before the widespread use of DOIs to identify the source of materials that are available electronically. It is good practice for authors to include DOIs in their bib-file for anything that has a DOI. Most modern publications prominently display the DOI on the first page of the work and/or in the metadata. Sometimes a DOI is harder to find, but [Google Scholar](http://scholar.google.com/) and [crossref.org/SimpleTextQuery](http://crossref.org/SimpleTextQuery/) can help. `biblatex-unified` displays DOIs as a full link (such as `https://doi.org/10.3765/sp.10.1`) in accordance with [the guidelines imposed by Crossref](https://www.crossref.org/display-guidelines/). If you would like a more compact display (`DOI:10.3765/sp.10.1`), you can achieve this by adding the `compactdois` package option to the `\usepackage`{.latex} command:
+
+```latex
+ \usepackage[backend=biber,
+ style=unified,
+ maxcitenames=3,
+ maxbibnames=99,
+ compactdois]{biblatex}
+```
+
+If you're using the `sp.cls` document class with the `biblatex` option, you should instead add this to the preamble: `\ExecuteBibliographyOptions{compactdois}`{.latex}, if you want compact DOIs
+
+When `biblatex-unified` is used with the up-todate version of the `sp.cls` documentclass, once a bibentry has a DOI, a link in the `url` field will not also be displayed. If you want to achieve this effect with other document classes, you can add the following to your preamble after loading `biblatex-unified`:
+
+```latex
+\DeclareSourcemap{
+ \maps[datatype=bibtex]{
+ \map{\step[fieldsource=doi,final]
+ \step[fieldset=url,null]
+ \step[fieldset=urldate,null]}}}
+```
# Guidelines for the preparation of bib files
@@ -251,16 +275,25 @@ For convenience, we repeat the best practices for preparing your bib file for us
# License and copyright
-Copyright ©2020 Kai von Fintel.
+Copyright ©2022 Kai von Fintel.
-This package is author-maintained. Permission is granted to copy, distribute
-and/or modify this software under the terms of the LaTeX Project Public License,
-version 1.3c.
+This package is author-maintained. Permission is granted to copy, distribute and/or modify this software under the terms of the LaTeX Project Public License, version 1.3c.
-This software is provided “as is,” without warranty of any kind, either
-expressed or implied, including, but not limited to, the implied warranties of
-merchantability and fitness for a particular purpose.
+This software is provided “as is,” without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.
# Changelog and release notes
-**v1.00 (2020-05-25)** Initial CTAN release.
+## v1.00 (2020-05-25) {-}
+
+- Initial CTAN release.
+
+## v1.01 (2020-09-11) {-}
+
+- Added note that `hyperref` is required.
+
+## v1.10 (2022-02-05) {-}
+
+- Internal refactoring of handling of "von"-names
+- Changed `&` to be glued to previous author
+- Added `compactdois` option
+- Added documentation on DOIs
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.pdf
index f068ad0fc1..68d19f6531 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.pdf
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.tex b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.tex
index 815f146267..936bc27ad4 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.tex
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/biblatex-unified.tex
@@ -1,14 +1,14 @@
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
-\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
+\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
%
\documentclass[
]{article}
+\usepackage{amsmath,amssymb}
\usepackage{lmodern}
-\usepackage{amssymb,amsmath}
-\usepackage{ifxetex,ifluatex}
-\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+\usepackage{iftex}
+\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
@@ -40,10 +40,10 @@
pdftitle={biblatex-unified},
pdfauthor={Kai von Fintel (fintel@mit.edu)},
colorlinks=true,
- linkcolor=Maroon,
- filecolor=Maroon,
- citecolor=Blue,
- urlcolor=Blue,
+ linkcolor={Maroon},
+ filecolor={Maroon},
+ citecolor={Blue},
+ urlcolor={Blue},
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\usepackage{color}
@@ -90,10 +90,13 @@
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{5}
+\ifLuaTeX
+ \usepackage{selnolig} % disable illegal ligatures
+\fi
\title{biblatex-unified}
\author{Kai von Fintel (fintel@mit.edu)}
-\date{2020-05-25}
+\date{2022-02-05}
\begin{document}
\maketitle
@@ -196,6 +199,13 @@ but before
\end{Highlighting}
\end{Shaded}
+The unified citation style relies on hyperlinking between in-text
+citations and the bibliography. So, the \texttt{hyperref} package is
+required. It is automatically loaded by \texttt{sp.cls} but if you use a
+different document class and \texttt{hyperref} is not loaded by that
+class, you need to add \texttt{\textbackslash{}usepackage\{hyperref\}}
+to your preamble as well.
+
If you were previously using \VERB|\NormalTok{natbib}|, remove
\VERB|\BuiltInTok{\textbackslash{}usepackage}\NormalTok{\{}\ExtensionTok{natbib}\NormalTok{\}}|
and any accompanying
@@ -246,17 +256,17 @@ to the sample bibliography in the Unified Stylesheet guidelines.
\subsection{Producing the
documentation}\label{producing-the-documentation}}
-The documentation consists of the \VERB|\NormalTok{README.md}| file and
-this PDF. The PDF can be regenerated by typesetting the
-\VERB|\NormalTok{tex}| source file with \VERB|\NormalTok{xelatex}|. The
-\VERB|\NormalTok{tex}| is actually itself generated from the underlying
-\VERB|\NormalTok{md}| markdown file via \VERB|\NormalTok{pandoc}| with
-the following incantation:
+The documentation consists of the \VERB|\ExtensionTok{README.md}| file
+and this PDF. The PDF can be regenerated by typesetting the
+\VERB|\ExtensionTok{tex}| source file with
+\VERB|\ExtensionTok{xelatex}|. The \VERB|\ExtensionTok{tex}| is actually
+itself generated from the underlying \VERB|\ExtensionTok{md}| markdown
+file via \VERB|\ExtensionTok{pandoc}| with the following incantation:
\begin{Shaded}
\begin{Highlighting}[]
-\NormalTok{pandoc {-}f markdown {-}t latex biblatex{-}unified.md {-}s}\DataTypeTok{\textbackslash{} }
-\NormalTok{{-}o biblatex{-}unified.tex {-}{-}highlight{-}style=kate}
+\ExtensionTok{pandoc} \AttributeTok{{-}f}\NormalTok{ markdown }\AttributeTok{{-}t}\NormalTok{ latex biblatex{-}unified.md }\AttributeTok{{-}s}\DataTypeTok{\textbackslash{} }
+\ExtensionTok{{-}o}\NormalTok{ biblatex{-}unified.tex }\AttributeTok{{-}{-}highlight{-}style}\OperatorTok{=}\NormalTok{kate}
\end{Highlighting}
\end{Shaded}
@@ -424,7 +434,7 @@ Sheet.
9. \textbf{Parentheses around ed.~makes sense.} Commas and periods
should be used exclusively to separate citation components (e.g.,
``Author. Year.''), or subcomponents (e.g.~``author1, author2 \&
-author3). Since''ed." is neither a component nor a subcomponent, but a
+author3). Since''ed.'' is neither a component nor a subcomponent, but a
modifier of a component, it should not be separated from the name by a
comma:
\end{quote}
@@ -685,6 +695,57 @@ pertain to any explicit guidelines.
\texttt{biblatex-unified} has a space.
\end{enumerate}
+\hypertarget{additional-remarks-on-dois-and-other-links}{%
+\section{Additional remarks on DOIs and other
+links}\label{additional-remarks-on-dois-and-other-links}}
+
+The Unified Style Sheet was devised before the widespread use of DOIs to
+identify the source of materials that are available electronically. It
+is good practice for authors to include DOIs in their bib-file for
+anything that has a DOI. Most modern publications prominently display
+the DOI on the first page of the work and/or in the metadata. Sometimes
+a DOI is harder to find, but \href{http://scholar.google.com/}{Google
+Scholar} and
+\href{http://crossref.org/SimpleTextQuery/}{crossref.org/SimpleTextQuery}
+can help. \texttt{biblatex-unified} displays DOIs as a full link (such
+as \texttt{https://doi.org/10.3765/sp.10.1}) in accordance with
+\href{https://www.crossref.org/display-guidelines/}{the guidelines
+imposed by Crossref}. If you would like a more compact display
+(\texttt{DOI:10.3765/sp.10.1}), you can achieve this by adding the
+\texttt{compactdois} package option to the
+\VERB|\BuiltInTok{\textbackslash{}usepackage}| command:
+
+\begin{Shaded}
+\begin{Highlighting}[]
+ \BuiltInTok{\textbackslash{}usepackage}\NormalTok{[backend=biber,}
+\NormalTok{ style=unified,}
+\NormalTok{ maxcitenames=3,}
+\NormalTok{ maxbibnames=99,}
+\NormalTok{ compactdois]\{}\ExtensionTok{biblatex}\NormalTok{\}}
+\end{Highlighting}
+\end{Shaded}
+
+If you're using the \texttt{sp.cls} document class with the
+\texttt{biblatex} option, you should instead add this to the preamble:
+\VERB|\FunctionTok{\textbackslash{}ExecuteBibliographyOptions}\NormalTok{\{compactdois\}}|,
+if you want compact DOIs
+
+When \texttt{biblatex-unified} is used with the up-todate version of the
+\texttt{sp.cls} documentclass, once a bibentry has a DOI, a link in the
+\texttt{url} field will not also be displayed. If you want to achieve
+this effect with other document classes, you can add the following to
+your preamble after loading \texttt{biblatex-unified}:
+
+\begin{Shaded}
+\begin{Highlighting}[]
+\FunctionTok{\textbackslash{}DeclareSourcemap}\NormalTok{\{}
+ \FunctionTok{\textbackslash{}maps}\NormalTok{[datatype=bibtex]\{}
+ \FunctionTok{\textbackslash{}map}\NormalTok{\{}\FunctionTok{\textbackslash{}step}\NormalTok{[fieldsource=doi,final]}
+ \FunctionTok{\textbackslash{}step}\NormalTok{[fieldset=url,null]}
+ \FunctionTok{\textbackslash{}step}\NormalTok{[fieldset=urldate,null]\}\}\}}
+\end{Highlighting}
+\end{Shaded}
+
\hypertarget{guidelines-for-the-preparation-of-bib-files}{%
\section{Guidelines for the preparation of bib
files}\label{guidelines-for-the-preparation-of-bib-files}}
@@ -733,7 +794,7 @@ file for use with \texttt{biblatex-unified}.
\hypertarget{license-and-copyright}{%
\section{License and copyright}\label{license-and-copyright}}
-Copyright ©2020 Kai von Fintel.
+Copyright ©2022 Kai von Fintel.
This package is author-maintained. Permission is granted to copy,
distribute and/or modify this software under the terms of the LaTeX
@@ -747,6 +808,40 @@ warranties of merchantability and fitness for a particular purpose.
\section{Changelog and release
notes}\label{changelog-and-release-notes}}
-\textbf{v1.00 (2020-05-25)} Initial CTAN release.
+\hypertarget{v1.00-2020-05-25}{%
+\subsection*{v1.00 (2020-05-25)}\label{v1.00-2020-05-25}}
+\addcontentsline{toc}{subsection}{v1.00 (2020-05-25)}
+
+\begin{itemize}
+\tightlist
+\item
+ Initial CTAN release.
+\end{itemize}
+
+\hypertarget{v1.01-2020-09-11}{%
+\subsection*{v1.01 (2020-09-11)}\label{v1.01-2020-09-11}}
+\addcontentsline{toc}{subsection}{v1.01 (2020-09-11)}
+
+\begin{itemize}
+\tightlist
+\item
+ Added note that \texttt{hyperref} is required.
+\end{itemize}
+
+\hypertarget{v1.10-2022-02-05}{%
+\subsection*{v1.10 (2022-02-05)}\label{v1.10-2022-02-05}}
+\addcontentsline{toc}{subsection}{v1.10 (2022-02-05)}
+
+\begin{itemize}
+\tightlist
+\item
+ Internal refactoring of handling of ``von''-names
+\item
+ Changed \texttt{\&} to be glued to previous author
+\item
+ Added \texttt{compactdois} option
+\item
+ Added documentation on DOIs
+\end{itemize}
\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.bib b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.bib
index 588723c75a..d228283f16 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.bib
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.bib
@@ -49,7 +49,8 @@
Pages = {191-200},
Title = {Korean /s/},
Volume = {11},
- Year = {1983}}
+ Year = {1983},
+ DOI = {10.1016/S0095-4470(19)30815-0}}
@article{iverson:1989,
Author = {Iverson, Gregory K.},
@@ -74,7 +75,8 @@
Publisher = {Mouton de Gruyter},
Series = {Trends in Linguistics},
Title = {Analogy, Leveling, Markedness: {Principles} of Change in Phonology and Morphology},
- Year = {2000}}
+ Year = {2000},
+ DOI = {10.1515/9783110808933}}
@incollection{mccarthy:1999,
Address = {Malden, MA and Oxford},
@@ -120,7 +122,8 @@
Publisher = {Cambridge University Press},
Title = {Syntax},
Volume = {3},
- Year = {1999}}
+ Year = {1999},
+ DOI = {10.1017/CHOL9780521264761.005}}
@phdthesis{stewart:2000,
Address = {Columbus, OH},
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.tex b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.tex
index 06226986d5..a6a2e56170 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.tex
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified-test.tex
@@ -4,7 +4,7 @@
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{csquotes}
-\usepackage[backend=biber,style=unified]{biblatex}
+\usepackage[backend=biber,style=unified,doi=false]{biblatex}
\usepackage{hyperref}
\urlstyle{same}
\pagestyle{empty}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified.bbx
index bb278b4a1c..be261b9f73 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified.bbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-unified/unified.bbx
@@ -9,7 +9,7 @@
%% ---------------------------------------------------------------
%%
-\ProvidesFile{unified.bbx}[2020/06/25 v1.00 biblatex bibliography style]
+\ProvidesFile{unified.bbx}[2022/02/05 v1.10 biblatex bibliography style]
% biblatex by default calls biblatex.def, we add to this authoryear.bbx, which
% in turn loads standard.bbx. So, unified.bbx is built on top of those styles;
@@ -23,12 +23,8 @@
% abbreviate option also abbreviates the names of months. But then
% dateabbrev=false restores the long names of months
-% biblatex has a "useprefix" option, which makes "von" count for
-% alphabetization; the Unified Stylesheet does not want that, so it is important
-% that this option be disabled (even if an author tries to set it to true)
-
\ExecuteBibliographyOptions{%
- sorting=nyt,abbreviate,dateabbrev=false,useprefix=false}
+ sorting=nyt,abbreviate,dateabbrev=false,useprefix=true}
% For backward compatibility: choose labeldate or labeldateparts
% depending on the biblatex version
@@ -51,91 +47,50 @@
\DeclareBibliographyOption{issueandeditor}[false]{%
\settoggle{issueandeditor}{#1}}
-% Formatting directives for name lists
-% ------------------------------------------------------------------
-%
-% In biblatex.def, there are name formats defined: first-last, last-first,
-% last-first/first-last. They could be simplified (we don't need provisions for
-% using initials only, since the Unified Style doesn't do that), but since
-% biblatex.def is loaded automatically, there's no point. The name formats call
-% bibmacros that figure out how to order the internal of name components. These
-% are re-defined here to make sure that "von" is treated as part of the last
-% name (it still doesn't count for sorting -- which is controlled by the
-% \useprefix package option) name:last is used to produce citation labels
-% name:last-first is used to produce the first author's name listing in the
-% alphabetical bibliography
-
-% Also moved the Jr part to after the first name and inserted another comma,
-% because the Unified Stylesheet disagrees with standard.bbx: it wants "Jr." not
-% to be treated as part of the last name.
-
-% The macros here get 4 arguments passed to them. They are: #1 last name, #2
-% first name, #3 von, #4 Jr.
-
-% In biblatex v3.3 and onwards, the name formatting has changed in a big way.
-% See for example:
-% http://tex.stackexchange.com/questions/299036/biblatex-3-3-name-formatting,
-% https://github.com/plk/biblatex/issues/372, and
-% http://www.texdev.net/2016/03/13/biblatex-a-new-syntax-for-declarenameformat/.
-% The name formats in biblatex.def are not called first-last etc. anymore but
-% given-family etc. And while there are safeguard legacy aliases
-% (\DeclareNameAlias{first-last}{given-family}, for example), the new formats
-% then use macros like \usebibmacro{name:family-given}, which of course our old
-% redefinitions didn't adjust. So, for newer biblatex, we need to do new
-% versions of \renewbibmacro{name:...}.
-
-%% Redefinitions of name:last and name:last-first for biblatex versions before
-%% v3.3
-
-\renewbibmacro*{name:last}[4]{%
- \usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}
- {}
- {\ifcapital
- {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
- {\mkbibnameprefix{#3}\isdot}%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \mkbibnamelast{#1}}%
-
-\renewbibmacro*{name:last-first}[4]{%
- \usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifblank{#3}{}{%
- \mkbibnameprefix{#3}\isdot%
- \ifpunctmark{'}{}{\bibnamedelimc}}%
- \mkbibnamelast{#1}\isdot
- \ifblank{#2}{}{\addcomma\bibnamedelimd\mkbibnamefirst{#2}\isdot}%
- \ifblank{#4}{}{\addcomma\bibnamedelimd\mkbibnameaffix{#4}\isdot}}
-
-%% Redefinitions of name:family and name:family-given for biblatex ever since
-%% v3.3
-
-\renewbibmacro*{name:family}[4]{%
- \usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Treating prefixes like "von" as part of the last name, but ignore them for
+% sorting (relies on useprefix=true default option)
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\DeclareSortingNamekeyTemplate{
+ \keypart{
+ \namepart{family}
+ }
+ \keypart{
+ \namepart{prefix}
+ }
+ \keypart{
+ \namepart{given}
+ }
+ \keypart{
+ \namepart{suffix}
+ }
+}
+
+\renewbibmacro{begentry}{\midsentence}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Moving "Jr." to after the first name
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\renewbibmacro*{name:family-given}[4]{%
+ \usebibmacro{name:delim}{#3#1}%
+ \usebibmacro{name:hook}{#3#1}%
+ \mkbibcompletenamefamilygiven{%
\ifdefvoid{#3}
{}
{\ifcapital
{\mkbibnameprefix{\MakeCapital{#3}}\isdot}
{\mkbibnameprefix{#3}\isdot}%
\ifprefchar{}{\bibnamedelimc}}%
- \mkbibnamefamily{#1}\isdot}%
-
-\renewbibmacro*{name:family-given}[4]{%
- \usebibmacro{name:delim}{#3#1}%
- \usebibmacro{name:hook}{#3#1}%
- \ifdefvoid{#3}
- {}
- {\mkbibnameprefix{#3}\isdot%
- \ifprefchar{}{\bibnamedelimc}}%
- \mkbibnamefamily{#1}\isdot
- \ifdefvoid{#2}
- {}
- {\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}%
- \ifdefvoid{#4}
- {}
- {\addcomma\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ \mkbibnamefamily{#1}\isdot
+ \ifdefvoid{#2}
+ {}
+ {\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}%
+ \ifdefvoid{#4}
+ {}
+ {\revsdnamepunct\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
+ }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Various bibmacros used in producing the bibliography
@@ -413,8 +368,8 @@
% This gets rid of the Oxford comma in name lists and uses the
% ampersand rather than "and":
-\renewcommand*{\finalnamedelim}{\addspace\&\addspace}
-\renewcommand*{\finallistdelim}{\addspace\&\addspace}
+\renewcommand*{\finalnamedelim}{\addnbspace\&\addspace}
+\renewcommand*{\finallistdelim}{\addnbspace\&\addspace}
% no colon after "In" in incollection entries (overriding
% biblatex.def):
@@ -450,11 +405,6 @@
\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}}
\DeclareFieldFormat{pages}{#1} % no pp. prefix, took \mkpageprefix out [kvf]
-\DeclareFieldFormat{doi}{%
- \ifhyperref
- {\href{https://doi.org/#1}{\nolinkurl{https://doi.org/#1}}}
- {\nolinkurl{https://doi.org/#1}}}
-\DeclareFieldFormat{url}{\url{#1}}
% This is for printing the volume field of a proceedings with an ISSN
% as an article in accordance with the unified style sheet guidelines
@@ -462,6 +412,30 @@
\DeclareFieldFormat{volume:unified:proc-as-article}{#1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Display of DOIs etc.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% The unified style displays DOIs according to the Crossref guidelines as full
+% `https://doi.org/...` links. But the user can choose to give the `compactdois'
+% option when loading biblatex, which will use a more compact display.
+
+\newtoggle{unified:compactdois}
+\DeclareBibliographyOption[boolean]{compactdois}[true]{%
+ \settoggle{unified:compactdois}{#1}}
+
+\DeclareFieldFormat{doi}{%
+ \iftoggle{unified:compactdois}%
+ {\mkbibacro{DOI}\addcolon\space%
+ \ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{#1}}}
+ {\nolinkurl{https://doi.org/#1}}}
+ {\ifhyperref
+ {\href{https://doi.org/#1}{\nolinkurl{https://doi.org/#1}}}
+ {\nolinkurl{https://doi.org/#1}}}}
+
+\DeclareFieldFormat{url}{\url{#1}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The bibliography drivers, specifying the formats of each type of
% entry in the bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%