Bladeren bron

Merge pull request #14 from CptGit/master

Updated the table example adding usage of multirow and multicolumn
sqyx008 6 jaren geleden
bovenliggende
commit
e4a5af6e93
7 gewijzigde bestanden met toevoegingen van 80 en 83 verwijderingen
  1. 30 0
      .gitignore
  2. 4 3
      BUPTthesisbachelor.sty
  3. 0 48
      main.bbl
  4. 0 26
      main.fot
  5. BIN
      main.pdf
  6. BIN
      main.synctex.gz
  7. 46 6
      main.tex

+ 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
+

+ 4 - 3
BUPTthesisbachelor.sty

@@ -219,9 +219,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}}
@@ -231,7 +232,7 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
 % Usage: \begin{bupttable}{caption}{label} 
 %            <normal table>
 %        \end{bupttable}
-\usepackage{multirow} % multirow 
+\usepackage{multirow} % multirow and multicolumn
 \newenvironment{bupttable}[2]{%
 \begin{table}[!htbp]%
     \centering%

+ 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}

+ 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


+ 46 - 6
main.tex

@@ -81,7 +81,7 @@
 此等信息的传播严重损害了有关公众人物的名誉权,降低了社交媒体服务商的商业美誉度,扰乱了网络空间秩序,冲击着网民的认知,极易对民众造成误导,带来诸多麻烦和经济损失,甚至会导致社会秩序的混乱。针对社交媒体谣言采取行动成为了有关部门、服务提供商和广大民众的共同选择。\cite{周兴2017基于深度学习的谣言检测及模式挖掘}
 
 \section{图表及其引用}
-此处引用了表\ref{crowdwisdom}。
+此处引用了简单的表\ref{crowdwisdom}。
 
 \begin{bupttable}{基于浏览者行为的特征}{crowdwisdom}
     \begin{tabular}{l|l|l}
@@ -93,6 +93,27 @@
     \end{tabular}
 \end{bupttable}
 
+此处引用了复杂的表\ref{complexcrowdwisdom}。
+
+\begin{bupttable}{基于浏览者行为的复杂特征}{complexcrowdwisdom}
+    \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{autoencoder}表示的是一个由含有4个神经元的输入层、含有3个神经元的隐藏层和含有4个神经元的输出层组成的自编码器,$+1$代表偏置项。
 
 %图片宽度设置为文本宽度的75%,可以调整为合适的比例
@@ -257,14 +278,32 @@ def plus_func(a, b):
 
 \begin{bupttable}{基于浏览者行为的特征}{crowdwisdom}
     \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}{基于浏览者行为的复杂特征}{complexcrowdwisdom}
+    \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.2\textheight]{pictures/autoencoder}{自编码器结构}{autoencoder}
 
 \begin{equation}
 \label{PCA_goal}
@@ -273,6 +312,7 @@ def plus_func(a, b):
 \end{aligned}
 \end{equation}
 
+\clearpage
 \phantomsection
 \addcontentsline{toc}{section}{附录2\quad{}数学符号}
 \section*{附录2\quad{}数学符号}