-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy paththesis-uibe-numeric.tex
189 lines (166 loc) · 4.98 KB
/
thesis-uibe-numeric.tex
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
% !Mode:: "TeX:UTF-8"
% 用于测试gb7714-2015ms样式,实现一种对外经贸大学文献表格式
% 仅实现了article类型的设计。
\documentclass{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage[colorlinks]{hyperref}
\usepackage[paperwidth=21cm,paperheight=29cm,top=1cm,bottom=1cm,left=1cm,right=1cm]{geometry}
\usepackage{xltxtra,mflogo,texnames}
\usepackage[backend=biber,style=gb7714-2015ms,gbstyle=false,gbnamefmt=familyahead]{biblatex}%sorting=nyt
\makeatletter
%%全局标点设置
\DeclareDelimFormat{nameyeardelim}{,}%\addcomma\addspace
\DeclareDelimFormat[bib,biblist]{nameyeardelim}{,}%\addcomma\addspace
\DeclareDelimFormat{bibpagespunct}{\iffieldequalstr{userd}{chinese}{,}{,}}%\addcomma\addspace
\renewcommand*{\newunitpunct}{,}%\addcomma\space %,
\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
\DeclareDelimFormat{multinamedelim}{,}%[bib,biblist]
\DeclareDelimFormat{finalnamedelim}{,}
\DeclareDelimFormat{andothersdelim}{,}
%%本地化字符串设置
\def\str@qicn{期}
\NewBibliographyString{qicn}
\DefineBibliographyStrings{english}{
and = {,},%将第2和3人名间的and符号改成逗号,
andcn = {,},%and本地化字符串的中文对应词
qicn ={\str@qicn},
in={},
}
%%英文文献的相关设置
\renewbibmacro*{in:}{%
\printtext{%
\bibstring{in}}}%\intitlepunct
\newbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addspace}}%
\usebibmacro{volume+number+eid}%
% \setunit{\addspace}%
% \usebibmacro{issue+date}%
% \setunit{\addcolon\space}%
% \usebibmacro{issue}%
\newunit}
\renewbibmacro*{issue+date}{%
\printtext{%
\printfield{issue}%
\setunit*{\addspace}%
\usebibmacro{date}}%
\newunit}
\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\printdelim{nametitledelim}}\newblock
\usebibmacro{title}%
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{bytranslator+others}%
\newunit\newblock
\printfield{version}%
\newunit\newblock
\usebibmacro{in:}%
\usebibmacro{journal+issuetitle}%
\newunit
\usebibmacro{byeditor+others}%
\newunit
\usebibmacro{note+pages}%
\newunit\newblock
\usebibmacro{issue+date}%
\iftoggle{bbx:isbn}
{\printfield{issn}}
{}%
\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}}
%%中文文献的相关设置
\AtEveryBibitem{
\ifboolexpr{%
togl{bbx:gbstyle} or test {\iffieldequalstr{userd}{chinese}}%
}%
{%
\DeclareFieldFormat[article]{title}{#1}
%
% 调整期刊名的格式
%
% v1.0k,20180425,增加了字体控制命令,hzz
\renewbibmacro*{journal+issuetitle}{\bibpubfont%源来自standard.bbx
\usebibmacro{journal}%
\setunit*{,}%修改为增加一个逗号
\usebibmacro{issue+date}%
\usebibmacro{volume+number+eid}%把卷期放到年份后面
%\newunit
}%
%
% 调整期刊卷和期的格式
%
\renewbibmacro*{volume+number+eid}{%源来自standard.bbx
\bibstring{serialcn}%
\printfield{number}%
\bibstring{qicn}%
}%
\DeclareDelimFormat[bib,biblist]{multinamedelim}{,}
\DeclareDelimFormat[bib,biblist]{finalnamedelim}{,}
\DeclareDelimFormat[bib,biblist]{andothersdelim}{,}
}{}
}%
\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{熊平2005--,
author = {熊平 and 吴颉},
title = {从交易费用的角度谈如何构建药品流通的良性机制},
Journaltitle = {中国物价},
DATE = {2005},
number = {8},
pages = {42-45},
}
@ARTICLE{xiong2005--,
author = {Xiong, Ping and Wu, Xie},
title = {Discussion on how to construct benign medicine circulantion mechanism fromtranaction cosperspective},
Journaltitle = {China price},
DATE = {2005},
number = {8},
pages = {42-45},
}
@Article{Dowler1995-5-26,
author = {Dowler, L},
title = {The research university’s dilemma: resource sharing and research in a transinstitutional environment},
journal = {Journal of library administration},
year = {1995},
volume = {21},
number = {1/2},
pages = {5--26},
}
@Article{王临慧2010-147,
author = {王临慧 and others},
title = {天津方言的源流关系刍议},
journal = {山西师范大学学报(社会科学版)},
year = {2010},
volume = {37},
number = {4},
pages = {147},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\section{对外经贸大学硕士论文参考文献示例-期刊文献}
\nocite{*}
\printbibliography[heading=subbibliography,title={参考文献}]
\end{document}