summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-archaeology/authoryear-comp-archaeology.bbx
blob: 6669fdc63a6167d877690beb07efebba5ed0e8b1 (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
%%
%% This is file `authoryear-comp-archaeology.bbx',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% biblatex-archaeology.dtx  (with options: `authoryearcompBBX,authoryearsharedBBX')
%% 

\ProvidesFile{authoryear-comp-archaeology.bbx}
[2018/11/20 v2.1 biblatex-archaeology bibliography style (IB)]
\RequireBibliographyStyle{authoryear-comp}
\def\archaeobibstyletitle{\blxarch@style@ayc}
\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}
\xpretobibmacro{begentry}{%
    \csuse{blxarch@issuedate}%
    \iffieldequalstr{labelnamesource}{anonstring}
        {\ifrepeatlabel{false}
            {\ifbibliography
                {\savename*{anonstring}{\blxarch@field@anonstring}%
                 \restorename{author}{\blxarch@field@anonstring}%
                }
                {}}
            {}}
        {}%
}{}{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-comp-archaeology.bbx'.