summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx57
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