-
Notifications
You must be signed in to change notification settings - Fork 84
/
opt-eg-dblang.tex
193 lines (156 loc) · 5.76 KB
/
opt-eg-dblang.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
190
191
192
% 测试双语对照文献-两种方法
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{toolbox}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\usepackage[top=10pt,bottom=10pt,left=1cm,right=1cm]{geometry}
\usepackage{xltxtra,mflogo,texnames}
\usepackage[backend=biber,style=gb7714-2015,gbpub=true]{biblatex}%sorting=nyt
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{易仕和2013--,
Title = {超声速和高超声速喷管设计},
Address = {北京},
Author = {易仕和 and 赵玉新 and 何霖 and 张敏莉},
Publisher = {国防工业出版社},
Year = {2013}
}
@Book{Yi2013--,
Title = {Supersonic and hypersonic nozzle design},
Address = {Beijing},
Author = {Yi, Shi he and Zhao, Yu xin and He, Lin and Zhang, Min li},
Publisher = {National Defense Industry Press},
Year = {2013}
}
@Article{张敏莉2007-500-503,
Title = {超声速短化喷管的设计和试验研究},
Author = {张敏莉 and 易仕和 and 赵玉新},
Journal = {空气动力学报},
Number = {4},
Pages = {500-503},
Volume = {25},
Year = {2007}
}
@Article{Zhang2007-500-503,
Title = {The design and experimental investigations of supersonic length shorted nozzle},
Author = {Zhang, Min-li and Yi, Shi-he and Zhao, Yu-xin},
Journal = {ACTA AERODYNAMICA SINICA},
Number = {4},
Pages = {500-503},
Volume = {25},
Year = {2007}
}
@Inproceedings{FOURNEY1971-17-38,
Title = {Advances in holographic photoelasticity},
Author = {M E FOURNEY},
Booktitle = {Symposium on Applications of Holography in Mechanics, August 23-25, 1971, University of Southern California, Los Angeles, California},
Date = {1971},
Pages = {17-38},
Publisher = {ASME},
Location = {New York}
}
@BOOK{张伯伟2002--,
AUTHOR = {张伯伟},
LOCATION = {南京},
PUBLISHER = {江苏古籍出版社},
DATE = {2002},
KEYWORDS = {张伯伟2002--},
PAGES = {288},
TITLE = {全唐五代诗格会考},
language = {chinese},
url={http://www.cnki.com},
urldate={2018-03-06}
}
@PROCEEDINGS{雷光春2012--,
AUTHOR = {雷光春},
LOCATION = {北京},
PUBLISHER = {海洋出版社},
DATE = {2012},
KEYWORDS = {雷光春2012--},
TITLE = {综合湿地管理:综合湿地管理国际研讨会论文集},
language = {chinese}
}
@REPORT{汤万金2013-09-30--,
AUTHOR = {汤万金 and 杨跃翔 and 刘文 and others},
URL = {http://www.nstrs.org.cn},
DATE = {2013-09-30},
KEYWORDS = {汤万金2013-09-30--},
TITLE = {人体安全重要技术标准研制最终报告:7178999X},
URLDATE = {2014-06-24},
language = {chinese}
}
@THESIS{马欢2011-27-27,
AUTHOR = {马欢},
INSTITUTION = {清华大学},
LOCATION = {北京},
URL = {http://www.cnki.net},
DATE = {2011},
KEYWORDS = {马欢2011-27-27},
PAGES = {27},
TITLE = {人类活动影响下海河流域典型区水循环变化分析},
URLDATE = {2013-10-14},
language = {chinese}
}
@INBOOK{白书农1998-146-163,
AUTHOR = {白书农},
BOOKAUTHOR = {李承森},
LOCATION = {北京},
PUBLISHER = {高等教育出版社},
BOOKTITLE = {植物科学进展},
DATE = {1998},
KEYWORDS = {白书农1998-146-163},
PAGES = {146--163},
TITLE = {植物开花研究},
language = {chinese}
}
@ARTICLE{丁文祥2000--,
AUTHOR = {丁文祥},
DATE = {2000-11-20},
JOURNALTITLE = {中国青年报},
KEYWORDS = {丁文祥2000--,news},
NOTE = {news},
NUMBER = {15},
TITLE = {数字革命与竞争国际化},
language = {chinese}
}
@ARTICLE{wang2006another,
AUTHOR = {Wang, Peng-fei and Wen, Yi},
PUBLISHER = {Elsevier},
DATE = {2006},
JOURNALTITLE = {Journal of Economic Dynamics and Control},
NUMBER = {12},
PAGES = {2533--2552},
TITLE = {Another look at sticky prices and output persistence},
VOLUME = {30},
nameformat={pinyin},
}
\end{filecontents}
\addbibresource{\jobname.bib}
%biblatex 3.7及以上版本可以使用多个stylesourcemap
%3.7版及以下版本使用set没有问题,所以从3.8版开始使用related的方法
\providetoggle{relateddblan}
\makeatletter
\@ifpackagelater{biblatex}{2016/12/06}{\defdoublelangentry{易仕和2013--}{Yi2013--}\toggletrue{relateddblan}}{}
\makeatother
\addbibresource[location=local]{example.bib}
\begin{document}
\section{测试:中英文对照文献}
\begin{refsection}
\defbibentryset{张敏莉,等,2007}{张敏莉2007-500-503,Zhang2007-500-503}
双语文献对照测试,主要检查:条目集方法和关联条目方法是否能实现对照,
条目集方法是否使用默认样式,关联条目方法是否使用语言判断后选择的样式。
set动态方法\cite{张敏莉,等,2007};\par
\iftoggle{relateddblan}{related动态方法\cite{易仕和2013--}}{}
%related动态方法\cite{易仕和2013--}(biblatex 3.7及以上版本可以使用多个stylesourcemap,进而可以动态的定义related)。
\printbibliography
\end{refsection}
\section{测试:中英文混合的文献表}
\begin{refsection}
中英文混合的文献表测试,主要检查多语言混合时的格式处理:
\cite{张敏莉2007-500-503}
\cite{丁文祥2000--,wang2006another,白书农1998-146-163,FOURNEY1971-17-38}
\printbibliography
\end{refsection}
\end{document}