summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty')
-rw-r--r--Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty45
1 files changed, 23 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty b/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
index e91f12a780d..8dca363535a 100644
--- a/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
+++ b/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
@@ -10,31 +10,27 @@
%%
%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
+%% This file may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3a
%% 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.3 or later is part of all distributions of LaTeX
-%% version 2005/12/01 or later.
+%% 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.
%%
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
-\RequirePackage{ifxetex}
-\ifxetex\else
- \ClassError{hitszthesis}{Please use XeLaTeX to compile this file}{}
- \end{document}
-\fi
\ProvidesPackage{dtx-style}
\RequirePackage{hypdoc}
-\RequirePackage{ifthen}
-\RequirePackage[UTF8,scheme=chinese]{ctex}
-\RequirePackage{newtxtext}
-\RequirePackage{newtxmath}
+\RequirePackage[UTF8,scheme=chinese,fontset=windowsnew]{ctex}
+\RequirePackage{newpxtext}
+\RequirePackage{newpxmath}
\RequirePackage[
top=2.5cm, bottom=2.5cm,
- left=5cm, right=1.5cm,
+ left=4cm, right=2cm,
headsep=8mm]{geometry}
\RequirePackage{array,longtable,booktabs}
\RequirePackage{listings}
@@ -43,10 +39,7 @@
\RequirePackage{enumitem}
\RequirePackage{etoolbox}
\RequirePackage{metalogo}
-
-\ifthenelse{\equal{\@nameuse{g__ctex_fontset_tl}}{mac}}{%
- \xeCJKsetwidth{‘’“”}{1em}
-}{}
+\RequirePackage{hyperref}
\colorlet{hitsz@macro}{blue!60!black}
\colorlet{hitsz@env}{blue!70!black}
@@ -135,11 +128,19 @@
\DeclareDocumentCommand{\file}{s m}{%
\texttt{#2}\IfBooleanF#1{\hitsz@special@index{file}{#2}}}
\newcommand{\myentry}[1]{%
- \marginpar{\raggedleft\color{purple}\bfseries\small\strut #1}}
+ \marginpar{\small\raggedleft\color{purple}\bfseries\strut #1}}
\newcommand{\note}[2][Note]{{%
\color{magenta}{\bfseries #1}\emph{#2}}}
-
+\newcommand{\pozhehao}{——}
\def\hitszthesis{\textsc{Hitsz}\-\textsc{Thesis}}
+\def\hitsz{哈尔滨工业大学(深圳)}
+\def\PGR{\href{http://hitgs.hit.edu.cn/aa/fd/c3425a109309/page.htm}
+{《\hitsz 研究生学位论文撰写规范》}}
+\def\UGR{\href{http://www.hitsz.edu.cn/UserFiles/editor/file/20190923/1569224708968004622.doc}
+{《\hitsz 本科生毕业论文撰写规范》}}
+ \NewDocumentEnvironment{hitszrgu}{o o}
+ { \IfNoValueTF{#1}{\PGR,\UGR}{#1}\IfNoValueF{#2}{#2中}%
+\color{red}规定:“}{”}
\endinput
%%
%% End of file `dtx-style.sty'.