diff options
author | Karl Berry <karl@freefriends.org> | 2014-10-10 22:04:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-10-10 22:04:37 +0000 |
commit | 9cd23851fe60ab020619f71e6f2d5d8ca159663f (patch) | |
tree | 533723570c33234a714408fc1c06de885c344d4f /Master/texmf-dist/tex/latex/biblatex-realauthor | |
parent | a9feb4ef4a79b2a7d1ceb7df7c9fbacd7f9f3b86 (diff) |
biblatex-realauthor (10oct14)
git-svn-id: svn://tug.org/texlive/trunk@35348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-realauthor')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx | 57 |
1 files changed, 54 insertions, 3 deletions
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 |