Skip to content

Commit

Permalink
sjtuthesis vesion: 0.8 -> 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
weijianwen committed Jan 8, 2016
1 parent b003696 commit cd84338
Showing 1 changed file with 12 additions and 36 deletions.
48 changes: 12 additions & 36 deletions sjtuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
%%==================================================

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{sjtuthesis}[2015/2/15 v0.7 Shanghai Jiao Tong University Template]
\def\version{v0.7}
\ProvidesClass{sjtuthesis}[2015/3/15 v0.9 Shanghai Jiao Tong University Template]
\def\version{v0.9}
\newif\ifsjtu@bachelor\sjtu@bachelorfalse
\newif\ifsjtu@master\sjtu@masterfalse
\newif\ifsjtu@doctor\sjtu@doctorfalse
Expand Down Expand Up @@ -213,6 +213,15 @@
}

% 定理环境
\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
\theoremstyle{plain}
\newtheorem{algo}{\sjtu@label@algo~}[chapter]
\newtheorem{thm}{\sjtu@label@thm~}[chapter]
Expand All @@ -231,17 +240,6 @@
\newtheorem{bprop}[thm]{\sjtu@label@prop~}
\newtheorem{bcor}[thm]{\sjtu@label@cor~}
\renewcommand{\proofname}{\bf\sjtu@label@proof}
\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

>>>>>>> 92db221... Clean code: Move theorem definition into sjtuthesis.cls
%==========
% Segment 4. Draw the sjtuthesis
%==========
Expand Down Expand Up @@ -450,28 +448,6 @@

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

% 参考文献环境
\renewenvironment{thebibliography}[1]
{\chapter{\bibname}%
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}


\newenvironment{publications}[1]
{\chapter{\sjtu@label@publications}%
\@mkboth{\MakeUppercase\sjtu@label@publications}
Expand Down Expand Up @@ -513,7 +489,7 @@
{\def\@noitemerr
{\@latex@warning{Empty `patents' environment}}%
\endlist}

\newenvironment{projects}[1]
{\chapter{\sjtu@label@projects}%
\@mkboth{\MakeUppercase\sjtu@label@projects}
Expand Down

0 comments on commit cd84338

Please sign in to comment.