summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-anonymous
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-10-27 22:14:49 +0000
committerKarl Berry <karl@freefriends.org>2014-10-27 22:14:49 +0000
commit9d5786760b90c19298c64c07345a1e15617f5103 (patch)
treea2818b2cd89f9f568a193bb89aa8edd1e2c553ed /Master/texmf-dist/tex/latex/biblatex-anonymous
parent3db680aa56c30ff89687d0536b35052c4d54d309 (diff)
biblatex-anonymous (27oct14)
git-svn-id: svn://tug.org/texlive/trunk@35451 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-anonymous')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty31
1 files changed, 10 insertions, 21 deletions
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