Skip to content

Commit

Permalink
remove break定理等自定义环境,修修复book引入垂直间距
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuzhu committed Sep 10, 2017
1 parent e902c78 commit 0174e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 46 deletions.
51 changes: 5 additions & 46 deletions BIT-thesis-template-grd/BIT-thesis-grd.cls
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ footskip=0.7cm% 页脚 1.8cm %
%设置行距,大概为22榜,较麻烦
\RequirePackage{setspace}
\setstretch{1.523}

%==============删除默认模板(book.cls )在章之间引入的垂直间隔。要放在hyperref 之前才会生效。===============
\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
%% 设置章节格式
\ctexset{chapter={
name = {第,章},
Expand Down Expand Up @@ -288,38 +290,8 @@ footskip=0.7cm% 页脚 1.8cm %
\newcommand{\mj}{\mathrm{j}}
\newcommand{\dif}{\mathrm{d}}

% 可伸长的数学符号
% \makeatletter
\def\ExtendSymbol#1#2#3#4#5{\ext@arrow 0099{\arrowfill@#1#2#3}{#4}{#5}}
\def\RightExtendSymbol#1#2#3#4#5{\ext@arrow 0359{\arrowfill@#1#2#3}{#4}{#5}}
\def\LeftExtendSymbol#1#2#3#4#5{\ext@arrow 6095{\arrowfill@#1#2#3}{#4}{#5}}
% \makeatother

\newcommand\myRightarrow[2][]{\RightExtendSymbol{=}{=}{\Rightarrow}{#1}{#2}}
\newcommand\myLeftarrow[2][]{\LeftExtendSymbol{\Leftarrow}{=}{=}{#1}{#2}}
\newcommand\myBioarrow[2][]{\ExtendSymbol{\Leftarrow}{=}{\Rightarrow}{#1}{#2}}
\newcommand\myLongEqual[2][]{\ExtendSymbol{=}{=}{=}{#1}{#2}}


\theoremstyle{plain}
\newtheorem{algo}{算法~}[chapter]
\newtheorem{thm}{定理~}[chapter]
\newtheorem{lem}[thm]{引理~}
\newtheorem{prop}[thm]{命题~}
\newtheorem{cor}[thm]{推论~}
\theoremstyle{definition}
\newtheorem{defn}{定义~}[chapter]
\newtheorem{conj}{猜想~}[chapter]
\newtheorem{exmp}{例~}[chapter]
\newtheorem{rem}{注~}
\newtheorem{case}{情形~}
\renewcommand{\proofname}{\bf 证明}


%% 英文字体使用 Times New Roman
%\RequirePackage{fontspec}
\RequirePackage{xltxtra} % \XeTeX Logo
%% Times Fonts
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}
Expand Down Expand Up @@ -718,11 +690,7 @@ footskip=0.7cm% 页脚 1.8cm %
\newcommand\englishkeywords[1]{%
\vspace{2ex}\noindent{\bf \BIT@label@englishkeywords} #1}

%ltz add
%\RequirePackage{titletoc}
%\makeatletter
%\renewcommand\section{{\ziti{1}}}
%\makeatother

%_ 目录
\renewcommand\tableofcontents{%
\pdfbookmark[0]{目录}{bittoc}
Expand All @@ -737,7 +705,7 @@ footskip=0.7cm% 页脚 1.8cm %
\if@restonecol\twocolumn\fi
}

%\addtocontents{toc}{\let\string\CTEX@spaceChar\relax}

%_ 参考文献环境
\renewenvironment{thebibliography}[1]
{\zihao{5}
Expand Down Expand Up @@ -857,15 +825,6 @@ footskip=0.7cm% 页脚 1.8cm %
\setcounter{tocdepth}{2} % 目录深度 (part 对应 -1)


\newtheoremstyle{break}% name
{}% Space above, empty = `usual value'
{}% Space below
{\itshape}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{\newline}% Space after thm head: \newline = linebreak
{}% Thm head spec
\endinput
%%
%% End of file `bitmaster-xetex.cls'.
Binary file modified BIT-thesis-template-grd/demo.pdf
Binary file not shown.

0 comments on commit 0174e2f

Please sign in to comment.