Forráskód Böngészése

bug fix on dissertation ref format

VictorSheng 7 éve
szülő
commit
d8fc94d98f
3 módosított fájl, 17 hozzáadás és 15 törlés
  1. 1 0
      README.md
  2. 14 14
      buptbachelor.bst
  3. 2 1
      ref.bib

+ 1 - 0
README.md

@@ -15,6 +15,7 @@
 - 为便于阅读学习,重编示例文本。(4/29)
 - 全面按照指导手册要求顺序,插入任务书、成绩评定表、开题报告、中期检查表的PDF。(4/29)
 - 修正原示例中使用\ref引用公式的错误,已改为\eqref。(4/29)
+- 修正英文学位论文引用形式的BUG。(4/29)
 
 # 系统需求
 - Windows + XeLaTeX

+ 14 - 14
buptbachelor.bst

@@ -979,7 +979,7 @@ FUNCTION {bib.type.designator} {
 	    { type$ "patent" =
 		{ "P" }
 		{ type$ "phdthesis" = type$ "masterthesis" = or
-		    {language empty$ { "Dissertation" } { "学位论文" } if$}
+		    {language "Chinese" = { "学位论文" } { language empty$ = {"Dissertation"}  if$} if$}
 		    { type$ "techreport" = 
 			{ "R" }
 			{ type$ "article" = type$ "periodical" = or
@@ -2319,20 +2319,20 @@ FUNCTION {masterthesis}
    fin.entry
  }
 
-FUNCTION {phdthesis}
- { start.entry
-   format.authors "author" add.period$ output.warn
-   new.block
-   format.title remove.dots " " * thesis.type * output
-   new.block
+%FUNCTION {phdthesis}
+ %{ start.entry
+  % format.authors "author" add.period$ output.warn
+   %new.block
+   %format.title remove.dots " " * thesis.type * output
+   %new.block
    %format.address.school output
-   %address output
-   school "school" output.warn  
-   format.date "year" output.warn
-   new.block
-   %note output
-   fin.entry
- }
+   %%address output
+   %school "school" output.warn  
+   %format.date "year" output.warn
+   %new.block
+   %%note output
+   %fin.entry
+ %}
 
 FUNCTION {misc}
 { start.entry

+ 2 - 1
ref.bib

@@ -188,8 +188,9 @@
 
 
 
-% (4)学位论文(已验证格式,注意中文学位论文需要加language={Chinese}字样,英文不要加
+% (4)学位论文(格式已验证
 % [序号] 作者.题目.[学位论文](英文用[Dissertation]).保存地点.保存单位:年份.
+% 中文需要使用language={Chinese}字段,英文不输入language字段
 @masterthesis{周兴2017基于深度学习的谣言检测及模式挖掘,
   title={基于深度学习的谣言检测及模式挖掘},
   author={周兴},