From c0b98557de2db1fda9a5d53cecd1c6ea228b4954 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Oct 2016 21:29:13 +0000 Subject: biblatex-anonymous (24oct16) git-svn-id: svn://tug.org/texlive/trunk@42343 c570f23f-e606-0410-a88d-b1316a301751 --- .../biblatex-anonymous/biblatex-anonymous.sty | 35 +++++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-anonymous') diff --git a/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty b/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty index 20ba199e0ae..6a375cd7f1d 100644 --- a/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty +++ b/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty @@ -12,7 +12,7 @@ % % The Current Maintainer of this work is Maïeul Rouquette \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-anonymous}[2016/09/25 v2.4.0 Manage anonymous works with biblatex] +\ProvidesPackage{biblatex-anonymous}[2016/10/23 v2.5.0 Manage anonymous works with biblatex] %1. Just execute bibliographic option for some entries type \ExecuteBibliographyOptions[% @@ -47,13 +47,7 @@ \fi % 2. Sorting -\DeclareSortingScheme{anonymous}{ - \sort{ - \field{presort} - } - \sort[final]{ - \field{sortkey} - } +\def\bbx@anonymous@sorting{ \sort{ \field{sortname} \field{author} @@ -74,6 +68,31 @@ \literal{0000} } } +\DeclareSortingScheme{anonymous}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \bbx@anonymous@sorting +} + +\AtEndPreamble{ + \ifundef{\bbx@manuscripts@sorting}{}% + { + \DeclareSortingScheme{anonymous+manuscripts}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \bbx@anonymous@sorting + \bbx@manuscripts@sorting + } + } +} %%3.1 And so, prevent the spurious space in case of \cites command %%% Hack suggested on https://github.com/plk/biblatex/issues/285#issuecomment-226918950 -- cgit v1.2.3