一种特殊的参考文献引用样式的设置

今天在群里得到了这样的一种引用格式的需求:

下面使用两种方法来进行实现

以下是我用来测试的 ref.bib 文件

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
@INPROCEEDINGS{cnproceed,
author = {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝},
title = {武林高手从入门到精通},
booktitle = {第~$N$~次华山论剑},
year = 2006,
address = {西安, 中国},
month = sep,
}

@ARTICLE{cnarticle,
AUTHOR = "贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春",
TITLE = "论刘姥姥食量大如牛之现实意义",
JOURNAL = "红楼梦杂谈",
PAGES = "260--266",
VOLUME = "224",
YEAR = "1800",
}


@inbook{Lin1992,
AUTHOR = "林来兴",
TITLE = "空间控制技术",
PUBLISHER = "宇航出版社",
YEAR = "1992",
Pages = "25-42",
ADDRESS = "北京",
}

@book{xin1994,
title={信息技术与信息服务国际研讨会论文集},
author={辛希孟 and 中国科学院文献信息中心 and 孟广均 and 信息学},
year={1994},
publisher={中国社会科学出版社},
pages={45-49},
address={北京},
typeoflit={C},
}

@book{zhao1998,
title={新时代的工业工程师},
author={赵耀东},
year={1998},
citedate = {1998-09-26},
address={台北},
publisher={天下文化出版社},
url={http://www.ie.nthu.edu.tw/info/ie.newie.htm(Big5)},
typeoflit={M/OL},
}

@phdthesis{Chen1992,
Author = {谌颖},
Title = {空间最优交会控制理论与方法研究},
ADDRESS = "哈尔滨",
School = {哈尔滨工业大学},
Year = {1992},
pages= {8-13},
}

@article{hithesis2017,
title={Hi!Thesis!,Harbin Institue of Technology},
author={Yanshuo Chu},
journal={Github},
volume={001},
number={0001},
pages={000-999},
year={2017},
}

使用 cite 宏包

这种方法适合裸用各种 \bibliographystyle 的同学, 直接看代码

1
2
3
4
5
6
7
8
9
10
11
12
13
\documentclass{ctexart}
\usepackage[noadjust,super]{cite}
% texdoc cite : More Customization
\renewcommand\citeform[1]{[#1]}
\renewcommand{\citeleft}{}
\renewcommand{\citeright}{}
\begin{document}
text\cite{cnproceed,Chen1992,hithesis2017,zhao1998,xin1994,cnarticle}

text\cite{Lin1992,xin1994}
\bibliographystyle{plain}
\bibliography{ref.bib}
\end{document}

使用 natbib 宏包或 gbt7714 宏包

直接上代码

1
2
3
4
5
6
7
8
9
10
11
12
\documentclass{ctexart}
\usepackage[sort&compress,numbers,super]{natbib}
\setcitestyle{open={},close={}}
% texdoc natbib : sec 2.12
\renewcommand{\citenumfont}[1]{[#1]}
\begin{document}
text\cite{cnproceed,Chen1992,hithesis2017,zhao1998,xin1994,cnarticle}

text\cite{Lin1992,xin1994}
\bibliographystyle{plain}
\bibliography{ref.bib}
\end{document}

当使用 gbt7714 宏包的时候, 需要把参数拆开, 实现效果如下

1
2
3
4
5
6
7
8
9
10
11
12
13
\documentclass{ctexart}
\usepackage[sort&compress]{gbt7714}
\citestyle{super}
\setcitestyle{open={},close={}}
% texdoc natbib : sec 2.12
\renewcommand{\citenumfont}[1]{[#1]}
\begin{document}
text\cite{cnproceed,Chen1992,hithesis2017,zhao1998,xin1994,cnarticle}

text\cite{Lin1992,xin1994}
\bibliographystyle{gbt7714-numerical}
\bibliography{ref.bib}
\end{document}