1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
\ProvidesPackage{dtx-style}
\RequirePackage[UTF8,scheme=chinese]{ctex}
\RequirePackage[top=2.5cm, bottom=2.5cm]{geometry}
\RequirePackage{calc}
\RequirePackage{array,longtable}
\RequirePackage{fancybox,fancyvrb}
\RequirePackage{fancyhdr}
\RequirePackage{xcolor}
\RequirePackage{url}
\RequirePackage{ifxetex}
\RequirePackage{hyperref}
\hypersetup{%
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=1,
breaklinks=true,
colorlinks=true,
linkcolor=blue,
plainpages=false,
pdfborder=0 0 0}
\ifxetex
\hypersetup{%
CJKbookmarks=true}
\else
\hypersetup{%
unicode=true,
CJKbookmarks=false}
\fi
\def\SpecialOptionIndex#1{\@bsphack%
\index{#1\actualchar{\protect\bfseries #1}}\@esphack}
\newenvironment{options}
{\list{}{\setlength\labelwidth{2cm}%
\setlength\labelsep{3pt}%
\setlength\leftmargin{\labelwidth+\labelsep}%
\addtolength{\itemsep}{3pt}%
\renewcommand\makelabel[1]{%
\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}
\MakeShortVerb{\|}
\def\pkg#1{\texttt{#1}}
\def\option#1{\textsf{#1}}
\def\file#1{\textsl{#1}}
\def\thuthesis{\textsc{Thu}\-\textsc{Thesis}}
\newcommand{\note}[1]{\par%
{\color{magenta}\bfseries 说明:#1}}
|