From 9d5786760b90c19298c64c07345a1e15617f5103 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 27 Oct 2014 22:14:49 +0000 Subject: biblatex-anonymous (27oct14) git-svn-id: svn://tug.org/texlive/trunk@35451 c570f23f-e606-0410-a88d-b1316a301751 --- .../biblatex-anonymous/biblatex-anonymous.sty | 31 +++++++--------------- 1 file changed, 10 insertions(+), 21 deletions(-) (limited to 'Master/texmf-dist/tex') 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 9719da65668..cbcd78500ff 100644 --- a/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty +++ b/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty @@ -12,9 +12,12 @@ % % The Current Maintainer of this work is Maïeul Rouquette \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-anonymous}[2014/06/17 v1.0.0 Manage anonymous works with biblatex] -\RequirePackage{xpatch} -% 1. Sorting +\ProvidesPackage{biblatex-anonymous}[2014/10/27 v2.0.0 Manage anonymous works with biblatex] + +%1. Just execute bibliographic option for some entries type +\ExecuteBibliographyOptions[book, bookinbook, bookinarticle, bookinincollection, mvbook,inbook]{useeditor=false,usetranslator=false} + +% 2. Sorting, kept for backward compatibility \DeclareSortingScheme{anonymous}{ \sort{ @@ -43,24 +46,10 @@ } } -%2. Labelname - -\DeclareLabelname[book, bookinbook, bookinarticle,mvbook,inbook]{\field{author}} - -%3. Book : print only the author name - -\xpatchbibdriver{book}{\usebibmacro{author/editor+others/translator+others}}{\usebibmacro{author}}{}{} - -% 4. French: directeur devient éditeur +%%3.1 And so, prevent the spurious space in case of \cites command \DefineBibliographyStrings{french}{% - byeditor = \ifboolexpr{(% - test {\iffieldequalstr{entrytype}{bookinbook}}% - or test {\iffieldequalstr{entrytype}{inbook}}% - or test {\iffieldequalstr{entrytype}{book}}% - or test {\iffieldequalstr{entrytype}{mvbook}}% - or test {\iffieldequalstr{entrytype}{bookinarticle}}% - )}% - {{éd\adddot}}{{dir\adddotspace}}, + byeditor = % + {\ifuseeditor{dir\adddotspace}{éd\adddot}}, } -\endinput \ No newline at end of file +\endinput -- cgit v1.2.3