diff options
author | Karl Berry <karl@freefriends.org> | 2014-10-27 22:15:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-10-27 22:15:06 +0000 |
commit | 015111b3269fcfe362d570771acbccf5276900a2 (patch) | |
tree | 655120037947bf3ab5a9d97a9ade7514597985e6 /Master/texmf-dist/tex | |
parent | 9d5786760b90c19298c64c07345a1e15617f5103 (diff) |
biblatex-realauthor (27oct14)
git-svn-id: svn://tug.org/texlive/trunk@35452 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx | 29 |
1 files changed, 27 insertions, 2 deletions
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}{ |