From 9cd23851fe60ab020619f71e6f2d5d8ca159663f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 10 Oct 2014 22:04:37 +0000 Subject: biblatex-realauthor (10oct14) git-svn-id: svn://tug.org/texlive/trunk@35348 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-realauthor/realauthor.bbx | 57 ++++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx') diff --git a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx index 9a10ff0cefd..c0967abfd60 100644 --- a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx @@ -35,9 +35,15 @@ \DeclareNameFormat{realauthor}{% \mkbibrealauthor{% - \iffirstinits - {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}} + \ifboolexpr{test {\ifbibliography} and test {\ifnameundef{author}}}% + {\iffirstinits% + {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}% + {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}% + }% + {\iffirstinits% + {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}}% {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}% + }% \usebibmacro{name:andothers}}} @@ -50,10 +56,55 @@ \printnames{realauthor}% }{}{} +\xpatchbibmacro{author/editor+others} + {not test {\ifnameundef{author}}} + {not (test {\ifnameundef{author}} and test {\ifnameundef{realauthor}})} + {} + {} + + +\xpatchbibmacro{author/translator+others} + {not test {\ifnameundef{author}}} + {not (test {\ifnameundef{author}} and test {\ifnameundef{realauthor}})} + {} + {} + \xpatchbibmacro{author/editor+others/translator+others} {not test {\ifnameundef{author}}} {not (test {\ifnameundef{author}} and test {\ifnameundef{realauthor}})} {} {} -\endinput \ No newline at end of file +% Sorting + + +\DeclareSortingScheme{anonymous+realauthor}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{labelname} + \field{realauthor} + \literal{0000} + } + \sort{ + \field{sorttitle} + \field{title} + \field{maintitle} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + + +\endinput -- cgit v1.2.3