-
Notifications
You must be signed in to change notification settings - Fork 84
/
test-punct-quanjiao.tex
165 lines (136 loc) · 5.58 KB
/
test-punct-quanjiao.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
\documentclass{article}
\usepackage{ctex}
\usepackage[backend=biber,style=gb7714-2015ay]{biblatex} %,gbcitelocal=chinese
%\DeclareDelimFormat[cite,parencite,pagescite]{nameyeardelim}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{\addcomma\addspace}{,}}
%\DeclareDelimFormat[textcite]{nameyeardelim}{\addthinspace}
%\renewcommand*{\multicitedelim}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{\addsemicolon\addspace}{;}}
%\renewcommand*{\compcitedelim}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{\addcomma\addspace}{,}}
%\renewcommand*{\compextradelim}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{\addcomma\addspace}{,}}
%\renewcommand*{\bibleftparen}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{(}{(}}
%\renewcommand*{\bibrightparen}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{)}{)}}
%\renewcommand*{\mkbibleftborder}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{(}{(}}
%\renewcommand*{\mkbibrightborder}{\ifnumcomp{\value{gbcitelocalcase}}{=}{2}{)}{)}}
%\renewcommand*{\multicitedelim}{\iffieldequalstr{userf}{chinese}{;}{\addsemicolon\addspace}}%;
%\renewcommand*{\compcitedelim}{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}
%\renewcommand{\compextradelim}{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}
%\DeclareDelimFormat[cite,parencite,pagescite,citep]{nameyeardelim}
%{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}%
%\DeclareDelimFormat[textcite,authornumcite,citet]{nameyeardelim}
%{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}%
%\DeclareDelimFormat[cite,parencite,pagescite,citep]{andothersdelim}
%{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}%
%\DeclareDelimFormat[textcite,authornumcite,citet]{andothersdelim}
%{\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}}%
\renewcommand*{\multicitedelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{;}{\addsemicolon\addspace}%
\or ;\or\addsemicolon\addspace\fi}%;
\renewcommand*{\compcitedelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
\renewcommand{\compextradelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
\DeclareDelimFormat[cite,parencite,pagescite,citep]{nameyeardelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
\DeclareDelimFormat[textcite,authornumcite,citet]{nameyeardelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
\DeclareDelimFormat[cite,parencite,pagescite,citep]{andothersdelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
\DeclareDelimFormat[textcite,authornumcite,citet]{andothersdelim}
{\ifcase\value{gbcitelocalcase}\iffieldequalstr{userf}{chinese}{,}{\addcomma\space}%
\or ,\or\addcomma\space\fi}
%\DefineBibliographyStrings{english}{
% andincitecn = {和},
% andothersincitecn = {等},
%}
\begin{filecontents}[force]{\jobname.bib}
@article{Aaa_2021,
author = {Aaa, A. A. and Bbb, B. B. and Ccc, C. C.},
title = {Title title title title title},
journal = {Nature},
volume = {11},
number = {1},
pages = {11-12},
year = {2021},
type = {Journal Article}
}
@article{Aaa_2018,
author = {Aaa, A. A. and Bcc, B. B. and Caa, C. C.},
title = {Title title title title title},
journal = {Science},
volume = {11},
number = {1},
pages = {11-12},
year = {2018},
type = {Journal Article}
}
@article{Aaa_2018a,
author = {Aaa, A. A. and Bcc, B. B. and Caa, C. C.},
title = {Title title title title titleA},
journal = {Science},
volume = {11},
number = {2},
pages = {11-12},
year = {2018},
type = {Journal Article}
}
@article{Bbb_2019,
author = {Bbb, A. A. and Bcc, B. B. and Ccc, C. C.},
title = {Title title title title title},
journal = {eCell},
volume = {11},
number = {1},
pages = {11-12},
year = {2018},
type = {Journal Article}
}
@INCOLLECTION{陈晋镳1980,
AUTHOR = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚},
EDITOR = {中国地质科学院天津地质矿产研究所},
LOCATION = {天津},
PUBLISHER = {天津科学技术出版社},
BOOKTITLE = {中国震旦亚界},
DATE = {1980},
PAGES = {56--114},
TITLE = {蓟县震旦亚界研究},
}
@BOOK{初景利2004,
AUTHOR = {初景利 and 陈浩元},
LOCATION = {北京},
PUBLISHER = {北京图书馆出版社},
DATE = {2004},
TITLE = {图书馆数字参考咨询服务研究},
}
\end{filecontents}
\addbibresource[location=local]{\jobname.bib}
\begin{document}
\parindent=0pt
\textcite{Aaa_2018}
\textcite{Aaa_2018a}
{
中文段落\cite{Aaa_2018,Aaa_2018a}\cite{Aaa_2021,Aaa_2018}\\
中文段落\textcite{Aaa_2018,Aaa_2018a},\textcite{Aaa_2021,Aaa_2018}\\
中文段落\cite{Aaa_2018,Bbb_2019}\parencite{Aaa_2018,Bbb_2019}\\
中文段落\citet{Aaa_2018}\citep{Bbb_2019}\\
中文段落\citet{陈晋镳1980}\citep{初景利2004}
}
\bigskip
{\defcounter{gbcitelocalcase}{1}
中文段落\cite{Aaa_2018,Aaa_2018a}\cite{Aaa_2021,Aaa_2018}\\
中文段落\textcite{Aaa_2018,Aaa_2018a},\textcite{Aaa_2021,Aaa_2018}\\
中文段落\cite{Aaa_2018,Bbb_2019}\parencite{Aaa_2018,Bbb_2019}\\
中文段落\citet{Aaa_2018}\citep{Bbb_2019}\\
中文段落\citet{陈晋镳1980}\citep{初景利2004}
}
\bigskip
{\defcounter{gbcitelocalcase}{2}
english paragraph \cite{Aaa_2018,Aaa_2018a}\cite{Aaa_2021,Aaa_2018}\\
english paragraph \textcite{Aaa_2018,Aaa_2018a}, \textcite{Aaa_2021,Aaa_2018} \\
english paragraph \cite{Aaa_2018,Bbb_2019}\parencite{Aaa_2018,Bbb_2019}
english paragraph \citet{陈晋镳1980}\citep{初景利2004}
}
\printbibliography
\end{document}