-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
3,461 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,58 @@ | ||
# BJUTLATEX | ||
北京工业大学硕士研究生学位 LATEX 论文模版(学术型硕士) | ||
# 这是什么? | ||
|
||
这是非官方的北京工业大学硕士研究生的学位论文$\LaTeX$模版(1.0) | ||
|
||
制作本模版的思路是因为Office for MacOS的体验极差,加 | ||
之本人又对word十分不熟练。网上目前没有现成的模版给我白嫖,本着开源精神和拙劣的$\LaTeX$ 理解,参考部分模版(见致谢)赶工 | ||
出该模版的1.0版本。希望借助此模版,使用者能将本就在毕业季不多的精力专注于文字而不是行距、行高、段落等繁琐的格式上。接下来将介绍模版的使用方法。 | ||
|
||
本模版中大量格式参考《北京工业大学研究生学位论文撰写规范》和北京工业大学博士论文$\LaTeX$ 模版(见致谢)。但仍有小部分 | ||
细节格式未确认(见todo list)。 | ||
|
||
> 关于格式或修改定制问题,欢迎issue至此模版的git仓库。 | ||
# 预览 | ||
|
||
![](preview.png) | ||
|
||
# 怎样使用?怎样修改? | ||
|
||
## 怎样使用? | ||
|
||
如果您只想使用本模版进行写作,请参考模版第一章。需要很微小的一部分$\LaTeX$基础。 | ||
|
||
如果您想要修改模版格式,则需要具备稍微多一点的$\LaTeX$模版写作基础。 | ||
|
||
### 这个版本是学术型硕士版本,专业型硕士能否正常使用? | ||
|
||
个人精力有限,没有专门对专业型硕士做模版选项。但您只需要自行修改部分内容,如内封标题文字,外封颜色等。就可以改为专业型硕士模版。 | ||
|
||
### 需要用到什么工具或平台? | ||
|
||
个人测试的操作系统为MacOS 12.3,tex版本为TeX Live 2022。编辑工具为NeoVim。 | ||
|
||
我并没有对其他操作系统,如windows或在线编辑器,如Overleaf专门适配。适配是未来计划,但据我所知,目前的版本在不同环境下的差别甚小,主要是没有做字体适配。在目前版本中,如果您在其他环境下遇到字体问题,请自行修改相应字体,该文档目录下提供了您可能需要的字体,您可以修改`bjutthesis.cls`文件中的字体为对应的字体文件名。如第33行宋体`Songt SC` 改为`SimSun.ttc`。 | ||
|
||
### 如果有其他问题怎么解决? | ||
|
||
https://www.google.com/ | ||
|
||
## 怎样修改? | ||
|
||
本着开源精神。您可以随意fork或自行下载后本地修改,是否要与该仓库合并,取决于您自己。 | ||
|
||
# 可能遇到的问题 | ||
|
||
收集中 | ||
|
||
# todo | ||
|
||
- [ ] windows选项适配 | ||
- [ ] 多平台测试 | ||
- [ ] 专业型硕士选项适配 | ||
- [ ] 一些细节格式 | ||
- [ ] 还没想到 | ||
|
||
# 感谢 | ||
|
||
本模版参考了大量[该模版](https://github.com/fisherxt/bjutthesis)的格式,组织方式等。 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
\begin{acknowledgement} | ||
本文档参考了大量的北京工业大学博士学位论文\LaTeX 模版。特此感谢(https://github.com/fisherxt/bjutthesis) | ||
\end{acknowledgement} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{bitoc}[tableofcontents for bjutthesis.cls] | ||
|
||
\RequirePackage{xparse} | ||
\RequirePackage{hyperref} | ||
\hypersetup{linktoc=all} | ||
\RequirePackage[notintoc]{nomencl} | ||
|
||
%% Names | ||
\def\cabstractname{摘\quad 要} | ||
\def\ccontentsname{目\quad 录} | ||
\def\cnomname{术语表} | ||
\def\cconclusionname{结\quad 论} | ||
\def\cbibname{参考文献} | ||
\def\cappendixname{附录} | ||
\def\cpubname{攻读硕士学位期间索取得的主要科研成果} | ||
\def\cackname{致\quad 谢} | ||
\def\clistfigurename{插图目录} | ||
\def\clisttablename{表格目录} | ||
\def\eabstractname{Abstract} | ||
\def\econtentsname{Contents} | ||
\def\enomname{Nomenclature} | ||
\def\echaptername{Chapter} | ||
\def\econclusionname{Conclusions} | ||
\def\ebibname{References} | ||
\def\eappendixname{Appendix} | ||
\def\epubname{Publications} | ||
\def\eackname{Acknowledgement} | ||
\def\elistfigurename{List of Figures} | ||
\def\elisttablename{List of Tables} | ||
|
||
%% NEW Commands | ||
\NewDocumentCommand{\bichapter}{sO{}mm}{% | ||
% O{} or #2 for set font of English chap entries in Chinese ToC with header normalfont | ||
\IfBooleanTF{#1} | ||
{\chapter*{#2#3} | ||
\markboth{#3}{} | ||
\addcontentsline{toc}{chapter}{#2#3} | ||
\addcontentsline{toe}{chapter}{\bfseries#4}} | ||
{\chapter{#3} | ||
\addcontentsline{toe}{chapter}{\bfseries\echaptername~\thechapter~~#4}}} | ||
|
||
\NewDocumentCommand{\bisection}{mm}{% | ||
\section{#1} | ||
\addcontentsline{toe}{section}{\thesection~~#2}} | ||
\NewDocumentCommand{\bisubsection}{mm}{% | ||
\subsection{#1} | ||
\addcontentsline{toe}{subsection}{\thesubsection~~#2}} | ||
\renewcommand{\appendixname}{\cappendixname} | ||
\NewDocumentCommand{\biappendix}{mm}{% | ||
\ctexset{chapter/format=\bjut@chapter@font\raggedright} | ||
\chapter{#1} | ||
\ctexset{chapter/format=\bjut@chapter@font\centering} | ||
\addcontentsline{toe}{chapter}{\bfseries\eappendixname~\thechapter~~#2}} | ||
|
||
%% ==== Make Bilingual ToC | ||
\renewcommand\contentsname\ccontentsname | ||
|
||
\newcommand{\makebitoc}{% | ||
% 正确生成目录项,一般需要编译两次源代码。 | ||
{\zihao{-4}\linespread{1.53}\selectfont\tableofcontents}\normalsize | ||
%\addcontentsline{toc}{chapter}{\ccontentsname} | ||
%\addcontentsline{toe}{chapter}{\bfseries\econtentsname~(in Chinese)} | ||
%\bichapter*[\bfseries]{\econtentsname}{\econtentsname} | ||
%{\zihao{-4}\linespread{1.53}\selectfont\@starttoc{toe}}\normalsize | ||
} | ||
|
||
%% ==== Lists | ||
\renewcommand\listfigurename\clistfigurename | ||
\renewcommand\listtablename\clisttablename | ||
\let\oldlistoffigures\listoffigures | ||
\let\oldlistoftables\listoftables | ||
\renewcommand\listoffigures{% | ||
\cleardoublepage | ||
\phantomsection | ||
\addcontentsline{toc}{chapter}{\clistfigurename} | ||
\addcontentsline{toe}{chapter}{\bfseries\elistfigurename} | ||
\oldlistoffigures} | ||
\renewcommand\listoftables{ | ||
\cleardoublepage | ||
\phantomsection | ||
\addcontentsline{toc}{chapter}{\clisttablename} | ||
\addcontentsline{toe}{chapter}{\bfseries\elisttablename} | ||
\oldlistoftables} | ||
|
||
%% ==== Nomenclature | ||
\renewcommand\nomname\cnomname | ||
\makenomenclature | ||
\let\oldprintnomenclature\printnomenclature | ||
\renewcommand\printnomenclature{% | ||
\cleardoublepage | ||
\phantomsection | ||
\addcontentsline{toc}{chapter}{\cnomname} | ||
\addcontentsline{toe}{chapter}{\bfseries\enomname} | ||
\oldprintnomenclature} | ||
|
||
% ==== Reference | ||
\renewcommand\bibname\cbibname | ||
\NewDocumentCommand{\makebib}{m}{% | ||
\cleardoublepage | ||
\phantomsection | ||
\addcontentsline{toc}{chapter}{\bibname} | ||
\addcontentsline{toe}{chapter}{\bfseries\ebibname} | ||
\bibliography{#1}} | ||
|
||
%% ==== NEW Environments | ||
% ==== Abstract Environment | ||
\newcommand\ckeywords{% | ||
\par | ||
\vspace{12pt} | ||
\noindent{\zihao{-4}\heiti 关键词:}\relax} | ||
\newcommand\ekeywords{% | ||
\par | ||
\vspace{12pt} | ||
\noindent{\zihao{-4}\bfseries Keywords:~}\relax} | ||
\NewDocumentEnvironment{cabstract}{}{% | ||
\bichapter*{\cabstractname}{\eabstractname~(in Chinese)} | ||
}{\relax} | ||
\NewDocumentEnvironment{eabstract}{}{% | ||
\bichapter*[\bfseries]{\eabstractname}{\eabstractname} | ||
}{\relax} | ||
|
||
% ==== Conclusions Environment | ||
\NewDocumentEnvironment{conclusion}{}{% | ||
\bichapter*{\cconclusionname}{\econclusionname} | ||
}{\relax} | ||
|
||
% ==== Publication Environment | ||
\NewDocumentEnvironment{publication}{}{% | ||
\bichapter*{\cpubname}{\epubname} | ||
}{\relax} | ||
|
||
% ==== Acknowledgement Environment | ||
\NewDocumentEnvironment{acknowledgement}{}{% | ||
\bichapter*{\cackname}{\eackname} | ||
}{\relax} | ||
|
Binary file not shown.
Binary file not shown.
Oops, something went wrong.