From 015111b3269fcfe362d570771acbccf5276900a2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 27 Oct 2014 22:15:06 +0000 Subject: biblatex-realauthor (27oct14) git-svn-id: svn://tug.org/texlive/trunk@35452 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-realauthor/realauthor.bbx | 29 ++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-realauthor') diff --git a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx index c0967abfd60..884e1a81063 100644 --- a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx @@ -21,6 +21,17 @@ \RequirePackage{xpatch} +% LabelName + + +\DeclareLabelname{% + \field{shortauthor} + \field{author} + \field{realauthor} + \field{shorteditor} + \field{editor} + \field{translator}} + % Command for being redefined \newcommand{\mkbibrealauthor}[1]{% @@ -48,7 +59,7 @@ % Patching some standard bibmacros - +%% For the drivers \xapptobibmacro{author}{% \ifnameundef{author}{}{% \ifnameundef{realauthor}{}{\addspace\nopunct}% @@ -75,7 +86,21 @@ {} {} -% Sorting +%% For the shorter version + +\newbibmacro{realauthor:as:labelname}{% + \ifnamesequal{labelname}{realauthor}% + {\printnames{realauthor}}% + {\printnames{labelname}% + \ifnameundef{realauthor}{}{\addspace\nopunct}% + \printnames{realauthor}% + }% +} +\xpatchbibmacro{cite:name}{\printnames{labelname}}{\usebibmacro{realauthor:as:labelname}}{}{} + + + +% Sorting (obsolete) \DeclareSortingScheme{anonymous+realauthor}{ -- cgit v1.2.3