浏览代码

修正格式 (#12)

* fix: Warnings

https://github.com/CTeX-org/ctex-kit/commit/b61b7e616508171ec89873900658d9576c0d33ec
Signed-off-by: YXL <chenxin.lan.76@gmail.com>

* fix: Remove blank page

Signed-off-by: YXL <chenxin.lan.76@gmail.com>

* fix: TOC

Signed-off-by: YXL <chenxin.lan.76@gmail.com>

* Add `guidance.docx`

Signed-off-by: YXL <chenxin.lan.76@gmail.com>

* fix: Code in translation

Signed-off-by: YXL <chenxin.lan.76@gmail.com>
兰陈昕 2 年之前
父节点
当前提交
1d7389a2bc
共有 6 个文件被更改,包括 25 次插入22 次删除
  1. 7 8
      BUPTthesisbachelor.sty
  2. 二进制
      docs/guidance.docx
  3. 二进制
      docs/guidance.pdf
  4. 二进制
      docs/statement.docx
  5. 二进制
      docs/statement.pdf
  6. 18 14
      main.tex

+ 7 - 8
BUPTthesisbachelor.sty

@@ -19,13 +19,12 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %
-\usepackage[fntef]{ctex} % invole CJKfntef
-\usepackage{ctex}
+\usepackage{ctex} % invole CJKfntef
+\usepackage{xeCJKfntef}
 \usepackage{setspace} % spacing
 \usepackage{xcolor}   % color
 \usepackage{xltxtra}  % print a XeLaTeX
 
- 
 % Font family
 \setmainfont[Mapping=tex-text]{Times New Roman}
 
@@ -91,7 +90,7 @@
 % 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,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm,textwidth=16cm,textheight=24.7cm]{geometry}
+\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm]{geometry}
 
 
 % Header and footer
@@ -115,8 +114,8 @@
 \usepackage{url}
 \def\UrlFont{}
 \usepackage[xetex, pdfstartview=FitH, 
-bookmarksnumbered=true, bookmarksopen=true, colorlinks=true, 
-pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}
+bookmarksnumbered=true, bookmarksopen=true, bookmarksdepth=2, colorlinks=true, 
+pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref}  % 修改bookmarksdepth指定书签层级
 % Deal with line breaking in url
 \makeatletter
 \def\UrlAlphabet{%
@@ -256,8 +255,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}}
+% 外文文献中表、图、公式、代码编号重置
+\newcommand{\newtranschapter}{\thispagestyle{empty}\addtocounter{chapter}{1}\setcounter{table}{0}\setcounter{equation}{0}\setcounter{figure}{0}\setcounter{lstlisting}{0}}
 
 % single figure tweaking
 % New figure environment

二进制
docs/guidance.docx


二进制
docs/guidance.pdf


二进制
docs/statement.docx


二进制
docs/statement.pdf


+ 18 - 14
main.tex

@@ -332,8 +332,7 @@ def plusFunc(a, b):
 \chapter*{附\qquad{}录}
 \phantomsection\addcontentsline{toc}{chapter}{附\qquad{}录}
 
-\phantomsection
-\addcontentsline{toc}{section}{附录1\quad{}缩略语表}
+\phantomsection\addcontentsline{toc}{section}{附录1\quad{}缩略语表}
 \section*{附录1\quad{}缩略语表}
 
 \begin{bupttable}{基于浏览者行为的特征}{crowdwisdom2}
@@ -378,8 +377,7 @@ def minusFunc(a, b):
 \end{equation}
 
 \clearpage
-\phantomsection
-\addcontentsline{toc}{section}{附录2\quad{}数学符号}
+\phantomsection\addcontentsline{toc}{section}{附录2\quad{}数学符号}
 \section*{附录2\quad{}数学符号}
 \begin{center}
 	\begin{tabular}{ccc}
@@ -396,25 +394,25 @@ def minusFunc(a, b):
 	\end{tabular}
 \end{center}
 
-\newpage\backmatter
 
 % Translated Article
-\blankmatter
+\newpage\backmatter
 \thispagestyle{empty}
-\begin{center}
+\phantomsection\addcontentsline{toc}{chapter}{外\quad{}文\quad{}资\quad{}料}
 % 原文第一页,PDF缩放比例为0.95,可以自行调整
-\includepdf[pages=1, scale=0.95, pagecommand=\heiti\sanhao{外\quad{}文\quad{}原\quad{}文}]{docs/translation.pdf}
+\includepdf[pages=1, scale=0.95, pagecommand=\begin{center}\translationtitlefont{外\quad{}文\quad{}资\quad{}料}\end{center}]{docs/translation.pdf}
 % 原文剩余部分
-\includepdf[pages=2-, scale=0.95, pagecommand={}]{docs/translation.pdf}
-\end{center}
+\includepdf[pages=2-, scale=0.95]{docs/translation.pdf}
 
 % Translation
 \setcounter{chapter}{0}
 \renewcommand{\thefigure}{~外\arabic{chapter}-\arabic{figure}~}
 \renewcommand{\theequation}{~外\arabic{chapter}-\arabic{equation}~}
 \renewcommand{\thetable}{~外\arabic{chapter}-\arabic{table}~}
+\renewcommand{\thelstlisting}{~外\arabic{chapter}-\arabic{lstlisting}~}
 
 \begin{center}
+\phantomsection\addcontentsline{toc}{chapter}{外\quad{}文\quad{}译\quad{}文}
 \translationtitlefont{外\quad{}文\quad{}译\quad{}文}
 \end{center}
 \vspace{8mm}
@@ -478,16 +476,22 @@ def minusFunc(a, b):
 新的社交网络技术在使信息的传播速度变快和规模变大的同时,也便利了不实信息(即不准确或有误导性的信息)的传播。然而,尽管我们对信息和新闻的获取越来越多地收到这些新技术的引导,但我们仍然对他们在虚假信息传播上的作用知之甚少。尽管媒体对假新闻传播的轶事分析给予了相当多的关注,但仍然几乎没有针对不实信息扩散或其发布源头的大规模实证调查。目前,虚假信息传播的研究仅仅局限于小的、局部的样本的分析上,而这些分析忽略了两个最重要的科学问题:真实信息和虚假信息的传播有什么不同?哪些人类判断中的因素可以解释这些不同?
 
 \endgroup
-\end{nopagenumber}
 
 % 开题报告
 \blankmatter
-\includepdf[pages=-]{docs/openingReport.pdf} 
-
+\phantomsection\addcontentsline{toc}{chapter}{开\quad{}题\quad{}报\quad{}告}
+\includepdf[pages=-]{docs/openingReport.pdf}
 
 % 中期检查表
 \blankmatter
-\includepdf[pages=-]{docs/interimReport.pdf} 
+\phantomsection\addcontentsline{toc}{chapter}{中\quad{}期\quad{}检\quad{}查\quad{}表}
+\includepdf[pages=-]{docs/interimReport.pdf}
 
+% 教师指导毕业设计(论文)记录表
+\blankmatter
+\phantomsection\addcontentsline{toc}{chapter}{教师指导毕业设计(论文)记录表}
+\includepdf[pages=-]{docs/guidance.pdf}
+
+\end{nopagenumber}
 
 \end{document}