summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-morenames
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-morenames')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-morenames/morenames.bbx51
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-morenames/morenames.dbx2
2 files changed, 41 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.bbx b/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.bbx
index ad970f67929..8dc09b4b8d5 100644
--- a/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.bbx
@@ -13,7 +13,7 @@
% The Current Maintainer of this work is Maïeul Rouquette
% This work consists of the files realauthor.dbx, realauthor.bbx
\ProvidesFile{morenames.bbx}
-[2016/06/07 v1.1.0 biblatex bibliography style to have more name fields (MR)]
+[2016/09/08 v1.2.0 biblatex bibliography style to have more name fields (MR)]
%0. Preamble
@@ -28,6 +28,26 @@
\inherit{editor}{maineditor}
}
+%1.two optionnal data inheritances
+\providetoggle{IneditorFromEditor}%
+\providetoggle{BookineditorFromEditor}%
+\AtEndPreamble{%
+ \iftoggle{IneditorFromEditor}{%
+ \DeclareDataInheritance{book,mvbook}{inbook}{%
+ \inherit{editor}{ineditor}%
+ \inherit{editor}{editor}%
+ }%
+ }%
+ {}
+ \iftoggle{BookineditorFromEditor}{%
+ \DeclareDataInheritance{book,mvbook}{bookinbook}{%
+ \inherit{editor}{bookineditor}%
+ \inherit{editor}{editor}%
+ }%
+ }%
+ {}%
+}
+
%2. New label names
\DeclareLabelname[collection,proceedings,reference]{%
@@ -169,17 +189,26 @@
{\usebibmacro{bytypestrg}{ineditor}{editor}%
\setunit{\addspace}%
\printnames[byeditor]{ineditor}%
- \newunit}%
+ \newunit%
+ \ifnamesequal{ineditor}{editor}%
+ {\clearname{editor}}%
+ {}%
+ }%
}
-\newbibmacro*{bybookineditor}{%
- \ifnameundef{bookineditor}
- {}
- {\usebibmacro{bytypestrg}{bookineditor}{editor}%
- \setunit{\addspace}%
- \printnames[byeditor]{bookineditor}%
- \newunit}%
- }
-
+\ifdefined\abx@macro@bybookineditor\else%
+ \newbibmacro*{bybookineditor}{%
+ \ifnameundef{bookineditor}
+ {}%
+ {\usebibmacro{bytypestrg}{bookineditor}{editor}%
+ \setunit{\addspace}%
+ \printnames[byeditor]{bookineditor}%
+ \newunit%
+ \ifnamesequal{bookineditor}{editor}%
+ {\clearname{editor}}%
+ {}%
+ }%
+ }%
+\fi%
\endinput
diff --git a/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.dbx b/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.dbx
index 3ceaec400b0..920fcc6c8f7 100644
--- a/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.dbx
+++ b/Master/texmf-dist/tex/latex/biblatex-morenames/morenames.dbx
@@ -13,7 +13,7 @@
% The Current Maintainer of this work is Maïeul Rouquette
% This work consists of the files realauthor.dbx, realauthor.bbx
\ProvidesFile{morenames.dbx}
-[2016/06/07 v1.1.0 biblatex bibliography style to have more name fields (MR)]
+[2016/09/08 v1.2.0 biblatex bibliography style to have more name fields (MR)]
%1. New fields
\DeclareDatamodelFields[type=list,datatype=name]{