-
Notifications
You must be signed in to change notification settings - Fork 2
/
luanan.bbx
116 lines (116 loc) · 3.11 KB
/
luanan.bbx
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%------------------------------------------------------------------------------------%
% style cho luan an tien si va luan van thac si cua 1 so truong dai hoc o Vietnam. %
% Dang Minh Tuan, [email protected], ver 1.2, 12-5-2016. %
%------------------------------------------------------------------------------------%
\ProvidesFile{luanan.bbx}
\RequireBibliographyStyle{standard}
\RequireBibliographyStyle{numeric}
%\DeclareFieldFormat[article,incollection,unpublished]{title}{#1}
%\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}}
\renewcommand\labelnamepunct{\addcomma\space}
\renewcommand\newblockpunct{\addcomma\space}
\renewcommand\newunitpunct{\addcomma\space}
% \DeclareBibliographyDriver{online}{%
% \usebibmacro{bibindex}%
% \usebibmacro{begentry}%
% \setunit{\labelnamepunct}\newblock
% \printfield{author}
% \newunit
% \usebibmacro{title}%
% \newunit\newblock
% \printfield{url}%
% }
\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
{ (}\printfield{year}{)}
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{bytranslator+others}%
\newunit\newblock
\printfield{version}%
\newunit\newblock%
\usebibmacro{journal}%+volumes+series}%
\newunit\newblock%
\iffieldundef{volume}
{}
{\printfield{volume}}
\iffieldundef{number}
{}
{\printtext{(}\printfield{number}\printtext{)}}
\newunit
\usebibmacro{byeditor+others}%
\newunit
\usebibmacro{note+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{issn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{book}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/editor+others/translator+others}%
%\newunit
{ (}\printfield{year}{)}
\setunit{\labelnamepunct}\newblock
\usebibmacro{maintitle+title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\newunit\newblock
\printfield{edition}%
\newunit
\iffieldundef{maintitle}
{\printfield{volume}%
\printfield{part}}
{}%
\newunit
\printfield{volumes}%
\newunit\newblock
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%
\newunit\newblock
% \usebibmacro{publisher+location+date}%
\newunit
\printlist{publisher}%
\newunit
\iflistundef{location}
{}
{\printlist{location}}
\newunit\newblock
\usebibmacro{chapter+pages}%
\newunit
\printfield{pagetotal}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{isbn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\newunit\newblock
\iftoggle{bbx:related}
{\usebibmacro{related:init}%
\usebibmacro{related}}
{}%
\usebibmacro{finentry}}