Skip to content

Commit

Permalink
增加专业术语可选章节,添加化学、国际单位宏包
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuzhu committed Sep 11, 2017
1 parent 0174e2f commit 3bc8693
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
21 changes: 20 additions & 1 deletion BIT-thesis-template-grd/BIT-thesis-grd.cls
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,26 @@ footskip=0.7cm% 页脚 1.8cm %
\fangsong}
{}


%%%============================术语=====================
\newcommand{\bit@denotation@name}{主要符号对照表}
\newenvironment{denotation}[1][2.5cm]{
\chapter{\bit@denotation@name} % no tocline
\noindent\begin{list}{}%
{\vskip-30bp\zihao{-4}
\renewcommand\makelabel[1]{##1\hfil}
\setlength{\labelwidth}{#1} % 标签盒子宽度
\setlength{\labelsep}{0.5cm} % 标签与列表文本距离
\setlength{\itemindent}{0cm} % 标签缩进量
\setlength{\leftmargin}{\labelwidth+\labelsep} % 左边界
\setlength{\rightmargin}{0cm}
\setlength{\parsep}{0cm} % 段落间距
\setlength{\itemsep}{0cm} % 标签间距
\setlength{\listparindent}{0cm} % 段落缩进量
\setlength{\topsep}{0pt} % 标签与上文的间距
}}{\end{list}}
%====增加化学、国际单位宏包
\RequirePackage[version=4]{mhchem}
\RequirePackage{siunitx}
\setcounter{secnumdepth}{4} % 章节编号深度 (part 对应 -1)
\setcounter{tocdepth}{2} % 目录深度 (part 对应 -1)

Expand Down
12 changes: 12 additions & 0 deletions BIT-thesis-template-grd/chapters/denotation.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\begin{denotation}

\item[BIT] 北京理工大学的英文缩写
\item[\LaTeX] 一个很棒的排版系统
\item[\LaTeXe] 一个很棒的排版系统的最新稳定版
\item[\XeTeX] \LaTeX{}的好兄弟,事实上他有很多个兄弟,但是这个兄弟对各种语言的支持能力都很强
\item[ctex] 成套的中文\LaTeX{}解决方案,由一帮天才们开发
\item[\ce{H2SO4}] 硫酸
\item[$ e^{\pi{}i}+1=0$] 一个集自然界五大常数一体的炫酷方程
\item[\ce{2H2 + O2 -> 2H2O}] 一个昂贵的生成生命之源的方程式

\end{denotation}
Binary file modified BIT-thesis-template-grd/demo.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion BIT-thesis-template-grd/demo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@

% 摘要
\include{chapters/abstract}

%% 符号对照表,可选,如不用可注释掉
\input{chapters/denotation}
% 加入目录
\tableofcontents

Expand Down

0 comments on commit 3bc8693

Please sign in to comment.