Ver Fonte

Merge pull request #1 from sqyx008/master

Follow Latest Version
Makiras há 5 anos atrás
pai
commit
e9a71fce3f
15 ficheiros alterados com 579 adições e 322 exclusões
  1. 30 0
      .gitignore
  2. 89 18
      BUPTthesisbachelor.sty
  3. 29 3
      README.md
  4. 13 6
      abstract.cfg
  5. 30 18
      abstract.tex
  6. 34 17
      buptbachelor.bst
  7. 4 0
      code/recursion.py
  8. 100 0
      guidebook/README.md
  9. 0 48
      main.bbl
  10. 2 1
      main.cfg
  11. 0 26
      main.fot
  12. BIN
      main.pdf
  13. BIN
      main.synctex.gz
  14. 241 78
      main.tex
  15. 7 107
      ref.bib

+ 30 - 0
.gitignore

@@ -0,0 +1,30 @@
+## Core latex/pdflatex auxiliary files:
+*.aux
+*.lof
+*.log
+*.lot
+*.fls
+*.out
+*.toc
+*.fmt
+*.fot
+*.cb
+*.cb2
+.*.lb
+
+## Bibliography auxiliary files (bibtex/biblatex/biber):
+*.bbl
+*.bcf
+*.blg
+*-blx.aux
+*-blx.bib
+*.run.xml
+
+## Build tool auxiliary files:
+*.fdb_latexmk
+*.synctex
+*.synctex(busy)
+*.synctex.gz
+*.synctex.gz(busy)
+*.pdfsync
+

+ 89 - 18
BUPTthesisbachelor.sty

@@ -57,9 +57,9 @@
 \newcommand{\coverdatefont}{\songti\sanhao\bf}  % 封面上的日期的字体
 \newcommand{\statetitlefirst}{\songti\xiaosanhao\bf}   %诚信声明标题第一行的字体
 \newcommand{\statetitlesecond}{\songti\xiaosanhao\bf}  %诚信声明标题第二行的字体
-\newcommand{\abscnname}{\heiti\xiaosanhao\textbf}         % 中文“摘要”字样的字体
-\newcommand{\abscnkey}{\heiti\xiaosihao\textbf}       % 中文摘要“关键字”字样的字体
-\newcommand{\abscnkeys}{\songti\xiaosihao\normalfont} % 中文摘要关键字的字体
+\newcommand{\abszhname}{\heiti\xiaosanhao\textbf}         % 中文“摘要”字样的字体
+\newcommand{\abszhkey}{\heiti\xiaosihao\textbf}       % 中文摘要“关键字”字样的字体
+\newcommand{\abszhkeys}{\songti\xiaosihao\normalfont} % 中文摘要关键字的字体
 \newcommand{\absenname}{\xiaosanhao\textbf}               % 英文``Abstract''字样的字体
 \newcommand{\absenkey}{\xiaosihao\textbf}                 % 英文``KEY WORDS''字样的字体
 \newcommand{\absenkeys}{\xiaosihao\normalfont}        % 英文关键字的字体
@@ -80,6 +80,7 @@
 \newcommand{\refbodyfont}{\songti\wuhao\normalfont}          % 参考文献字体
 \newcommand{\thanktitlefont}{\heiti\sanhao\textbf}    % “致谢”字样的字体
 \newcommand{\appendixtitlefont}{\heiti\sanhao\textbf} % “附录”字样的字体
+\newcommand{\translationtitlefont}{\heiti\sanhao} % “外文译文”字样的字体
 
 % Word spacing
 % Usage: \ziju{spacing} spacing can be 1em, 10pt, etc.
@@ -89,13 +90,26 @@
 
 % Margin
 % FIXME: Not very precise, but meets the need of the Word template.
-\usepackage[left=2.5cm,margin=2.5cm,headheight=1.5cm,footskip=1.5cm]{geometry}
+% \usepackage[left=2.5cm,margin=2.5cm,headheight=1.5cm,footskip=1.5cm]{geometry}
+\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm,textwidth=16cm,textheight=24.7cm]{geometry}
+
 
 % Header and footer
 \usepackage{fancyhdr}
-\fancyhf{}  % clear head and foot
+
+\fancypagestyle{mainmatter}{%
+\fancyhf{} % clear all header and footer fields
 \fancyhead[C]{\headfont{北京邮电大学本科毕业设计(论文)}}
-\fancyfoot[C]{\thepage}
+\fancyfoot[C]{\footnotefont{\thepage}}
+\renewcommand{\headrulewidth}{0.8pt}
+}
+
+\fancypagestyle{frontmatter}{%
+\fancyhf{} % clear all header and footer fields
+\fancyhead{}
+\fancyfoot[C]{\footnotefont{\thepage}} % except the center
+\renewcommand{\headrulewidth}{0pt}
+}
 
 % Bookmark  (Chinese bookmark supported)
 \usepackage{url}
@@ -103,9 +117,28 @@
 \usepackage[xetex, pdfstartview=FitH, 
 bookmarksnumbered=true, bookmarksopen=true, colorlinks=true, 
 pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
+% Deal with line breaking in url
+\makeatletter
+\def\UrlAlphabet{%
+    \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%
+    \do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%
+    \do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D%
+    \do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N%
+    \do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X%
+    \do\Y\do\Z}
+\def\UrlDigits{\do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0}
+\g@addto@macro{\UrlBreaks}{\UrlOrds}
+\g@addto@macro{\UrlBreaks}{\UrlAlphabet}
+\g@addto@macro{\UrlBreaks}{\UrlDigits}
+\makeatother
+% Eliminate warnings about non-string commands not shown in PDF bookmarks. If you use more commands in section titles or chapter titles, you can add the commands here.
+\pdfstringdefDisableCommands{
+    \def \quad{}
+    \def \qquad{}
+}
 
 % Line spread
-\renewcommand{\baselinestretch}{1.3}
+\renewcommand{\baselinestretch}{1.30}
 % \setlength{\itemsep}{-5pt} % item seperate too wide
 
 % Indentation
@@ -147,22 +180,32 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 \titlecontents{chapter}[0em]{\tocchapterfont\vspace{0.4mm}}
     {\CTEXnumber{\CJKsection}{\thecontentslabel}{第\CJKsection{章}\quad{}}}
     {}
-    {\hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}
+    {\hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage}
 \titlecontents{section}[1em]{\tocsectionfont\vspace{0.4mm}}{%
     \thecontentslabel\quad{}}{}{%
-    \hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}%
+    \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage}%
 \titlecontents{subsection}[2em]{\tocsubsectionfont\vspace{0.4mm}}{%
     \thecontentslabel\quad{}}{}{%
-    \hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}%
+    \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage}%
 \titlecontents{subsubsection}[3em]{\tocsubsubsectionfont\vspace{0.4mm}}{%
     \thecontentslabel\quad{}}{}{%
-    \hspace{.5em}\titlerule*[10pt]{$\cdot$}\contentspage}%
+    \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage}%
 \makeatletter % Content Page style
 \renewcommand\frontmatter{%
     \if@openright\cleardoublepage\else\clearpage\fi%
     \@mainmatterfalse%
     \pagenumbering{Roman}% Roman style page number
-    \pagestyle{plain}}%
+    \pagestyle{frontmatter}
+    }
+\makeatother%
+
+\makeatletter % Content Page style
+\renewcommand\mainmatter{%
+    \if@openright\cleardoublepage\else\clearpage\fi%
+    \@mainmattertrue%
+    \pagenumbering{arabic}% Roman style page number
+    \pagestyle{mainmatter}
+    }
 \makeatother%
 
 \makeatletter % Translation Page style
@@ -176,7 +219,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 % Text style
 \usepackage{titlesec}
 \titleformat{\chapter}[hang]{\textchapterfont}{第\chinese{chapter}章}{1em}{}
-\titlespacing{\chapter}{0pt}{3ex plus .5ex minus .5ex}{3ex plus .5ex minus .5ex} % 缩短章节标题的上边距
+\titlespacing{\chapter}{0pt}{-1ex plus .2ex minus .2ex}{-1ex plus .2ex minus .2ex} % 缩短章节标题的上边距
 \titleformat{\section}{\textsectionfont}{\thesection}{1em}{}
 \titleformat{\subsection}{\textsubsectionfont}{\qquad{}\thesubsection}{1em}{}
 \titleformat{\subsubsection}{\textsubsubsectionfont}{\qquad{}\thesubsubsection}{1em}{}
@@ -188,6 +231,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 \renewcommand\bibname{\centerline{\reftitlefont{参考文献}}}
 %\renewcommand{\citet}[1]{\textsuperscript{\cite{#1}}}
 \setcitestyle{square}
+\setlength{\bibsep}{0.2em}
 
 % Appendix
 % TODO: this needs imporvement
@@ -210,6 +254,8 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 \renewcommand{\figurename}{图}
 \renewcommand{\thefigure}{~\arabic{chapter}-\arabic{figure}~}
 \renewcommand{\theequation}{\arabic{chapter}-\arabic{equation}~}
+% 外文文献中表、图、公式编号重置
+\newcommand{\newtranschapter}{\thispagestyle{empty}\addtocounter{chapter}{1}\setcounter{table}{0}\setcounter{equation}{0}\setcounter{figure}{0}}
 
 % single figure tweaking
 % New figure environment
@@ -217,9 +263,10 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 \usepackage{graphicx} % graphic package
 \newcommand{\buptfigure}[4][width=11cm]{%
 \begin{figure}[!htbp]%
-    \begin{center}%
+    \centering % If you'd like to use center environment here, be advised that it will add extra white space at its top and bottom. So \centering is a better default option.
+%    \begin{center}
         \includegraphics[#1]{#2}%
-    \end{center}%
+%    \end{center}
     \caption{#3}%
     \label{#4}
 \end{figure}}
@@ -229,7 +276,8 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 % Usage: \begin{bupttable}{caption}{label} 
 %            <normal table>
 %        \end{bupttable}
-\usepackage{multirow} % multirow 
+\usepackage{array,booktabs,multirow} % multirow, multicolumn and more professional format support
+\usepackage{tabularx} % deal with text wrapping in tables
 \newenvironment{bupttable}[2]{%
 \begin{table}[!htbp]%
     \centering%
@@ -267,7 +315,6 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 % Code 
 \usepackage{listings}
 \usepackage{xcolor}
-\renewcommand{\lstlistingname}{\kaishu{代码}}
 \lstset{
     basicstyle=\ttfamily\wuhao, %五号等宽字体
     extendedchars=true,
@@ -283,6 +330,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
     basewidth={0.5em,0.35em},
     frame=single,              %单线边框,注释掉则无边框
     numbers=left,               %行号位于左侧
+    numberbychapter=true,
 %    xleftmargin=.5em,
 %    xrightmargin=.5em,
 %    aboveskip=1ex,
@@ -291,5 +339,28 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
     escapeinside={\%*}{*)}
 }
 
+\renewcommand{\lstlistingname}{\kaishu{代码}}
+\makeatletter
+\AtBeginDocument{%
+  \renewcommand \thelstlisting
+       {\ifnum \c@chapter>\z@ \thechapter-\fi \@arabic\c@lstlisting}%
+}
+\makeatother
+
+
 % insert PDF
-\usepackage[final]{pdfpages}
+\usepackage[final]{pdfpages}
+
+% insert blank page
+\makeatletter
+\newcommand\blankmatter{%
+    \if@openright\cleardoublepage\else\clearpage\fi%
+    \@mainmatterfalse%
+    \pagestyle{empty}}%
+\makeatother%
+
+% List environment config
+\usepackage[inline]{enumitem}
+% Uncomment the two lines below if you want an list environment to share the same indent with a paragraph and no extra blank before, in or after the list.
+%\setlist[itemize]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt}
+%\setlist[enumerate]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt,label={\arabic*)}} % Modify the label format by yourself if you do not like 1), 2), ... here.

+ 29 - 3
README.md

@@ -2,7 +2,12 @@
 * 作者:Caspar Zhang    <casparant@gmail.com>
 * 修改:Bing Hsu        <hello@antinucleon.com>
 * 修改:Guohua Wu       <ghmeta@163.com>
-* 修改:Qiang Sheng     <sqyx008@outlook.com>(信息与通信工程学院通信工程2014级)
+* 修改:盛强     <sqyx008@outlook.com>(信息与通信工程学院通信工程2014级)
+
+## 问卷调查
+<font color=#FF3300>如果你使用了本模板完成北京邮电大学本科毕业设计,**请填写以下问卷**,以帮助开源者获得更有效的反馈,谢谢。
+https://wj.qq.com/s/2116666/6661</font>
+
 
 ## 下载方式
 - ```git clone```本项目,追踪最新修改
@@ -34,6 +39,19 @@
 - 新增无编号脚注与“科研项目来源”示例(5/21)
 - 修正附录图、表和公式编号样式为“附-X”,并添加示例(5/21)
 - 取消参考文献中英文作者姓名的首字母缩写设置(5/21)
+- 修正页边距和页眉页脚设置至同word版本;更正页码字号(5/26)
+- 调整摘要页间距;当摘要页超过一页时确保无页码出现(5/27)
+- 新增外文翻译部分章节编号示例(5/31)
+- 修正参考文献中@inproceedings的标点与中英文切换问题(6/3)
+- 新增区分奇偶页与否的配置选择(6/4)
+- 修正外文译文的页面样式问题(6/4)
+- 重整外文译文的图、表、公式编号(6/4)
+- 代码编号统一为图标编号样式,添加附录代码编号设置;增添代码文件引入示例(6/6)
+- 增加句内列表支持与示例;增加表格示例;支持URL换行(6/7)(感谢<a href="https://github.com/CptGit">CptGit</a>)
+- 缩短参考文献各条目之间的距离至合适;缩小目录页码至合适;修正外文译文和译文标题的粗细(6/21)
+- 调整外文译文和原文的顺序;摘要页关键词改为顶格书写;优化正文算法间距;优化部分示例;修复页眉页脚问题(6/23)
+- 调整一级标题的上下边距使其接近word样式;修复目录页码大小控制失效问题;使目录引导点更加紧凑,接近word样式(2019/6/11)
+
 
 ## 系统需求
 - Windows
@@ -50,8 +68,13 @@
 
     (感谢<a href="https://github.com/MrAdonis">Li Jiarong</a>提供)
 
+- Ubuntu Linux
+
+    开源人员尚未在Ubuntu上进行过测试,欢迎尝试并顺利使用本模板的用户在Issue中提交自己的方案
+
 ## 如何使用
-编辑以下文件
+
+### 编辑以下文件
 
 - main.cfg: 包含了论文中需要填写的项目,比如论文名称等。论文的致谢部分也放在了这里
 
@@ -61,7 +84,7 @@
 
 - bib.ref: 论文的参考文献库
 
-用素材填充以下文件夹
+### 用素材填充以下文件夹
 
 - pictures:将图片放入该文件夹
 
@@ -71,6 +94,9 @@
 
 在TeXworks中编译main.tex即可,main.pdf即最终输出。
 
+**注意:如果你在使用中遇到问题,请查看下方FAQ或到Issue板块寻找是否有其它使用者给出的解决方案。**
+
+
 ## 编译
 
 在TeX Live环境下

+ 13 - 6
abstract.cfg

@@ -23,21 +23,26 @@
 % 如果你足够聪明,不具有LaTeX基础也可以完成。
 
 % 中文摘要
-\def\abstractcn{
+\def\abstractzh{
 %从这里开始写你的摘要,分段需要空一行。
 这是中文摘要的部分。
 
 它可以拥有多段。
+这是中文摘要的部分。
+
+它可以拥有多段。
+
+如果你写的太长,甚至可以到第二页。
 %摘要结束
 }
 
 % 中文关键字 
 % TODO: 改成可变长度的
-\def\abscnkeyone{北京邮电大学}
-\def\abscnkeytwo{本科生}
-\def\abscnkeythree{毕业设计}
-\def\abscnkeyfour{模板}
-\def\abscnkeyfive{示例}
+\def\abszhkeyone{北京邮电大学}
+\def\abszhkeytwo{本科生}
+\def\abszhkeythree{毕业设计}
+\def\abszhkeyfour{模板}
+\def\abszhkeyfive{示例}
 
 % ABSTRACT
 \def\abstracten{
@@ -45,6 +50,8 @@
 This is ABSTRACT.
 
 You can write more than one paragraph here.
+
+If your abstract is too long, it will take up more pages. 
 %Abstract done
 }
 

+ 30 - 18
abstract.tex

@@ -23,56 +23,68 @@
 
 % 中文摘要
 \begin{titlepage}
+
+    \pagestyle{empty}
+
     \begin{spacing}{1.05}
         \centering
-        \parbox[c]{.6\textwidth}{\thesistitlefont{\thesistitle}}
+        % 如果你的标题太长,可能会换行;如果你对换行位置不满意,请调节下面第一个{}的参数
+        \parbox[c]{.75\textwidth}{\thesistitlefont{\thesistitle}}
     \end{spacing}
 
-    \begin{spacing}{1.6}
+    \begin{spacing}{1.5}
         \centering
         \sanhao\quad{} \\ 
-        \abscnname{摘\quad{}要} \\ 
-        \xiaosanhao\quad{}
+        \abszhname{摘\quad{}要} \\ 
     \end{spacing}
-    
+    \xiaosanhao\quad{}
+
     \normalsize
 
-    \abstractcn
+    \abstractzh
     
+
     \quad{}
 
-    \abscnkey{关键词}\quad{}%
-    \abscnkeys{\abscnkeyone\quad{}%
-                      \abscnkeytwo\quad{}%
-                      \abscnkeythree\quad{}%
-                      \abscnkeyfour\quad{}%
-                      \abscnkeyfive}%
+    \par\noindent\abszhkey{关键词}\quad{}%
+    \abszhkeys{\abszhkeyone\quad{}%
+                      \abszhkeytwo\quad{}%
+                      \abszhkeythree\quad{}%
+                      \abszhkeyfour\quad{}%
+                      \abszhkeyfive}%
 \end{titlepage}
 
+\thispagestyle{empty}
+
 % Abstract
 \begin{titlepage}
+
+    \pagestyle{empty}
+
     \begin{spacing}{1.05}
         \centering
-        \parbox[c]{.6\textwidth}{\thesistitleenfont{\thesistitleen}}
+        % 如果你的标题太长,可能会换行;如果你对换行位置不满意,请调节下面第一个{}的参数
+        \parbox[c]{.75\textwidth}{\thesistitleenfont{\thesistitleen}}
     \end{spacing}
 
-    \begin{spacing}{1.6}
+    \begin{spacing}{1.5}
         \centering
         \sanhao\quad{} \\ 
-        \abscnname{ABSTRACT} \\ 
-        \xiaosanhao\quad{}
+        \abszhname{ABSTRACT} \\ 
     \end{spacing}
-
+    \xiaosanhao\quad{}
     \normalsize
 
     \abstracten
     
     \quad{}
 
-    \absenkey{KEY WORDS}\quad{}%
+    \par\noindent\absenkey{KEY WORDS}\quad{}%
     \absenkeys{\absenkeyone\quad{}%
                       \absenkeytwo\quad{}%
                       \absenkeythree\quad{}%
                       \absenkeyfour\quad{}%
                       \absenkeyfive}%
 \end{titlepage}
+
+\thispagestyle{empty}

+ 34 - 17
buptbachelor.bst

@@ -15,7 +15,7 @@
 %% $LastChangedRevision$
 
 %% 一些设置的缺省值
-% 英文姓名排版格式字符串, 按<last name全称>~<first name全程><, Jr.>格式,如果只保留首字母,将重复字母删去其中一个即可
+% 英文姓名排版格式字符串, 按<last name全称>~<first name首字母><, Jr.>格式
 FUNCTION {default.name.format.string} {"{vv~}{ll}{~ff}{, Jj}"}
 
 % 列出的最多作者数目, 即当作者数目超过下列数字时, 超出部分的作者姓名将略去
@@ -2046,7 +2046,10 @@ FUNCTION {format.address} {
   if$
   address empty$
     { "" }
-    { address }
+    { 
+      new.block
+      address 
+    }
   if$
 }
 
@@ -2061,22 +2064,35 @@ FUNCTION {format.month.year} {
   if$ 
 }
 
+FUNCTION {format.year} {
+  year empty$
+    { "There is month but no year in " cite$ * warning$ }
+    { new.block
+      year " " * 
+    }
+  if$ 
+}
+
 FUNCTION {format.collection.title} {
   booktitle empty$
     { "" }
     { new.block 
-      "In " booktitle *
+      language empty$
+        {"In "}
+        {"见"}
+      if$
+      booktitle *
 %       address empty$
-% 	{ skip$ }
-% 	{ bbl.comma * address * bbl.comma * 
-% 	  month empty$
-% 	    { skip$ }
-% 	    { month * }
-% 	  if$
-% 	  year empty$
-% 	    { skip$ }
-% 	    { " " * year * }
-% 	  if$
+% 	      { skip$ }
+% 	      { bbl.comma * address * bbl.comma * 
+% 	    month empty$
+% 	      { skip$ }
+% 	      { month * }
+% 	    if$
+% 	    year empty$
+% 	      { skip$ }
+% 	      { " " * year * }
+% 	    if$
 % 	}
 %       if$
     }
@@ -2245,14 +2261,15 @@ FUNCTION {inproceedings} {
 
   format.authors "author" output.warn
   format.book.title "title"  output.warn
-  format.collection.editors "editor" output.warn
+%  format.collection.editors "editor" output.warn
   format.collection.title "booktitle" output.warn
   format.address output
-  format.month.year output
+%  format.month.year output
+  format.year output
 %  format.address.publisher.year	output.nonnull % 出版项
   format.pages "pages"          output.warn    %
-  format.url                    output	       % URL
-  format.note                   output	       % 备注项 
+%  format.url                    output	       % URL
+%  format.note                   output	       % 备注项 
 %   format.in.booktitle "booktitle" output.warn
 %       %format.bvolume output
 %       %format.number.series output

+ 4 - 0
code/recursion.py

@@ -0,0 +1,4 @@
+def numbers(x):
+    if x > 0:
+        print(x)
+        numbers(x-1)

+ 100 - 0
guidebook/README.md

@@ -0,0 +1,100 @@
+# 用户手册
+
+这里是关于使用本模版的详细指导。
+
+## 编译与编辑
+
+完成 LaTeX 的环境安装后,即可在不同的编辑器中编辑、编译文档。
+
+### VSCode
+
+#### 安装扩展 `Latex Workshop`
+
+首先,在 VSCode 中安装扩展 `Latex Workshop`(本手册使用 6.5.1 版)。
+
+#### 设置扩展
+
+安装完成后,对 `Latex Workshop` 进行工作区或用户设置。将下面的 JSON 字符串写入 `settings.json` 中:
+
+```json
+{
+    "latex-workshop.latex.recipes": [
+        {
+            "name": "latexmk 🔃",
+            "tools": [
+                "xelatex",
+                "bibtex",
+                "xelatex",
+                "xelatex"
+            ]
+        },
+        {
+            "name": "pdflatex ➞ bibtex ➞ pdflatex`×2",
+            "tools": [
+                "pdflatex",
+                "bibtex",
+                "pdflatex",
+                "pdflatex"
+            ]
+        }
+    ],
+    "latex-workshop.latex.tools": [
+        {
+            "name": "latexmk",
+            "command": "latexmk",
+            "args": [
+                "-synctex=1",
+                "-interaction=nonstopmode",
+                "-file-line-error",
+                "-pdf",
+                "-outdir=%OUTDIR%",
+                "%DOC%"
+            ],
+            "env": {}
+        },
+        {
+            "name": "pdflatex",
+            "command": "pdflatex",
+            "args": [
+                "-synctex=1",
+                "-interaction=nonstopmode",
+                "-file-line-error",
+                "%DOC%"
+            ],
+            "env": {}
+        },
+        {
+            "name": "bibtex",
+            "command": "bibtex",
+            "args": [
+                "%DOCFILE%"
+            ],
+            "env": {}
+        },
+        {
+            "name": "xelatex",
+            "command": "xelatex",
+            "args": [
+                "-synctex=1",
+                "-interaction=nonstopmode",
+                "-file-line-error",
+                "%DOC%"
+            ]
+        }
+    ]
+}
+```
+
+建议仅对当前工作区进行设置,以免影响 `Latex Workshop` 在其他地方的运行。
+
+#### 开始使用
+
+打开 `main.tex`,使用快捷键 `Ctrl + Alt + B`(`Cmd + Opt + B`)即可编译文档,并在统一目录下生成 `main.pdf`。
+
+### TEXMAKER
+
+`TEXMAKER` 是一款免费的跨平台 LaTeX 编辑器,同时提供了图形化的编译界面。
+
+下载地址:[texmaker](http://www.xm1math.net/texmaker/)
+
+在软件中打开 `main.tex`,依次执行 `xelatex`、`bibtex`、`xelatex`、`xelatex` 即完成编译,并在统一目录下生成 `main.pdf`。

+ 0 - 48
main.bbl

@@ -1,48 +0,0 @@
-% Generated by BUPTThesis.bst, version: 0.2 (2009/01/25)
-\begin{thebibliography}{1}
-
-\bibitem{webster_social_media}
-Merriam-Webster.
-Social Media~[EB/OL].
-2018~[2018-04-15].
-\url{http://www.merriam-webster.com/dictionary/social media}.
-
-\bibitem{false_news_spread_2018}
-Vosoughi~Soroush, Roy~Deb, Aral~Sinan.
-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.
-News Use Across Social Media Platforms 2017~[EB/OL].
-2017~[2018-04-15].
-\url{http://www.journalism.org/2017/09/07/news-use-across-social-media-platforms-2017}.
-
-\bibitem{internet_news_2016}
-中国互联网络信息中心.
-2016年中国互联网新闻市场研究报告~[EB/OL].
-2017~[2018-04-15].
-\url{http://www.cnnic.cn/hlwfzyj/hlwxzbg/mtbg/201701/P020170112309068736023.pdf}.
-
-\bibitem{唐绪军2013中国新媒体发展报告}
-唐绪军,吴信训,黄楚新~等.
-中国新媒体发展报告No.4(2013)~[M].
-社会科学文献出版社,2013.
-
-\bibitem{唐绪军2015中国新媒体发展报告}
-唐绪军,吴信训,黄楚新~等.
-中国新媒体发展报告No.6(2015)~[M].
-社会科学文献出版社,2015.
-
-\bibitem{Goodfellow2016DeepLearning}
-Goodfellow~Ian, Bengio~Yoshua, Courville~Aaron.
-Deep Learning~[M].
-The MIT Press, 2016.
-
-\end{thebibliography}

+ 2 - 1
main.cfg

@@ -26,7 +26,8 @@
 \def\thesistitle{社猜猜看这个毕设题目是什么}
 
 % 论文英文题目
-\def\thesistitleen{Have a try to guess what the title is}
+%提示:英文摘要页的标题注意格式要求。
+\def\thesistitleen{HAVE A TRY TO GUESS WHAT THE TITLE IS}
 
 % Thank Words
 \def\thankwords{

+ 0 - 26
main.fot

@@ -1,26 +0,0 @@
-\relax 
-\c@footnote \z@ 
-\advance\c@footnote \@ne \expandafter\xdef \csname f@1\endcsname {\number\c@footnote }
-\advance\c@footnote \@ne \expandafter\xdef \csname f@2\endcsname {\number\c@footnote }
-\advance\c@footnote \@ne \expandafter\xdef \csname f@3\endcsname {\number\c@footnote }
-\advance\c@footnote \@ne \expandafter\xdef \csname f@4\endcsname {\number\c@footnote }
-\advance\c@footnote \@ne \expandafter\xdef \csname f@5\endcsname {\number\c@footnote }
-\advance\c@footnote \@ne \expandafter\xdef \csname f@6\endcsname {\number\c@footnote }
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 
-\c@footnote \z@ 

BIN
main.pdf


BIN
main.synctex.gz


+ 241 - 78
main.tex

@@ -1,4 +1,9 @@
+\def\thelstlisting{}
+
+%不需要区分奇偶页的请使用下面一行
 \documentclass[a4paper,AutoFakeBold,oneside,12pt]{book}
+%需要区分奇偶页的(即每一章第一页一定在奇数页上)请使用下面一行
+%\documentclass[a4paper,AutoFakeBold,openright,12pt]{book}
 \usepackage{BUPTthesisbachelor}
 \usepackage{setspace}
 
@@ -9,29 +14,30 @@
 \begin{document}
 
 % 封面
+\blankmatter
 \includepdf[pages=-]{docs/cover.pdf}  
-\newpage
 
 % 任务书
+\blankmatter
 \includepdf[pages=-]{docs/task.pdf}  
-\newpage
 
 % 成绩评定表
+\blankmatter
 \includepdf[pages=-]{docs/scoreTable.pdf}  
-\newpage
 
 % 诚信声明
+\blankmatter
 \includepdf[pages=-]{docs/statement.pdf} 
-\newpage
 
 \input{main.cfg}    % Main items 
 \include{abstract}  % Abstract
+\fancypagestyle{plain}{\pagestyle{frontmatter}}
 \frontmatter\tableofcontents % Content
 
+
 % 正文
 \newpage\mainmatter
-\fancypagestyle{plain}{\pagestyle{fancy}} % Add head to new chapter
-\pagestyle{fancy} % Head and foot
+\fancypagestyle{plain}{\pagestyle{mainmatter}}
 %\let\cleardoublepagebak=\cleardoublepage
 %\let\cleardoublepage\relax % Make new chapter stay on old page
 
@@ -50,40 +56,43 @@
 
 \subsection{定义、定理与引理等}
 \begin{definition}
-这是一条我也不知道在说什么的定义。\cite{周兴2017基于深度学习的谣言检测及模式挖掘}
+这是一条我也不知道在说什么的定义,反正我就是写在这里做个样子罢了,也没人会仔细读。\cite{周兴2017基于深度学习的谣言检测及模式挖掘}
 \end{definition}
 
 \begin{theorem}
-这是一条我也不知道在说什么的定理。
+这是一条我也不知道在说什么的定理,反正我就是写在这里做个样子罢了,也没人会仔细读
 \end{theorem}
 
 \begin{axiom}
-这是一条我也不知道在说什么的公理。
+这是一条我也不知道在说什么的公理,反正我就是写在这里做个样子罢了,也没人会仔细读
 \end{axiom}
 
 \begin{lemma}
-这是一条我也不知道在说什么的引理。
+这是一条我也不知道在说什么的引理,反正我就是写在这里做个样子罢了,也没人会仔细读
 \end{lemma}
 
 \begin{proposition}
-这是一条我也不知道在说什么的命题。
+这是一条我也不知道在说什么的命题,反正我就是写在这里做个样子罢了,也没人会仔细读
 \end{proposition}
 
 \begin{corollary}
-这是一条我也不知道在说什么的推论。
+这是一条我也不知道在说什么的推论,反正我就是写在这里做个样子罢了,也没人会仔细读
 \end{corollary}
 
 \subsection{中英文文献、学位论文引用}
-根据美国皮尤研究中心的2017年9月发布的调查结果\cite{pew_news_use_2017},67\%的美国民众会从社交媒体上获取新闻信息,其中高使用频率用户占20\%。在国内,中国互联网信息中心《2016年中国互联网新闻市场研究报告》\cite{internet_news_2016}也显示,社交媒体已逐渐成为新闻获取、评论、转发、跳转的重要渠道,在2016年下半年,曾经通过社交媒体获取过新闻资讯的用户比例高达90.7\%,在微信、微博等社交媒体参与新闻评论的比例分别为62.8\%和50.2\%。社交媒体正在成为网络上热门事件生成并发酵的源头,在形成传播影响力后带动传统媒体跟进报道,最终形成更大规模的舆论浪潮。
+根据美国皮尤研究中心的2017年9月发布的调查结果\cite{pew_news_use_2017},67\%的美国民众会从社交媒体上获取新闻信息,其中高使用频率用户占20\%。在国内,中国互联网信息中心《2016年中国互联网新闻市场研究报告》\cite{internet_news_2016}也显示,社交媒体已逐渐成为新闻获取、评论、转发、跳转的重要渠道,在2016年下半年,曾经通过社交媒体获取过新闻资讯的用户比例高达90.7\%,在微信、微博等社交媒体参与新闻评论的比例分别为62.8\%和50.2\%。社交媒体正在成为网络上热门事件生成并发酵的源头,在形成传播影响力后带动传统媒体跟进报道,最终形成更大规模的舆论浪潮。\cite{Yang2012Automatic}
 
 在国内,新浪微博由于其发布方便、传播迅速、受众广泛且总量大的特点,成为了虚假信息传播的重灾区:《中国新媒体发展报告(2013)》\cite{唐绪军2013中国新媒体发展报告}显示,2012年的100件微博热点舆情案例中,有超过1/3出现谣言;《中国新媒体发展报告(2015)》\cite{唐绪军2015中国新媒体发展报告}对2014年传播较广、比较典型的92条假新闻进行了多维度分析,发现有59\%的虚假新闻首发于新浪微博。
 
 此等信息的传播严重损害了有关公众人物的名誉权,降低了社交媒体服务商的商业美誉度,扰乱了网络空间秩序,冲击着网民的认知,极易对民众造成误导,带来诸多麻烦和经济损失,甚至会导致社会秩序的混乱。针对社交媒体谣言采取行动成为了有关部门、服务提供商和广大民众的共同选择。\cite{周兴2017基于深度学习的谣言检测及模式挖掘}
 
 \section{图表及其引用}
-此处引用了表\ref{crowdwisdom}。
+此处引用了简单的表\ref{crowdwisdom_TMP}。
+
+请注意,\LaTeX{}的图表排版规则决定了图表\textbf{不一定会乖乖呆在你插入的地方},这是为了避免Word中由于图片尺寸不匹配在页面下部出现的的空白,所以请不要使用“下图”“下表”作为指向文字,应使用“图1-1所示”这样的表述。
+
+\begin{bupttable}{基于浏览者行为的特征}{crowdwisdom_TMP}
 
-\begin{bupttable}{基于浏览者行为的特征}{crowdwisdom}
     \begin{tabular}{l|l|l}
 		\hline \textbf{特征} & \textbf{描述} & \textbf{形式与理论范围}\\
 		\hline 点赞量 & 微博的点赞数量 & 数值,$\mathbb{N}$ \\
@@ -93,10 +102,47 @@
     \end{tabular}
 \end{bupttable}
 
-此处引用了一张图。图\ref{autoencoder}表示的是一个由含有4个神经元的输入层、含有3个神经元的隐藏层和含有4个神经元的输出层组成的自编码器,$+1$代表偏置项。
+此处引用了复杂的表\ref{complexcrowdwisdom_TMP}。
+
+
+\begin{bupttable}{基于浏览者行为的复杂特征}{complexcrowdwisdom_TMP}
+    \begin{tabular}{l|l|l|l}
+        \hline
+        \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{类别}}} & \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{特征}}} & \multicolumn{2}{c}{\textbf{不知道叫什么的表头}} \\
+        \cline{3-4}
+        & & \multicolumn{1}{c|}{\textbf{描述}} & \multicolumn{1}{c}{\textbf{形式与理论范围}} \\
+        \hline
+        \multirow{3}{*}{正常互动} & 点赞量 & 微博的点赞数量 & 数值,$\mathbb{N}$ \\
+        \cline{2-4}
+        & 评论量 & 微博的评论数量 & 数值,$\mathbb{N}$ \\
+        \cline{2-4}
+        & 转发量 & 微博的转发数量 & 数值,$\mathbb{N}$ \\
+        \hline
+        非正常互动 & 羡慕量 & 微博的羡慕数量 & 数值,$\mathbb{N}$ \\
+        \hline
+    \end{tabular}
+\end{bupttable}
+
+此处展示了更专业的表\ref{tab:abbr_table},一个好的表格没有竖线。
+% 请注意1)tabularx环境对多行文本的处理;2)booktabs宏包中支持的更粗的顶端和底端表格边界线,边界线与文本间更大的间距。
+\begin{bupttable}{红警2名词解释}{tab:abbr_table}
+    \begin{tabularx}{\textwidth}{llX}
+        \toprule
+        \textbf{术语类别} & \textbf{缩略语} & \textbf{解释} \\ \midrule
+        & 兵营 & 兵营(Barracks),《命令与征服\ 红色警戒2:尤里的复仇》游戏中的一种生产建筑,用以生产步兵单位 \\ \cmidrule(l){2-3}
+        & 建造场 & 建造场(Construction Yard),《命令与征服\ 红色警戒2:尤里的复仇》游戏中的一种基础建筑,用以支持其他建筑的建造 \\ \cmidrule(l){2-3}
+        & 矿厂 & 矿石精炼厂(Ore Refinery),《命令与征服\ 红色警戒2:尤里的复仇》游戏中的一种资源建筑,用以将矿车采集的矿石转化为游戏资金 \\ \cmidrule(l){2-3}
+        游戏 & 空指 & 空指部(Airforce Command Headquarters),《命令与征服\ 红色警戒2:尤里的复仇》游戏中的一种资源建筑,用以提供雷达功能和T2科技及生产部分空军单位 \\ \cmidrule(l){2-3}
+        & 相机 & 游戏术语,特指游戏内的观察区域和视角 \\ \cmidrule(l){2-3}
+        & 重工 & 战车工厂(War Factory),《命令与征服\ 红色警戒2:尤里的复仇》游戏中的一种生产建筑,用以生产载具单位 \\ \cmidrule(l){2-3}
+        & 战争迷雾 & 游戏术语,《命令与征服\ 红色警戒2:尤里的复仇》中指黑色的未探索区域 \\ \bottomrule
+    \end{tabularx}
+\end{bupttable}
+
+此处引用了一张图。图\ref{autoencoder_TMP}表示的是一个由含有4个神经元的输入层、含有3个神经元的隐藏层和含有4个神经元的输出层组成的自编码器,$+1$代表偏置项。
 
 %图片宽度设置为文本宽度的75%,可以调整为合适的比例
-\buptfigure[width=0.7\textwidth]{pictures/autoencoder}{自编码器结构}{autoencoder}
+\buptfigure[width=0.7\textwidth]{pictures/autoencoder}{自编码器结构}{autoencoder_TMP}
 
 %组图示例,已按照指导手册要求设计,由于子图数量不同,无法压缩成\buptfigure那样,大家对照示例即可
 \begin{figure}[!htbp]
@@ -138,7 +184,7 @@
 
 由于我们知道新坐标系$\bm{W}$的列向量是标准正交基向量,且样本点集$\bm{X}$已经过中心化,则PCA的优化目标可以写为
 \begin{equation}
-\label{PCA_goal}
+\label{PCA_goal_TMP}
 \begin{aligned}
 & \max_{\substack{\bm{W}}}  &  tr(\bm{W}^\mathrm{T}\bm{X}\bm{X}^ \mathrm{T}\bm{W}) \\
 & \operatorname{ s.t. }  &  \bm{W}^\mathrm{T}\bm{W} = \bm{I} \\
@@ -152,82 +198,110 @@
 \end{equation}
 其中$\bm{\Lambda}=diag(\bm{\lambda})$,$\bm{\lambda} = \{\lambda_1,\lambda_2,\ldots,\lambda_m\}$。
 
-具体地,考虑到它是半正定矩阵的二次型,存在最大值,可对\eqref{PCA_goal}使用拉格朗日乘数法
+具体地,考虑到它是半正定矩阵的二次型,存在最大值,可对\eqref{PCA_goal_TMP}使用拉格朗日乘数法
 \begin{equation}
 \bm{X}\bm{X}^ \mathrm{ T }\bm{w}_i  = \lambda_i \bm{w}_i \\
 \end{equation}
 
 之后将求得的特征值降序排列,取前$d^\prime$个特征值对应的特征向量组成所需的投影矩阵$\bm{W}^\prime =(\bm{w}_1,\bm{w}_2,\ldots,\bm{w}_{d^\prime})$,即可得到PCA的解。PCA算法的描述如算法\ref{PCA_algorithm}所示。
+
 \begin{algorithm} 
-\floatname{algorithm}{算法}
-\caption{主成分分析(PCA)} 
-\label{PCA_algorithm}
-\renewcommand{\algorithmicrequire}{\textbf{输入:}}
-\renewcommand{\algorithmicensure}{\textbf{输出:}} 
-\begin{algorithmic}[1] 
-\Require 样本集$\bm{x}=\{\bm{x}_1,\bm{x}_2,\ldots,\bm{x}_i,\ldots,\bm{x}_m\}$,低维空间维数$d^\prime$ 
-\Ensure 投影矩阵  $\bm{W}^\prime =(\bm{w}_1,\bm{w}_2,\ldots,\bm{w}_{d^\prime})$
-\State 对所有样本中心化$\bm{x}_i \gets \bm{x}_i - \frac{1}{m}\sum_{i=1}^m \bm{x}_i$
-\State  计算样本的协方差$\bm{X}\bm{X}^ \mathrm{T}$
-\State 对协方差矩阵$\bm{X}\bm{X}^ \mathrm{T}$做特征值分解
-\State 取最大的$d^\prime$个特征值所对应的特征向量$\bm{w}_1,\bm{w}_2,\ldots,\bm{w}_{d^\prime}$
-\end{algorithmic}  
+	\begin{spacing}{1.3}
+		\floatname{algorithm}{算法}
+		\caption{主成分分析(PCA)} 
+		\label{PCA_algorithm}
+		\renewcommand{\algorithmicrequire}{\textbf{输入:}}
+		\renewcommand{\algorithmicensure}{\textbf{输出:}} 
+		\begin{algorithmic}[1] 
+			\Require 样本集$\bm{x}=\{\bm{x}_1,\bm{x}_2,\ldots,\bm{x}_i,\ldots,\bm{x}_m\}$,低维空间维数$d^\prime$ 
+			\Ensure 投影矩阵  $\bm{W}^\prime =(\bm{w}_1,\bm{w}_2,\ldots,\bm{w}_{d^\prime})$
+			\State 对所有样本中心化$\bm{x}_i \gets \bm{x}_i - \frac{1}{m}\sum_{i=1}^m \bm{x}_i$
+			\State  计算样本的协方差$\bm{X}\bm{X}^ \mathrm{T}$
+			\State 对协方差矩阵$\bm{X}\bm{X}^ \mathrm{T}$做特征值分解
+			\State 取最大的$d^\prime$个特征值所对应的特征向量$\bm{w}_1,\bm{w}_2,\ldots,\bm{w}_{d^\prime}$
+		\end{algorithmic}  
+	\end{spacing}
 \end{algorithm}
 
 \subsubsection{主成分分析可信度评估方法}
 记待判定微博$\bm{w}_0$的经典特征向量为$\bm{f}^{c}_{0}$,它的发布者在$\bm{w_0}$前发布的$k$条微博为$\bm{W} = \bm{w}_1,\bm{w}_2,\ldots,\bm{w}_k$,这$k$条微博对应的经典特征向量集为$\bm{F}^{c}_{W} = \{ \bm{f}^{c}_{1},\bm{f}^{c}_{2},\ldots,\bm{f}^{c}_{k} \}$。令$label = 1$代表谣言,$label = 0$代表非谣言。算法的具体流程如算法\ref{PCA_model}所示。
 
-\begin{algorithm} 
-\floatname{algorithm}{算法}
-\caption{基于PCA的信息可信度评估} 
-\label{PCA_model}
-\renewcommand{\algorithmicrequire}{\textbf{输入:}}
-\renewcommand{\algorithmicensure}{\textbf{输出:}} 
-	\begin{algorithmic}[1] 
-	\Require $\bm{f}^{c}_{0}$,$\bm{F}^{c}_{W}$,保留主成分数$n$
-	\Ensure 标签$label\in \{0,1\}$
-	\State 对所有特征向量应用PCA,保留前$n$个主成分$\bm{o}^{c}_{i} \gets PCA(\bm{f}^{c}_{i}, n)$($i = 0,1,\ldots,k$)
-	\State 计算$\bm{F}^{c}_{W}$中各向量的平均距离$\mu$和标准差$\sigma$
-	\State 计算阈值$thr = {\mu} / {\sigma}$
-	\If {$\min_{1<j\le k} \|\bm{o}^{c}_{0} - \bm{o}^{c}_{j} \|_2 > thr$}
-		\State $ label \gets 1 $
-	\Else
-		\State $ label \gets 0 $
-	\EndIf
-	\end{algorithmic}
+\begin{algorithm}
+	\begin{spacing}{1.3}
+		\floatname{algorithm}{算法}
+		\caption{基于PCA的信息可信度评估} 
+		\label{PCA_model}
+		\renewcommand{\algorithmicrequire}{\textbf{输入:}}
+		\renewcommand{\algorithmicensure}{\textbf{输出:}} 
+			\begin{algorithmic}[1] 
+				\Require $\bm{f}^{c}_{0}$,$\bm{F}^{c}_{W}$,保留主成分数$n$
+				\Ensure 标签$label\in \{0,1\}$
+				\State 对所有特征向量应用PCA,保留前$n$个主成分$\bm{o}^{c}_{i} \gets PCA(\bm{f}^{c}_{i}, n)$($i = 0,1,\ldots,k$)
+				\State 计算$\bm{F}^{c}_{W}$中各向量的平均距离$\mu$和标准差$\sigma$
+				\State 计算阈值$thr = {\mu} / {\sigma}$
+				\If {$\min_{1<j\le k} \|\bm{o}^{c}_{0} - \bm{o}^{c}_{j} \|_2 > thr$}
+					\State $ label \gets 1 $
+				\Else
+					\State $ label \gets 0 $
+				\EndIf
+			\end{algorithmic}
+	\end{spacing}
 \end{algorithm}
 
 \section{代码表示}
+
+%据悉以下语言被lstlisting支持:Awk, bash, Basi4, C#, C++, C, Delphi, erlang, Fortran, GCL, Haskell, HTML, Java, JVMIS, Lisp, Logo, Lua, make, Mathematica, Matlab, Objective C , Octave, Pascal, Perl, PHP, Prolog,  Python, R, Ruby, SAS, Scilab, sh, SHELXL, Simula, SQL, tcl, TeX, VBScript, Verilog, VHDL, XML, XSLT
+%遗憾的是,JavaScript不被支持,请上网搜索支持该语言的方法
+
+\subsection{直接书写代码在.tex中}
 下面的代码\ref{plus}是用Python编写的加法函数。
 
 \begin{lstlisting}[language=Python, caption=加法, label=plus, tabsize=2]  
-def plus_func(a, b):
-	return a + b
+def plusFunc(a, b):
+	return a + b 
 \end{lstlisting}  
 
+\subsection{引用代码文件}
+下面的代码\ref{recursion}是用Python文件中引入的倒序打印$x$到$1$的函数,请查看code文件夹。
+
+\lstinputlisting[language=Python, caption=倒序打印数字, label=recursion, tabsize=2]{code/recursion.py}
+
 \section{列表样式}
 
-以下是使用圆点作为项目符号的列表样式。
+\subsection{使用圆点作为项目符号}
 
 \begin{itemize}
-\item \textbf{第一章为基础模块示例},是的,就是本章
+\item \textbf{第一章为基础模块示例},是的,本章的名字就是基础模块示例,正如你看到这个样子
 \item \textbf{第二章为不存在},是的,其实它不存在。
 \end{itemize}
 
-以下是使用数字作为项目符号的列表样式。
+\subsection{使用数字作为项目符号}
 
 \begin{enumerate}
-\item \textbf{第一章为基础模块示例},是的,就是本章
+\item \textbf{第一章为基础模块示例},是的,本章的名字就是基础模块示例,正如你看到这个样子
 \item \textbf{第二章为不存在},是的,其实它不存在。
 \end{enumerate}
 
-以下是无项目符号(实际是可以自定义一些符号,但我懒得加了)的列表样式,它会顶格书写。
-
-\begin{description}
-\item \textbf{第一章为基础模块示例},是的,就是本章。
-\item \textbf{第二章为不存在},是的,其实它不存在。
-\end{description}
-
+\subsection{句中数字编号列表样式}
+
+\begin{enumerate*}
+    \item \textbf{第一章为基础模块示例},是的,本章的名字就是基础模块示例,正如你看到这个样子;
+    \item \textbf{第二章为不存在},是的,其实它不存在。
+\end{enumerate*}
+
+\chapter{为了目录撑到第二页}
+\section{我不得不再添加一点内容}
+\section{尽管这些章节一点正文都没有}
+\section{是的}
+\section{真的没有}
+\section{我已经不知道说什么了}
+\section{如果有,我们就祝愿一下学校教务处什么时候转变一下思维}
+\section{把控制格式这种事情往前做}
+\section{不要总是觉得折磨学生是合理的}
+\section{你拿着教学管理岗位的工资}
+\section{你需要折磨一下你自己才对}
+\section{不要觉得我对别人要求太高,对自己太低}
+\section{我对自己要求低的话也不至于想要修订这份模板}
 %%%%%%%%%%%%%%%%%%%%%%% Main Area ENDs Here %%%%%%%%%%%%%%%%%%%%%%%%
 %\let\cleardoublepage=\cleardoublepagebak
 % Reference
@@ -247,6 +321,12 @@ def plus_func(a, b):
 \renewcommand{\theequation}{~附-\arabic{equation}~}
 \setcounter{table}{0} 
 \renewcommand{\thetable}{~附-\arabic{table}~}
+\setcounter{lstlisting}{0} 
+\makeatletter
+  \renewcommand \thelstlisting
+       {附-\@arabic\c@lstlisting}
+\makeatother
+
 
 \chapter*{附\qquad{}录}
 \phantomsection\addcontentsline{toc}{chapter}{附\qquad{}录}
@@ -255,16 +335,39 @@ def plus_func(a, b):
 \addcontentsline{toc}{section}{附录1\quad{}缩略语表}
 \section*{附录1\quad{}缩略语表}
 
-\begin{bupttable}{基于浏览者行为的特征}{crowdwisdom}
+\begin{bupttable}{基于浏览者行为的特征}{crowdwisdom2}
     \begin{tabular}{l|l|l}
-		\hline \textbf{特征} & \textbf{描述} & \textbf{形式与理论范围}\\
-		\hline 点赞量 & 微博的点赞数量 & 数值,$\mathbb{N}$ \\
-		\hline 评论量 & 微博的评论数量 & 数值,$\mathbb{N}$ \\
-		\hline 转发量 & 微博的转发数量 & 数值,$\mathbb{N}$ \\
+        \hline \textbf{特征} & \textbf{描述} & \textbf{形式与理论范围}\\
+        \hline 点赞量 & 微博的点赞数量 & 数值,$\mathbb{N}$ \\
+        \hline 评论量 & 微博的评论数量 & 数值,$\mathbb{N}$ \\
+        \hline 转发量 & 微博的转发数量 & 数值,$\mathbb{N}$ \\
+        \hline
+    \end{tabular}
+\end{bupttable}
+
+\begin{bupttable}{基于浏览者行为的复杂特征}{complexcrowdwisdom2}
+    \begin{tabular}{l|l|l|l}
+		\hline
+        \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{类别}}} & \multicolumn{1}{c|}{\multirow{2}{*}{\textbf{特征}}} & \multicolumn{2}{c}{\textbf{不知道叫什么的表头}} \\
+        \cline{3-4}
+         & & \multicolumn{1}{c|}{\textbf{描述}} & \multicolumn{1}{c}{\textbf{形式与理论范围}} \\
 		\hline
+        \multirow{3}{*}{正常互动} & 点赞量 & 微博的点赞数量 & 数值,$\mathbb{N}$ \\
+		\cline{2-4}
+         & 评论量 & 微博的评论数量 & 数值,$\mathbb{N}$ \\
+		\cline{2-4}
+         & 转发量 & 微博的转发数量 & 数值,$\mathbb{N}$ \\
+		\hline
+        非正常互动 & 羡慕量 & 微博的羡慕数量 & 数值,$\mathbb{N}$ \\
+        \hline
     \end{tabular}
 \end{bupttable}
-\buptfigure[width=0.7\textwidth]{pictures/autoencoder}{自编码器结构}{autoencoder}
+\buptfigure[width=0.15\textheight]{pictures/autoencoder}{自编码器结构}{autoencoder}
+
+\begin{lstlisting}[language=Python, caption=减法, label=minus, tabsize=2]  
+def minusFunc(a, b):
+	return a - b 
+\end{lstlisting}  
 
 \begin{equation}
 \label{PCA_goal}
@@ -273,6 +376,7 @@ def plus_func(a, b):
 \end{aligned}
 \end{equation}
 
+\clearpage
 \phantomsection
 \addcontentsline{toc}{section}{附录2\quad{}数学符号}
 \section*{附录2\quad{}数学符号}
@@ -292,14 +396,32 @@ def plus_func(a, b):
 \end{center}
 
 \newpage\backmatter
+
+% Translated Article
+\blankmatter
+\thispagestyle{empty}
+\begin{center}
+% 原文第一页,PDF缩放比例为0.95,可以自行调整
+\includepdf[pages=1, scale=0.95, pagecommand=\heiti\sanhao{外\quad{}文\quad{}原\quad{}文}]{docs/translation.pdf}
+% 原文剩余部分
+\includepdf[pages=2-, scale=0.95, pagecommand={}]{docs/translation.pdf}
+\end{center}
+
 % Translation
-\chapter*{外\quad{}文\quad{}译\quad{}文}
-\vspace{8mm}
+\setcounter{chapter}{0}
+\renewcommand{\thefigure}{~外\arabic{chapter}-\arabic{figure}~}
+\renewcommand{\theequation}{~外\arabic{chapter}-\arabic{equation}~}
+\renewcommand{\thetable}{~外\arabic{chapter}-\arabic{table}~}
 
+\begin{center}
+\translationtitlefont{外\quad{}文\quad{}译\quad{}文}
+\end{center}
+\vspace{8mm}
 \thispagestyle{empty}
 
+
 \begin{center}
-\sihao\heiti{真假新闻的在线传播}
+\sanhao\heiti\textbf{真假新闻的在线传播}
 
 \xiaosihao\songti{Soroush Vosoughi, Deb Roy, Sinan Aral}
 
@@ -307,21 +429,62 @@ def plus_func(a, b):
 \end{center}
 
 \songti{}
+\begingroup % 限制两个let语句的作用范围在外文译文部分
+\let\clearpage\relax
+\let\cleardoublepage\relax
+
+%以下是排版示例,在这里为了使章节编号不出现在目录中,使用了无编号的样式,代价是这些数字都要自己书写。
+
+\chapter*{第一章\quad{}概述}
+%每一个chapter后记得以下两行
+\newtranschapter
+
+\section*{1.1\quad{}概述}
 决策、合作、通信和市场领域的基础理论全都将对真实或准确度的概念化作为几乎一切人类努力的核心。然而,不论是真实信息还是虚假信息都会于在线媒体上迅速传播。定义什么是真、什么是假成了一种常见的政治策略,而不是基于一些各方同意的事实的争论。我们的经济也难免遭受虚假信息传播的影响。虚假流言会影响股价和大规模投资的动向,例如,在一条声称巴拉克·奥巴马在爆炸中受伤的推文发布后,股市市值蒸发了1300亿美元。的确,从自然灾害到恐怖袭击,我们对一切事情的反应都受到了扰乱。
+
 新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
 
-% Translated Article
-\thispagestyle{empty}
-\begin{center}
-\includepdf[pages=1, scale=0.95, pagecommand=\heiti\sanhao{外\quad{}文\quad{}原\quad{}文}]{docs/translation.pdf}
-\includepdf[pages=2-, scale=0.95, pagecommand={}]{docs/translation.pdf}
-\end{center}
+\begin{equation}
+\label{PCA_goal_appx1}
+\begin{aligned}
+\max_{\substack{\bm{W}}}  &  tr(\bm{W}^\mathrm{T}\bm{X}\bm{X}^ \mathrm{T}\bm{W})
+\end{aligned}
+\end{equation}
+
+我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字s。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。我只是为了把第二章挤到下一页而凑的字。
+
+\newpage %每一章需要另起一页,为了灵活,我没有把它固定在样式中,你可以根据需求添加分页符
+\chapter*{第二章\quad{}我也不知道是什么}
+\newtranschapter
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+\begin{equation}
+\label{PCA_goal_appx2}
+\begin{aligned}
+\max_{\substack{\bm{W}}}  &  tr(\bm{W}^\mathrm{T}\bm{X}\bm{X}^ \mathrm{T}\bm{W})
+\end{aligned}
+\end{equation}
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
+
+\endgroup
 
 % 开题报告
+\blankmatter
 \includepdf[pages=-]{docs/openingReport.pdf} 
 
 
 % 中期检查表
+\blankmatter
 \includepdf[pages=-]{docs/interimReport.pdf} 
 
 

+ 7 - 107
ref.bib

@@ -77,118 +77,18 @@
 
 % (3)论文集
 % [序号] 作者.论文题目.见(英文用In).主编.论文集名.出版地.出版年:页码范围.
-@inproceedings{Chen2016Behavior,
-  title={Behavior deviation: An anomaly detection view of rumor preemption},
-  author={Chen, Weiling and Chai, Kiat Yeo and Lau, Chiew Tong and Bu, Sung Lee},
-  booktitle={Information Technology, Electronics and Mobile Communication Conference},
-  pages={1-7},
-  year={2016}
-}
-
-@inproceedings{Yan2017OneHot,
-  title={A distance-based outlier detection method for rumor detection exploiting user behaviorial differences},
-  author={Zhang, Yan and Chen, Weiling and Chai, Kiat Yeo and Lau, Chiew Tong and Bu, Sung Lee},
-  booktitle={International Conference on Data and Software Engineering},
-  pages={1-6},
-  year={2017}
-}
-
-@INPROCEEDINGS{Yan2017Autoencoder, 
-  author={Zhang, Yan and Chen, Weiling and Chai, Kiat Yeo and Lau, Chiew Tong and Bu, Sung Lee}, 
-  booktitle={2017 IEEE Technology Engineering Management Conference (TEMSCON)}, 
-  title={Detecting rumors on Online Social Networks using multi-layer autoencoder}, 
-  year={2017},
-  pages={437-441}
-}
-
-@inproceedings{Castillo2011Information,
-  title={Information credibility on twitter},
-  author={Castillo, Carlos and Mendoza, Marcelo and Poblete, Barbara},
-  booktitle={International Conference on World Wide Web, WWW 2011, Hyderabad, India, March 28 - April},
-  pages={675-684},
-  year={2011}
-}
-
-@inproceedings{Kwon2014Prominent,
-  title={Prominent Features of Rumor Propagation in Online Social Media},
-  author={Kwon, Sejeong and Cha, Meeyoung and Jung, Kyomin and Chen, Wei and Wang, Yajun},
-  booktitle={IEEE International Conference on Data Mining},
-  pages={1103-1108},
-  year={2014}
-}
-
+% 本模板没有实现“主编”部分,因为“见”和“论文集名”分离实在是很诡异的事情,且很多事情我们得到的bibTeX不含主编
+% 中文需要加language={Chinese}字段,才会把"In"换成"见"
 @inproceedings{Yang2012Automatic,
   title={Automatic detection of rumor on Sina Weibo},
   author={Yang, Fan and Liu, Yang and Yu, Xiaohui and Yang, Min},
-  pages={1-7},
-  year={2012}
-}
-
-@inproceedings{Cai2014Rumors,
-  title={Rumors detection in Chinese via crowd responses},
-  author={Cai, Guoyong and Wu, Hao and Lv, Rui},
-  booktitle={IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining},
-  pages={912-917},
-  year={2014}
-}
-
-@inproceedings{Hinton1986Learning,
-  title={Learning distributed representations of concepts.},
-  author={Hinton, Geoffrey E},
-  booktitle={Eighth Conference of the Cognitive Science Society},
-  year={1986},
+  booktitle={Proceedings of the ACM SIGKDD Workshop on Mining Data Semantics},
+  pages={1--7},
+  year={2012},
+  address = {New York, NY, USA},
+  organization={ACM},
 }
 
-@inproceedings{mikolov2013distributed,
-  title={Distributed representations of words and phrases and their compositionality},
-  author={Mikolov, Tomas and Sutskever, Ilya and Chen, Kai and Corrado, Greg S and Dean, Jeff},
-  booktitle={Advances in neural information processing systems},
-  pages={3111--3119},
-  year={2013}
-}
-
-@inproceedings{Sakurada2014Anomaly,
-  title={Anomaly Detection Using Autoencoders with Nonlinear Dimensionality Reduction},
-  author={Sakurada, Mayu and Yairi, Takehisa},
-  booktitle={Mlsda 2014  Workshop on Machine Learning for Sensory Data Analysis},
-  pages={4},
-  year={2014},
-}
-
-@inproceedings{Jin2017multimodal,
-  author    = {Jin, Zhiwei and Cao, Juan and Guo, Han and Zhang. Yongdong and Luo, Jiebo},
-  title     = {Multimodal Fusion with Recurrent Neural Networks for Rumor Detection on Microblogs},
-  booktitle = {Proceedings of the 2017 {ACM} on Multimedia Conference, {MM} 2017, Mountain View, CA, USA, October 23-27, 2017},
-  pages     = {795--816},
-  year      = {2017}
-}
-
-@InProceedings{Bell2016InsideOut,
-  author = {Bell, Sean and Lawrence Zitnick, C. and Bala, Kavita and Girshick, Ross},
-  title = {Inside-Outside Net: Detecting Objects in Context With Skip Pooling and Recurrent Neural Networks},
-  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
-  month = {June},
-  year = {2016}
-}
-
-@InProceedings{Lin2017FPN,
-  author = {Lin, Tsung-Yi and Dollar, Piotr and Girshick, Ross and He, Kaiming and Hariharan, Bharath and Belongie, Serge},
-  title = {Feature Pyramid Networks for Object Detection},
-  booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
-  month = {July},
-  year = {2017}
-}
-
-@InProceedings{Cai2016MSCNN,
-  author="Cai, Zhaowei and Fan, Quanfu and Feris, Rogerio S. and Vasconcelos, Nuno",
-  title="A Unified Multi-scale Deep Convolutional Neural Network for Fast Object Detection",
-  booktitle="Computer Vision -- ECCV 2016",
-  year="2016",
-  pages="354--370"
-}
-
-
-
 % (4)学位论文(格式已验证)
 % [序号] 作者.题目.[学位论文](英文用[Dissertation]).保存地点.保存单位:年份.
 % 中文需要使用language={Chinese}字段,英文输入language={}