summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2005ay.bbx
blob: 44d089fdddd10b3f1b3a99b3b5d06f0904778338 (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
%%
%% ---------------------------------------------------------------
%% Maintained by huzhenzhen
%% E-mail: hzzmail@163.com
%% Released under the LaTeX Project Public License v1.3c or later
%% ---------------------------------------------------------------
%%注意因为使用了stylemap所以只兼容了biblatex3.7以后的版本
\ProvidesFile{gb7714-2005ay.bbx}[2021/05/16 v1.0 a biblatex bibliography style for GB/T 7714-2005]


%==================================================
%加载gb样式
%==================================================
\RequireBibliographyStyle{gb7714-2015ay}

%==================================================
%与2015的主要差异:
%1.无doi
%2.文献类型标志(电子文献必备,其他文献任选),引用日期(联机文献必备,其他电子文献任选),这条差异无需处理
%3.用汉语拼音书写的中国著者姓名不得缩写。标准说是这么说的,但没有任何示例。需要的话可以在bib条目中设置nameformat=quanpin
%4.无关于页码、获取和访问路径的说明。这条差异无需处理
%5.没有A/CM/DS/Z等新的类型
%==================================================


%==================================================
%选项设置
%==================================================
    \ExecuteBibliographyOptions{
    doi=false,
    url=false,
    }

%==================================================
%类型转换回来
%==================================================
    \DeclareStyleSourcemap{
        \maps[datatype=bibtex]{
            \map[overwrite]{%
                \pertype{dataset}
                \step[fieldset=usera, fieldvalue={Z}]%
            }
            \map[overwrite]{%
                \pertype{archive}
                \step[fieldset=usera, fieldvalue={Z}]%
            }
            \map[overwrite]{%
                \pertype{map}
                \step[fieldset=usera, fieldvalue={Z}]%
            }
        }
    }