Skip to content

Commit

Permalink
Compatibility with incomplete bibtex entries.
Browse files Browse the repository at this point in the history
Improved treatment of missing fields for bibtex entries, especially of articles.
  • Loading branch information
bdebye committed Apr 11, 2020
1 parent 0befdab commit e8d04de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
33 changes: 9 additions & 24 deletions reference.bib
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@

%[1] 王浩刚,聂在平.三维矢量散射积分方程中奇异性分析[J].电子学报,1999, 27(12): 68-71
@article{wang1999sanwei,
title = {三维矢量散射积分方程中奇异性分析},
author = {王浩刚 and 聂在平},
journal = {电子学报},
volume = {27},
number = {12},
pages = {68--71},
pages = {68 -- 71},
year = {1999}
}

%[2] X. F. Liu, B. Z. Wang, W. Shao. A marching-on-in-order scheme for exact attenuation constant extraction of lossy transmission lines[C]. China-Japan Joint Microwave Conference Proceedings, Chengdu, 2006, 527-529
@conference{liuxf2006,
author = {Liu, X F and Wang, Bing Zhong and Shao,Wei and Wen Wang},
title = {A marching-on-in-order scheme for exact attenuation constant extraction of lossy transmission lines},
year = {2006},
pages = {527-529},
address = {Chengdu},
booktitle = {China-Japan Joint Microwave Conference Proceedings}
@article{schmidhuber2015deep,
title={Deep learning in neural networks: An overview},
author={Schmidhuber, J{\"u}rgen},
journal={Neural networks},
volume={61},
pages={85--117},
year={2015},
publisher={Elsevier}
}

%[3] 竺可桢.物理学[M].北京:科学出版社,1973, 56-60
@book{zhu1973wulixue,
title = {物理学},
author = {竺可桢},
Expand All @@ -33,8 +28,6 @@ @book{zhu1973wulixue
publisher = {科学出版社}
}

%[4] 陈念永.毫米波细胞生物效应及抗肿瘤研究[D].成都:电子科技大学,2001, 50-60
@thesis{chen2001hao,
author = {陈念永},
title = {毫米波细胞生物效应及抗肿瘤研究},
Expand All @@ -44,17 +37,13 @@ @thesis{chen2001hao
address = {成都}
}

%[5] 顾春.牢牢把握稳中求进的总基调[N].人民日报,2012年3月31日
@newspaper{gu2012lao,
author = {顾春},
title = {牢牢把握稳中求进的总基调},
journal = {人民日报},
date = {2012年3月31日}
}

%[6] 冯西桥.核反应堆压力容器的LBB分析[R].北京:清华大学核能技术设计研究院,1997年6月25日
@techreport{feng997he,
author = {冯西桥},
title = {核反应堆压力容器的{LBB}分析},
Expand All @@ -63,8 +52,6 @@ @techreport{feng997he
address = {北京}
}

%[7] 肖珍新.一种新型排渣阀调节降温装置[P].中国,实用新型专利,ZL201120085830.0, 2012年4月25日
@patent{xiao2012yi,
author = {肖珍新},
title = {一种新型排渣阀调节降温装置},
Expand All @@ -74,8 +61,6 @@ @patent{xiao2012yi
id = {ZL201120085830.0}
}

%[8] 中华人民共和国国家技术监督局.GB3100-3102.中华人民共和国国家标准--量与单位[S]. 北京:中国标准出版社,1994年11月1日
@standard{zhong1994zhong,
institution = {中华人民共和国国家技术监督局},
id = {GB3100-3102},
Expand Down
25 changes: 16 additions & 9 deletions thesis-uestc.bst
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ FUNCTION{find.replace}
FUNCTION {format.pages}
{
pages "--" "-" find.replace
" " "" find.replace
}

FUNCTION {format.institution}
Expand Down Expand Up @@ -442,17 +443,23 @@ FUNCTION {article}
format.authors write$ add.period
format.title "[J]" * write$ add.period
format.journal write$ add.comma
format.year write$ add.comma
format.year write$

number missing$
{
volume ": " * write$
} {
volume "(" *
number *
"): " * write$
volume missing$ {
pages missing$ 'skip$
{
add.comma
format.pages write$
} if$
}
{ add.comma
number missing$ { volume write$ }
{
volume "(" * number *
")" * write$
} if$
pages missing$ 'skip$ { ": " format.pages * write$ } if$
} if$
format.pages write$
newline$
}

Expand Down

0 comments on commit e8d04de

Please sign in to comment.