Compare commits
11 Commits
8c9ad4a351
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8bb9767f59 | ||
44634e20fc | |||
c1411fb146 | |||
38e0b2e803 | |||
0791e68280 | |||
d9c5a7a1bf | |||
129de11f81 | |||
b9e5e56b5d | |||
![]() |
a587dceb99 | ||
![]() |
ff1ef28958 | ||
![]() |
aadcc38009 |
@@ -7,13 +7,25 @@
|
||||
\usepackage{subfiles}
|
||||
\usepackage{fontawesome5}
|
||||
\usepackage{float}
|
||||
\usepackage{leading}
|
||||
\usepackage{fontspec}
|
||||
|
||||
% Float Environment
|
||||
\renewcommand{\floatpagefraction}{0.75}
|
||||
|
||||
% Font family
|
||||
\setmainfont[Mapping=tex-text]{Times New Roman}
|
||||
\setCJKmainfont{SimSun}[AutoFakeBold=3.0]
|
||||
|
||||
% Normal font size is XiaosiHao
|
||||
% 正文字体是宋体小四 1.5行距
|
||||
\renewcommand{\normalsize}{\zihao{-4}\songti\normalfont}
|
||||
|
||||
% 处理中文排版的间距包
|
||||
\usepackage[
|
||||
UseMSWordMultipleLineSpacing,
|
||||
MSWordLineSpacingMultiple=1.5
|
||||
]{zhlineskip}
|
||||
|
||||
% Word spacing
|
||||
% Usage: \ziju{spacing} spacing can be 1em, 10pt, etc.
|
||||
%\newcommand{\ziju}[1]{\renewcommand{\CJKglue}{\hskip #1}}
|
||||
@@ -21,7 +33,7 @@
|
||||
%%%%%% Page Style %%%%%%
|
||||
|
||||
% Margin
|
||||
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=0.5cm]{geometry}
|
||||
\usepackage[paper=a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,headheight=1.5cm,headsep=0.6cm,footskip=1.5cm]{geometry}
|
||||
|
||||
|
||||
% Header and footer
|
||||
@@ -30,7 +42,7 @@
|
||||
% 正文的页眉页脚格式
|
||||
\fancypagestyle{mainmatter}{
|
||||
\fancyhf{} % clear all header and footer fields
|
||||
\fancyhead[C]{\songti\zihao{-5}{北京邮电大学本科毕业设计(论文)}}
|
||||
\fancyhead[C]{\songti\zihao{-5}{北京邮电大学本科毕业设计(论文)}}
|
||||
\fancyfoot[C]{\songti\zihao{-5}{\thepage}}
|
||||
\renewcommand{\headrulewidth}{0.8pt}
|
||||
}
|
||||
@@ -38,9 +50,8 @@
|
||||
% 目录页的页眉页脚格式
|
||||
\fancypagestyle{frontmatter}{
|
||||
\fancyhf{} % clear all header and footer fields
|
||||
\fancyhead[C]{\songti\zihao{-5}{北京邮电大学本科毕业设计(论文)}}
|
||||
\fancyfoot[C]{\songti\zihao{-5}{\thepage}}
|
||||
\renewcommand{\headrulewidth}{0.8pt}
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
}
|
||||
|
||||
% Bookmark (Chinese bookmark supported)
|
||||
@@ -69,10 +80,6 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
\def \qquad{}
|
||||
}
|
||||
|
||||
% Line spread
|
||||
\renewcommand{\baselinestretch}{1.30}
|
||||
% \setlength{\itemsep}{-5pt} % item seperate too wide
|
||||
|
||||
% Footnote
|
||||
% Usage: \footnote{Your Text}
|
||||
\usepackage[perpage]{footmisc}
|
||||
@@ -107,17 +114,18 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
\newif{\ifpagenumber}
|
||||
\pagenumbertrue
|
||||
\renewcommand\contentsname{\centerline{\heiti\zihao{3}\textbf{{目\qquad{}录}}}}
|
||||
\titlecontents{chapter}[0em]{\heiti\zihao{-4}\vspace{0.4mm}} {%
|
||||
% 注意,目录的行距固定为20磅
|
||||
\titlecontents{chapter}[0em]{\heiti\zihao{-4}\leading{20pt}} {%
|
||||
\ifpagenumber \CTEXnumber{\CJKsection}{\thecontentslabel}{第\CJKsection{章}\quad{}} \fi}{%
|
||||
} {%
|
||||
\ifpagenumber \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage\fi}
|
||||
\titlecontents{section}[1em]{\songti\zihao{-4}\vspace{0.4mm}}{%
|
||||
\titlecontents{section}[1em]{\songti\zihao{-4}\leading{20pt}}{%
|
||||
\thecontentslabel\quad{}}{}{%
|
||||
\ifpagenumber \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage\fi}%
|
||||
\titlecontents{subsection}[2em]{\songti\zihao{-4}\vspace{0.4mm}}{%
|
||||
\titlecontents{subsection}[2em]{\songti\zihao{-4}\leading{20pt}}{%
|
||||
\thecontentslabel\quad{}}{}{%
|
||||
\ifpagenumber \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage\fi}%
|
||||
\titlecontents{subsubsection}[3em]{\songti\zihao{-4}\vspace{0.4mm}}{%
|
||||
\titlecontents{subsubsection}[3em]{\songti\zihao{-4}\leading{20pt}}{%
|
||||
\thecontentslabel\quad{}}{}{%
|
||||
\ifpagenumber \hspace{.5em}\titlerule*[6pt]{$\cdot$}\contentspage\fi}%
|
||||
|
||||
@@ -152,10 +160,13 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\chapter}[hang]{\heiti\zihao{3}\centering\bfseries}{第\chinese{chapter}章}{1em}{}
|
||||
% 缩短章节标题的上边距
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{12pt}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
\titleformat{\section}{\heiti\zihao{4}\bfseries}{\thesection}{1em}{}
|
||||
\titlespacing{\section}{0pt}{-1pt}{-1pt}
|
||||
\titleformat{\subsection}{\heiti\zihao{-4}\bfseries}{\qquad{}\thesubsection}{1em}{}
|
||||
\titlespacing{\subsection}{0pt}{-1pt}{-1pt}
|
||||
\titleformat{\subsubsection}{\heiti\zihao{-4}\bfseries}{\qquad{}\thesubsubsection}{1em}{}
|
||||
\titlespacing{\subsubsection}{0pt}{-1pt}{-1pt}
|
||||
|
||||
% Reference style
|
||||
% \usepackage[numbers,sort&compress]{natbib}
|
||||
@@ -181,13 +192,14 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
\usepackage{array,booktabs,multirow} % multirow, multicolumn and more professional format support
|
||||
\usepackage{tabularx} % deal with text wrapping in tables
|
||||
\usepackage{longtable}
|
||||
\usepackage{tabularray}
|
||||
|
||||
\usepackage{caption}
|
||||
\usepackage[labelformat=simple]{subcaption}
|
||||
|
||||
\renewcommand{\captionfont}{\kaishu\zihao{5}}
|
||||
\renewcommand{\captionlabelfont}{\kaishu\zihao{5}}
|
||||
\DeclareCaptionLabelSeparator{twospace}{ ~}
|
||||
\DeclareCaptionLabelSeparator{twospace}{~}
|
||||
\captionsetup{labelsep=twospace} %去掉图1:后冒号
|
||||
\renewcommand{\thesubfigure}{(\alph{subfigure})}
|
||||
\renewcommand{\tablename}{表}
|
||||
@@ -199,6 +211,28 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
% 外文文献中表、图、公式、代码编号重置
|
||||
\newcommand{\newtranschapter}{\thispagestyle{empty}\addtocounter{chapter}{1}\setcounter{table}{0}\setcounter{equation}{0}\setcounter{figure}{0}\setcounter{lstlisting}{0}}
|
||||
|
||||
% Tabularray 设置
|
||||
|
||||
\SetTblrStyle{contfoot-text}{font=\kaishu\zihao{5}}
|
||||
\SetTblrStyle{caption-tag}{font=\kaishu\zihao{5}}
|
||||
\SetTblrStyle{caption-text}{font=\kaishu\zihao{5}}
|
||||
\DeclareTblrTemplate{contfoot-text}{default}{}
|
||||
\DeclareTblrTemplate{caption-sep}{default}{}
|
||||
\DeclareTblrTemplate{firsthead}{default}
|
||||
{
|
||||
\UseTblrTemplate{caption}{default}
|
||||
}
|
||||
\DeclareTblrTemplate{caption-tag}{myconcaptag}{续表\thetable}
|
||||
\DeclareTblrTemplate{capcont}{default}{
|
||||
\centering
|
||||
\makebox [\hsize] [c] {
|
||||
\UseTblrTemplate{caption-tag}{myconcaptag}
|
||||
\UseTblrTemplate{caption-sep}{default}
|
||||
\UseTblrTemplate{caption-text}{default}
|
||||
}
|
||||
\par
|
||||
}
|
||||
|
||||
% equation tweaking
|
||||
\usepackage{amssymb}
|
||||
\usepackage{bm} % 加粗使用
|
||||
@@ -242,8 +276,8 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
frame=single, %单线边框,注释掉则无边框
|
||||
numbers=left, %行号位于左侧
|
||||
numberbychapter=true,
|
||||
% xleftmargin=.5em,
|
||||
% xrightmargin=.5em,
|
||||
framexleftmargin=24pt,
|
||||
xleftmargin=18pt,
|
||||
% aboveskip=1ex,
|
||||
% columns=flexible, % 如果不指定等宽字体用这个
|
||||
% mathescape,
|
||||
@@ -307,8 +341,15 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
|
||||
|
||||
% List environment config
|
||||
\usepackage[inline]{enumitem}
|
||||
\usepackage{pifont}
|
||||
|
||||
% Reference: https://zhuanlan.zhihu.com/p/681663494
|
||||
\newcommand{\circlednumber}[1]{\ding{\numexpr171+#1\relax}}
|
||||
\setlist[enumerate,1]{label=(\arabic*)}
|
||||
\setlist[enumerate,2]{label=\circlednumber{\arabic*}}
|
||||
\setlist[enumerate,3]{label=\Alph*.}
|
||||
\setlist[enumerate,4]{label=\alph*.}
|
||||
% 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}
|
||||
% Modify the label format by yourself if you do not like 1), 2), ... here.
|
||||
%\setlist[enumerate]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt,label={\arabic*)}}
|
||||
\setlist[itemize]{leftmargin=0pt,itemindent=3.5\ccwd,noitemsep,topsep=0pt}
|
||||
\setlist[enumerate]{leftmargin=0pt,itemindent=3.5\ccwd,noitemsep,topsep=0pt}
|
29
README.md
29
README.md
@@ -78,6 +78,12 @@ latexmk main.tex
|
||||
|
||||
为了方便模板的使用,我一般情况下只会更新`BUPTBachlorThesis.sty`文件和`BUPTBachlor.bst`文件,前者管理整个文档的样式,后者负责生成参考文件的引用格式,直接将这两个文件整体复制替换即可。
|
||||
|
||||
### 这个模板能通过论无忧的格式检测吗?
|
||||
|
||||
能。有关问题和详情见[issue#8](https://github.com/jackfiled/BUPTBachelorThesis/issues/8)。
|
||||
|
||||

|
||||
|
||||
### 如何排版多张子图?
|
||||
|
||||
模板中提供了`subcaption`包作为子图排版的工具。一个示例如下:
|
||||
@@ -128,3 +134,26 @@ appendix1.tex中:
|
||||
chapter2.tex中:
|
||||
评论量含义见\hyperlink{appendix:abbr}{附录1\quad 缩略语表}
|
||||
```
|
||||
|
||||
### 如何统计字数
|
||||
|
||||
见[issue#5](https://github.com/jackfiled/BUPTBachelorThesis/issues/5#issue-2992316613)
|
||||
|
||||
### 需要排版跨页的表格使用什么环境?
|
||||
|
||||
使用`tabularray`包提供的`longtblr`环境,一个例子如下:
|
||||
|
||||
```latex
|
||||
\begin{longtblr}[
|
||||
caption = {基本块构建器提供的接口},
|
||||
label = {tab:basicblock-builder-interface}
|
||||
]{
|
||||
colspec = {|p{4cm}|X[2,l]|X[1,l]|X[2,l]|},
|
||||
rowhead = 1, % 重复表头
|
||||
}
|
||||
\hline
|
||||
\textbf{接口名称} & \textbf{参数} & \textbf{返回值} & \textbf{接口功能说明} \\
|
||||
\hline
|
||||
% 这里是表格内容
|
||||
\end{longtblr}
|
||||
```
|
BIN
assets/bupt-badge.jpg
Normal file
BIN
assets/bupt-badge.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
assets/bupt-name.png
Normal file
BIN
assets/bupt-name.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
assets/lun51.png
Normal file
BIN
assets/lun51.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
24
chapters/acknowledgment.tex
Normal file
24
chapters/acknowledgment.tex
Normal file
@@ -0,0 +1,24 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\chapter*{致谢}
|
||||
\phantomsection\addcontentsline{toc}{chapter}{致谢}
|
||||
|
||||
\normalsize
|
||||
|
||||
在本研究工作即将完成之际,我首先要表达我最深切的感激之情。感谢所有在这段学术旅程中给予我支持、指导和帮助的人。
|
||||
|
||||
首先,我要感谢我的导师,[导师姓名]教授。在论文的选题、研究设计、实验过程以及论文撰写的各个阶段,[导师姓名]教授都给予了我悉心的指导和无私的帮助。[导师姓名]教授严谨的学术态度、深邃的学术见解和对科研工作的热爱深深地影响了我,为我今后的学术道路奠定了坚实的基础。在此,我向[导师姓名]教授表示最诚挚的敬意和感谢。
|
||||
|
||||
我还要感谢[学院/系]的所有老师和同学。在学习和研究过程中,他们提供了宝贵的建议和帮助。特别是[同学/同事姓名],在实验设计和数据分析方面给予了我极大的帮助,使我的研究工作得以顺利进行。我们共同讨论问题、分享研究成果,这些经历将成为我宝贵的记忆。
|
||||
|
||||
感谢[实验室/研究组]的全体成员,他们在日常实验和研究中给予了我许多帮助和支持。我们共同度过了许多难忘的日夜,一起面对挑战,分享成功的喜悦。这段经历不仅让我在学术上有所收获,也让我学会了团队合作和相互支持的重要性。
|
||||
|
||||
我还要感谢我的家人,他们一直是我最坚强的后盾。在我遇到困难和挫折时,他们总是给予我鼓励和支持,让我有勇气继续前行。没有他们的理解和支持,我不可能完成这项研究工作。在此,我要向他们表达我最深切的爱意和感激。
|
||||
|
||||
最后,我要感谢所有参与和支持我研究工作的人员和机构。感谢[资助机构]为我的研究提供资金支持,感谢[合作单位]提供的实验资源和帮助。每一位给予我帮助和支持的人,我都铭记在心,感激不尽。
|
||||
|
||||
在未来的学术道路上,我将带着这份感激之情,继续努力,不断探索,以期取得更多的研究成果,回报所有关心和支持我的人。
|
||||
|
||||
\end{document}
|
78
chapters/cover.tex
Normal file
78
chapters/cover.tex
Normal file
@@ -0,0 +1,78 @@
|
||||
\documentclass[../main.tex]{subfiles}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\begin{titlepage}
|
||||
|
||||
\pagestyle{empty}
|
||||
\centering
|
||||
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
\includegraphics[width=10.34cm]{assets/bupt-name.png}
|
||||
\end{figure}
|
||||
|
||||
\vspace{1cm}
|
||||
|
||||
\begin{spacing}{1.05}
|
||||
{
|
||||
\zihao{1}\heiti
|
||||
\textbf{
|
||||
本~
|
||||
科~
|
||||
毕~
|
||||
业~
|
||||
设~
|
||||
计(论文)
|
||||
} \\
|
||||
}
|
||||
\end{spacing}
|
||||
|
||||
\vspace{1.5cm}
|
||||
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
\includegraphics[width=3.66cm]{assets/bupt-badge.jpg}
|
||||
\end{figure}
|
||||
|
||||
\vspace{1cm}
|
||||
|
||||
\begin{spacing}{1.05}
|
||||
\zihao{3}\heiti\bfseries
|
||||
|
||||
% 为需要换行书写标题而准备
|
||||
% \begin{tblr}{cc}
|
||||
% 题目:& \ul[11cm]{分布式异构资源管理与任务调度系统的} \\
|
||||
% & \ul[11cm]{设计与实现}
|
||||
% \end{tblr}
|
||||
题目:\ul[11cm]{\thesistitle }
|
||||
\end{spacing}
|
||||
|
||||
\vspace{1cm}
|
||||
|
||||
{
|
||||
\zihao{3}\songti\bfseries
|
||||
\begin{tblr}{
|
||||
colspec={cc},
|
||||
rowsep=0pt,
|
||||
colsep=3pt
|
||||
}
|
||||
姓\qquad{}名 & \ul[9cm]{你是} \\
|
||||
学\qquad{}院 & \ul[9cm]{计算机学院(国家示范性软件学院)}\\
|
||||
专\qquad{}业 & \ul[9cm]{计算机科学与技术} \\
|
||||
班\qquad{}级 & \ul[9cm]{2021xxxxxx} \\
|
||||
学\qquad{}号 & \ul[9cm]{2021xxxxxx} \\
|
||||
指导教师 & \ul[9cm]{AAA毕业论文指导}
|
||||
\end{tblr}
|
||||
}
|
||||
|
||||
\vspace{1.5cm}
|
||||
|
||||
\begin{spacing}{1.05}
|
||||
\zihao{3}\songti\bfseries
|
||||
2025年4月
|
||||
\end{spacing}
|
||||
|
||||
\end{titlepage}
|
||||
|
||||
\end{document}
|
27
main.tex
27
main.tex
@@ -10,9 +10,11 @@
|
||||
|
||||
\begin{document}
|
||||
|
||||
% 封面
|
||||
\blankmatter
|
||||
\includepdf[pages=-]{docs/cover.pdf}
|
||||
% 使用Word渲染而成的PDF文件
|
||||
% \blankmatter
|
||||
% \includepdf[pages=-]{docs/cover.pdf}
|
||||
% 使用Latex模板
|
||||
\subfile{chapters/cover}
|
||||
|
||||
% 诚信声明
|
||||
\blankmatter
|
||||
@@ -43,24 +45,7 @@
|
||||
|
||||
% 致谢
|
||||
\clearpage
|
||||
\chapter*{致\qquad{}谢}
|
||||
\phantomsection\addcontentsline{toc}{chapter}{致\qquad{}谢}
|
||||
|
||||
\normalsize
|
||||
|
||||
在本研究工作即将完成之际,我首先要表达我最深切的感激之情。感谢所有在这段学术旅程中给予我支持、指导和帮助的人。
|
||||
|
||||
首先,我要感谢我的导师,[导师姓名]教授。在论文的选题、研究设计、实验过程以及论文撰写的各个阶段,[导师姓名]教授都给予了我悉心的指导和无私的帮助。[导师姓名]教授严谨的学术态度、深邃的学术见解和对科研工作的热爱深深地影响了我,为我今后的学术道路奠定了坚实的基础。在此,我向[导师姓名]教授表示最诚挚的敬意和感谢。
|
||||
|
||||
我还要感谢[学院/系]的所有老师和同学。在学习和研究过程中,他们提供了宝贵的建议和帮助。特别是[同学/同事姓名],在实验设计和数据分析方面给予了我极大的帮助,使我的研究工作得以顺利进行。我们共同讨论问题、分享研究成果,这些经历将成为我宝贵的记忆。
|
||||
|
||||
感谢[实验室/研究组]的全体成员,他们在日常实验和研究中给予了我许多帮助和支持。我们共同度过了许多难忘的日夜,一起面对挑战,分享成功的喜悦。这段经历不仅让我在学术上有所收获,也让我学会了团队合作和相互支持的重要性。
|
||||
|
||||
我还要感谢我的家人,他们一直是我最坚强的后盾。在我遇到困难和挫折时,他们总是给予我鼓励和支持,让我有勇气继续前行。没有他们的理解和支持,我不可能完成这项研究工作。在此,我要向他们表达我最深切的爱意和感激。
|
||||
|
||||
最后,我要感谢所有参与和支持我研究工作的人员和机构。感谢[资助机构]为我的研究提供资金支持,感谢[合作单位]提供的实验资源和帮助。每一位给予我帮助和支持的人,我都铭记在心,感激不尽。
|
||||
|
||||
在未来的学术道路上,我将带着这份感激之情,继续努力,不断探索,以期取得更多的研究成果,回报所有关心和支持我的人。
|
||||
\subfile{chapters/acknowledgment}
|
||||
|
||||
% 附录
|
||||
\setcounter{figure}{0}
|
||||
|
Reference in New Issue
Block a user