Переглянути джерело

rewrite @article ref format & add a corresponding example

VictorSheng 7 роки тому
батько
коміт
193acf6a34
8 змінених файлів з 58 додано та 68 видалено
  1. 2 1
      README.md
  2. 39 12
      buptbachelor.bst
  3. 14 52
      main.bbl
  4. 0 1
      main.fot
  5. BIN
      main.pdf
  6. BIN
      main.synctex.gz
  7. 1 1
      main.tex
  8. 2 1
      ref.bib

+ 2 - 1
README.md

@@ -8,7 +8,7 @@
 - 加入外文译文和原文板块(4/24)
 - 将附录合并于主文件(4/24)
 - 将封面、诚信声明改为PDF导入(4/24)
-- 修正了参考文献中“et al”和“等”的样式问题;修改并核对了学位论文引用格式问题(4/24)
+- 修正了参考文献中“et al”和“等”的样式问题(4/24)
 - 修正正文行间距为1.2倍(4/24)
 - 修正“定义”类型的编号方法(修正后同图表编号形式)(4/28)
 - 新增并调校“代码”框格式,附示例(指导手册无要求,根据实际需求编入)(4/29)
@@ -20,6 +20,7 @@
 - 迁移示例文本中大部分\usepackages至.sty文件中(5/2)
 - 将任务书文档(task.*)更新至新版本(5/8)
 - 启用AutoFakeBold以应对Windows自带黑体无style=Bold的情况(5/8)(感谢<a href="https://github.com/RicardoMing">RicardoMing</a>)
+- 修正引用中“@article”类型的格式问题(5/9)
 
 # 系统需求
 - Windows

+ 39 - 12
buptbachelor.bst

@@ -1302,23 +1302,48 @@ FUNCTION {format.year.volume.number} {
 %   %% END OF DEBUG
 }
 
+% 卷(期).年,月(for article only)
+FUNCTION {format.volume.number.year.month} {
+  add.period$
+  year empty$
+    { "" }
+    {
+      volume empty$
+        'skip$
+        { "~" * volume * }
+      if$
+      number empty$
+        'skip$
+        { "~(" * number * ")" * }
+      if$
+      new.block
+      year
+      month empty$
+        'skip$
+        { bbl.comma * month * }
+      if$
+    }
+  if$
+}
+
 %
 FUNCTION {format.date}
 { year empty$
     { month empty$
-	{ "" }
-	{ "there's a month but no year in " cite$ * warning$
-	  month
-	}
+      { "" }
+      { "there's a month but no year in " cite$ * warning$
+        month
+      }
       if$
     }
     { month empty$
-	{ year }
-	{ month bbl.comma * year * }
+      { year }
+      { month bbl.comma * year * }
       if$
     }
   if$
 }
+
 function {format.year.year}
 { year empty$
     'skip$
@@ -1493,8 +1518,8 @@ FUNCTION {format.pages}
     { "" }
     { before.pages 'output.state :=
       pages multi.page.check
-	{ "" pages n.dashify tie.or.space.connect }
-	{ "" pages tie.or.space.connect }
+      { "" pages n.dashify tie.or.space.connect }
+      { "" pages tie.or.space.connect }
       if$
     }
   if$
@@ -1902,10 +1927,11 @@ FUNCTION {format.note} {
   note empty$
     { new.block "" }
     { url empty$
-	{ new.block }
-	{ before.all 'output.state := }
+      { new.block }
+      { before.all 'output.state := }
       if$
-      note }
+      note 
+    }
   if$
 }
 
@@ -2160,7 +2186,8 @@ FUNCTION {article}
   format.authors "author" output.warn
   format.book.title "title" output.warn
   format.journal.title "journal" output.warn
-  format.year.volume.number output
+  format.volume.number.year.month output
+  %format.year.volume.number output
   format.pages "pages" output.warn
   format.reference.date output
   format.url output

+ 14 - 52
main.bbl

@@ -7,11 +7,16 @@ Social Media~[EB/OL].
 2018~[2018-04-15].
 \url{http://www.merriam-webster.com/dictionary/social media}.
 
-\bibitem{digital_in_2018}
-We Are Social.
-Digital in 2018: World's Internet Users Pass the 4 Billion Mark~[EB/OL].
-2018~[2018-04-15].
-\url{https://wearesocial.com/uk/blog/2018/01/global-digital-report-2018}.
+\bibitem{false_news_spread_2018}
+Vosoughi~S, Roy~D, Aral~S.
+The spread of true and false news online~[J].
+Science.~359~(6380).
+2018, 3:  1146--1151.
+
+\bibitem{周兴2017基于深度学习的谣言检测及模式挖掘}
+周兴.
+基于深度学习的谣言检测及模式挖掘 [学位论文].
+中国科学院大学,2017.
 
 \bibitem{pew_news_use_2017}
 Pew Research Center.
@@ -25,11 +30,6 @@ News Use Across Social Media Platforms 2017~[EB/OL].
 2017~[2018-04-15].
 \url{http://www.cnnic.cn/hlwfzyj/hlwxzbg/mtbg/201701/P020170112309068736023.pdf}.
 
-\bibitem{false_news_spread_2018}
-Vosoughi~S, Roy~D, Aral~S.
-The spread of true and false news online~[J].
-Science, 2018, 359~(6380):  1146--1151.
-
 \bibitem{唐绪军2013中国新媒体发展报告}
 唐绪军,吴信训,黄楚新~等.
 中国新媒体发展报告No.4(2013)~[M].
@@ -40,26 +40,10 @@ Science, 2018, 359~(6380):  1146--1151.
 中国新媒体发展报告No.6(2015)~[M].
 社会科学文献出版社,2015.
 
-\bibitem{周兴2017基于深度学习的谣言检测及模式挖掘}
-周兴.
-基于深度学习的谣言检测及模式挖掘 [学位论文].
-中国科学院大学,2017.
-
-\bibitem{Bengio2006A}
-Bengio~Y, Ducharme~R, Vincent~P~et~al.
-A neural probabilistic language model.~[J].
-Journal of Machine Learning Research, 2006, 3~(6):  1137--1155.
-
-\bibitem{Hinton1986Learning}
-Hinton~G~E.
-Learning distributed representations of concepts.~[C].
-In Eighth Conference of the Cognitive Science Society, 1986.
-
-\bibitem{mikolov2013distributed}
-Mikolov~T, Sutskever~I, Chen~K~et~al.
-Distributed representations of words and phrases and their
-  compositionality~[C].
-In Advances in neural information processing systems, 2013:  3111--3119.
+\bibitem{Goodfellow2016DeepLearning}
+Goodfellow~I, Bengio~Y, Courville~A.
+Deep Learning~[M].
+The MIT Press, 2016.
 
 \bibitem{Chen2016Behavior}
 Chen~W, Chai~K~Y, Lau~C~T~et~al.
@@ -73,26 +57,4 @@ A distance-based outlier detection method for rumor detection exploiting user
   behaviorial differences~[C].
 In International Conference on Data and Software Engineering, 2017:  1--6.
 
-\bibitem{Goodfellow2016DeepLearning}
-Goodfellow~I, Bengio~Y, Courville~A.
-Deep Learning~[M].
-The MIT Press, 2016.
-
-\bibitem{Sakurada2014Anomaly}
-Sakurada~M, Yairi~T.
-Anomaly Detection Using Autoencoders with Nonlinear Dimensionality
-  Reduction~[C].
-In Mlsda 2014 Workshop on Machine Learning for Sensory Data Analysis, 2014: ~4.
-
-\bibitem{Yan2017Autoencoder}
-Zhang~Y, Chen~W, Chai~K~Y~et~al.
-Detecting rumors on Online Social Networks using multi-layer autoencoder~[C].
-In 2017 IEEE Technology Engineering Management Conference (TEMSCON), 2017:
-  437--441.
-
-\bibitem{Rumerlhar1986Learning}
-Rumerlhar~D~E.
-Learning representation by back-propagating errors~[J].
-Nature, 1986, 323~(3):  533--536.
-
 \end{thebibliography}

+ 0 - 1
main.fot

@@ -23,4 +23,3 @@
 \c@footnote \z@ 
 \c@footnote \z@ 
 \c@footnote \z@ 
-\c@footnote \z@ 


BIN
main.synctex.gz


+ 1 - 1
main.tex

@@ -43,7 +43,7 @@
 \subsection{脚注}
 社交媒体是一种供用户创建在线社群来分享信息、观点、个人信息和其它内容(如视频)的电子化交流平台,社交网络服务(social network service, SNS)和微博客(microblogging)都属于社交媒体的范畴\cite{webster_social_media},国外较为知名的有Facebook\footnote{http://www.facebook.com/}、Instagram\footnote{https://www.instagram.com/}、Twitter\footnote{http://www.twitter.com/}、LinkedIn\footnote{http://www.linkedin.com/}等,国内较为知名的有新浪微博\footnote{http://www.weibo.com/}。
 
-在社交媒体的强覆盖下,新闻信息的传播渠道也悄然了发生变化。
+在社交媒体的强覆盖下,新闻信息的传播渠道也悄然了发生变化。\cite{false_news_spread_2018}
 
 \subsection{定义}
 \begin{definition}

+ 2 - 1
ref.bib

@@ -41,7 +41,8 @@
   volume={359},
   number={6380},
   pages={1146-1151},
-  year={2018}
+  year={2018},
+  month={3}
 }