summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-archaeology/authoryear-archaeology.bbx
blob: a1f7393d14c3e8ecf1e0298d54c86fc654d6ed52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
%%
%% This is file `authoryear-archaeology.bbx',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% biblatex-archaeology.dtx  (with options: `authoryearBBX,authoryearsharedBBX')
%% 

\ProvidesFile{authoryear-archaeology.bbx}
[2019/12/30 v2.2 biblatex-archaeology bibliography style (IB)]
\def\archaeobibstyletitle{\blxarch@style@ay}
\RequireBibliographyStyle{authoryear}
\def\blxarch@fork@authordate{}
\RequirePackage{biblatex-archaeology}
\ExecuteBibliographyOptions{
    mergedate=false,
    labeldate=true,
    sorting=nyvc,
    uniquename=init,
    uniquelist=false,
}
\def\blxarch@settabbedlabeldate#1{%
    \xpatchbibdriver{#1}{\setunit{\printdelim{nametitledelim}}\newblock}
        {\setunit{\printdelim{nametitledelim}}%
            \iftabbedlabeldate{&}{\newblock}}
            {}{Patching driver '#1' failed (a)}
    \xapptobibdriver{#1}{\end{tabbedlabeldate}}
    {}{Patching driver '#1' failed (b)}
}
\blxarch@settabbedlabeldate{article}
\blxarch@settabbedlabeldate{book}
\blxarch@settabbedlabeldate{inbook}
\blxarch@settabbedlabeldate{misc}
\blxarch@settabbedlabeldate{online}
\blxarch@settabbedlabeldate{periodical}
\blxarch@settabbedlabeldate{thesis}
\blxarch@settabbedlabeldate{unpublished}
\xpatchbibdriver{inreference}{{finentry}}{{finentry}\end{tabbedlabeldate}}
  {}{Patching driver 'inreference' failed (1)}
\DeclareNameAlias{sortname}{family-given/given-family}
\renewbibmacro*{labeltitle}{%
  \iffieldundef{label}
    {\iffieldundef{shorttitle}
       {\printfield{title}%
        \clearfield{title}}
       {\printfield[label]{shorttitle}}}
    {\printfield{label}}}
\xpretobibmacro{begentry}{%
    \csuse{blxarch@issuedate}%
    \iffieldequalstr{labelnamesource}{anonstring}
        {\ifrepeatlabel{false}
            {\ifbibliography
                {\savename*{anonstring}{\blxarch@field@anonstring}%
                 \restorename{author}{\blxarch@field@anonstring}%
                }
                {}}
            {}}
        {}%
    \ifentrytype{periodical}
        {\ifboolexpr{
            test {\ifcitation}
            or
            not test {\ifrepeatlabel{false}}
         }
            {\clearfield{shorttitle}}
            {}}
        {}%
}{}{Patching bibmacro 'begentry' failed (1)}
\xpretobibmacro{finentry}{%
    \restorebibmacro{issue+date}%
}{}{Patching bibmacro 'finentry' failed (2)}
\xpatchbibmacro{author}{\printnames{author}}{%
    \ifidemincitation
        {\printtext{%
            \bibstring{idem\thefield{gender}}}}
        {\usebibmacro{sortnamelist}{author}}}
        {}{Patching bibmacro 'author' failed (1)}
\xpatchbibmacro{author}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}
  {}{Patching bibmacro 'author' failed (2)}
\xpatchbibmacro{bbx:editor}{\printnames{editor}}{%
    \ifidemincitation
        {\printtext{%
            \bibstring{idem\thefield{gender}}}}
        {\usebibmacro{sortnamelist}{editor}}}
        {}{Patching bibmacro 'bbx:editor' failed (1)}
\xpatchbibmacro{bbx:translator}{\printnames{translator}}{%
    \ifidemincitation
        {\printtext{%
            \bibstring{idem\thefield{gender}}}}
        {\usebibmacro{sortnamelist}{translator}}}
        {}{Patching bibmacro 'bbx:translator' failed}
\xpatchbibmacro{bbx:editor}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}
  {}{Patching bibmacro 'bbx:editor' failed (2)}
\xpatchbibmacro{bbx:translator}{\usebibmacro{date+extradate}}{\usebibmacro{labeldate+edition}}
  {}{Patching bibmacro 'bbx:translator' failed}
\endinput
%%
%% End of file `authoryear-archaeology.bbx'.