summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hitszthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-23 21:19:28 +0000
committerKarl Berry <karl@freefriends.org>2020-06-23 21:19:28 +0000
commit9fd2a8cb70330cc8c29c8e3b9bed513525e8aa32 (patch)
treecfc924298133b9866bfb656f6184c78abf2447c9 /Master/texmf-dist/tex/latex/hitszthesis
parent2d55bec591fdbb613b103837e142537f41bb0cef (diff)
hitszthesis (23jun20)
git-svn-id: svn://tug.org/texlive/trunk@55637 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hitszthesis')
-rw-r--r--Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls67
-rw-r--r--Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty6
2 files changed, 45 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls
index 954f215456e..a5d294c7424 100644
--- a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls
+++ b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls
@@ -11,21 +11,21 @@
%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
%%
%% This file may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3a
+%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
-%% and version 1.3a or later is part of all distributions of LaTeX
-%% version 2004/10/01 or later.
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008/05/04 or later.
%%
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{hitszthesis}
-[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
\RequirePackage{ifthen}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{
@@ -272,9 +272,7 @@
\ifhitsz@openright\cleardoublepage\else\clearpage\fi
\@mainmattertrue}
\renewcommand\normalsize{%
- \@setfontsize\normalsize{12bp}{ \ifhitsz@glue 20.50398bp \@plus 2.83465bp \@minus 0bp
- \else 19.27374bp
- \fi}%
+ \@setfontsize\normalsize{12bp}{19.27374bp \@plus 2bp \@minus 2bp}%
\abovedisplayskip=8pt
\abovedisplayshortskip=8pt
\belowdisplayskip=\abovedisplayskip
@@ -308,6 +306,11 @@
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
+\fancypagestyle{hitsz@onlyheadings}{%
+ \fancyhf{}
+ \fancyhead[C]{\songti\xiaowu[0]%
+ \hitsz@cschoolname\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
+}
\fancypagestyle{hitsz@headings}{%
\fancyhf{}
\ifhitsz@doctor
@@ -346,7 +349,7 @@
\fi
\ifhitsz@shenzhen
\fancyhead[C]{\songti\xiaowu[0]%
- \hitsz@cschoolname\hitsz@shenzhencampus\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
+ \hitsz@cschoolname\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
\fi
\ifhitsz@weihai
\fancyhead[C]{\songti\xiaowu[0]%
@@ -876,17 +879,16 @@
\newcommand{\hitsz@second@titlepage@bachelor}{
\vspace*{0.8cm}
\ifhitsz@harbin%
- \centering{\includegraphics[width=6.2cm]{hitlogo}}
+ \centering{\includegraphics[width=6.2cm]{hitlogo}}
\else%
- \ifhitsz@shenzhen%
- \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
- \kaishu\yihao\hitsz@shenzhencampus}}
- \else%
- \ifhitsz@weihai%
- \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
- \kaishu\yihao\hitsz@weihaicampus}}
- \fi%
- \fi%
+ \ifhitsz@shenzhen%
+ \centering{\includegraphics[width=6.2cm]{hitlogo}}
+ \else%
+ \ifhitsz@weihai%
+ \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
+ \kaishu\yihao\hitsz@weihaicampus}}
+ \fi%
+ \fi%
\fi%
\vspace{1.3cm}
\begin{center}
@@ -1259,6 +1261,21 @@
}{%
\let\title\@gobble%
}
+\newenvironment{algorithmen}[1][htb]{
+ \renewcommand{\algorithmcfname}{Algorithm}%
+ \begin{algorithm}[#1]%
+}{%
+ \end{algorithm}
+}
+\newcommand{\appendixcaption}[1]{\centering\wuhao#1}
+\newcommand{\SetPageNumberingFromOne}{\setcounter{page}{1}}
+\newcommand{\SetAppendixWithOnlyHeadings}{
+ \ctexset{
+ chapter/pagestyle = {hitsz@onlyheadings},
+ }
+ \thispagestyle{hitsz@headings}
+ \pagestyle{hitsz@onlyheadings}
+}
\let\title\@gobble
\newcommand{\hitsz@appendix@title}[1]{%
\begin{center}
@@ -1331,19 +1348,19 @@
}
\def\hitsz@authorization@bachelor{%
\ifhitsz@openright\cleardoublepage\else\clearpage\fi
- \chapter*{\ifhitsz@harbin\relax\else\sanhao\fi\hitsz@declarename@bachelor}
+ \chapter*{\ifhitsz@weihai\sanhao\fi\hitsz@declarename@bachelor}
\addcontentsline{toc}{chapter}{\hitsz@authorization@bachelor@toc}
\ifhitsz@shenzhen%
\hitsz@authorizationtext@bachelor@shenzhen
\else%
- \ifhitsz@weihai
+ \ifhitsz@weihai%
\hitsz@authorizationtext@bachelor@weihai
- \else
+ \else%
\hitsz@authorizationtext@bachelor
- \fi
- \fi
-\vspace{2\baselineskip}
-\par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill
+ \fi%
+ \fi%
+ \vspace{2\baselineskip}
+ \par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill
}
\NewDocumentCommand{\authorization}{o}{%
diff --git a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty
index 1eac06471b2..137d01e2722 100644
--- a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty
+++ b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty
@@ -7,7 +7,7 @@
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008/05/04 or later.
%
% This work has the LPPL1.3c maintenance status `maintained'.
%
@@ -61,9 +61,9 @@
\SetAlgoSkip{1pt}
\renewcommand{\algocf@captiontext}[2]{\wuhao#1\algocf@typo~\AlCapFnt{}#2} % text of caption
\expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
-\renewcommand\thealgocf{\@arabic\c@algocf} % and the way it is printed
+ \renewcommand\thealgocf{\@arabic\c@algocf} % and the way it is printed
\else% else
-\renewcommand\thealgocf{\csname the\algocf@within\endcsname-\@arabic\c@algocf}
+ \renewcommand\thealgocf{\csname the\algocf@within\endcsname-\@arabic\c@algocf}
\fi
\renewcommand{\algocf@makecaption}[2]{%中英文双标题一定多于一行,因此去掉单行时的判断,并将\parbox中标题设置为居中
\addtolength{\hsize}{\algomargin}%