summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty')
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty24
1 files changed, 16 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty b/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
index ec677025eb9..c4c0e773198 100644
--- a/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
+++ b/Master/texmf-dist/doc/latex/thuthesis/dtx-style.sty
@@ -1,7 +1,7 @@
\ProvidesPackage{dtx-style}
\RequirePackage[UTF8,scheme=chinese]{ctex}
-\RequirePackage[top=2.5cm, bottom=2.5cm]{geometry}
+\RequirePackage[top=2.5cm, bottom=2.5cm, headsep=5mm]{geometry}
\RequirePackage{calc}
\RequirePackage{array,longtable}
@@ -9,9 +9,10 @@
\RequirePackage{fancyhdr}
\RequirePackage{xcolor}
\RequirePackage{url}
+\RequirePackage{hyperref}
+\RequirePackage{enumitem}
\RequirePackage{ifxetex}
-\RequirePackage{hyperref}
\hypersetup{%
bookmarksnumbered=true,
bookmarksopen=true,
@@ -30,6 +31,7 @@
CJKbookmarks=false}
\fi
+\setlist{nosep}
\def\SpecialOptionIndex#1{\@bsphack%
\index{#1\actualchar{\protect\bfseries #1}}\@esphack}
\newenvironment{options}
@@ -41,19 +43,25 @@
\ovalbox{\color{magenta}\bfseries\sffamily ##1}%
\SpecialOptionIndex{##1}}}
}{\endlist}
+
\DefineVerbatimEnvironment{example}{Verbatim}%
{frame=single,framerule=0.3mm,rulecolor=\color{violet},%
fillcolor=\color{violet!5},framesep=1mm,baselinestretch=1.2,%
fontsize=\small,gobble=1}
+
\DefineVerbatimEnvironment{shell}{Verbatim}%
{frame=single,framerule=0.3mm,rulecolor=\color{olive},%
fillcolor=\color{olive!5},framesep=1mm,fontsize=\small,gobble=1}
-\newcommand{\myentry}[1]{%
- \vskip5pt\par\noindent\llap{{\color{purple}\bfseries #1}}\marginpar{\strut}\hskip\parindent}
+
+\newcommand{\myentry}[1]{\vskip5pt\par%
+ \noindent\llap{{\color{purple}\bfseries #1}}%
+ \marginpar{\strut}\hskip\parindent}
+
\MakeShortVerb{\|}
-\def\pkg#1{\texttt{#1}}
-\def\option#1{\textsf{#1}}
-\def\file#1{\textsl{#1}}
+
+\newcommand*\pkg[1]{\texttt{#1}}
+\newcommand*\option[1]{\textsf{#1}}
+\newcommand*\file[1]{\textsl{#1}}
\def\thuthesis{\textsc{Thu}\-\textsc{Thesis}}
\newcommand{\note}[1]{\par%
- {\color{magenta}\bfseries 说明:#1}}
+ {\color{magenta}{\bfseries 说明:}\emph{#1}}}