|
| 1 | +\usepackage[centering,paperwidth=180mm,paperheight=230mm,% |
| 2 | +body={390pt,530pt},marginparsep=10pt,marginpar=50pt]{geometry} |
| 3 | +\usepackage{color} |
| 4 | +\usepackage{enumitem} |
| 5 | +\usepackage{fancyvrb} |
| 6 | +\usepackage[bottom,perpage,symbol*]{footmisc} |
| 7 | +\usepackage{graphicx} |
| 8 | +\usepackage[hidelinks]{hyperref} |
| 9 | +\usepackage{makeidx} |
| 10 | +\usepackage[toc]{multitoc} |
| 11 | +\usepackage{pifont} |
| 12 | +\usepackage{underscore} |
| 13 | +\usepackage{amsmath} |
| 14 | + |
| 15 | +\DefineFNsymbols*{chinese}{{\ding{172}}{\ding{173}}{\ding{174}}{\ding{175}}% |
| 16 | +{\ding{176}}{\ding{177}}{\ding{178}}{\ding{179}}{\ding{180}}{\ding{181}}} |
| 17 | +\setfnsymbol{chinese} |
| 18 | + |
| 19 | +\hypersetup{bookmarksnumbered=true,bookmarksdepth=2} |
| 20 | + |
| 21 | +\CTEXsetup[number={\thechapter}]{chapter} |
| 22 | +\CTEXsetup[format+={\raggedleft}]{chapter} |
| 23 | +\CTEXsetup[beforeskip={10pt}]{chapter} |
| 24 | +\CTEXsetup[afterskip={30pt}]{chapter} |
| 25 | +\def\CTEX@chapter@aftername{\par} % \CTEXsetup[aftername={\par}]{chapter} |
| 26 | +\CTEXsetup[format+={\raggedright}]{section} |
| 27 | +\CTEXsetup[beforeskip={-3.0ex plus -1ex minus -.2ex}]{section} |
| 28 | +\CTEXsetup[afterskip={2.3ex plus .2ex minus 0.2ex}]{section} |
| 29 | + |
| 30 | +\renewcommand \thefigure{\thechapter-\arabic{figure}} |
| 31 | +\renewcommand \thetable{\thechapter-\arabic{table}} |
| 32 | + |
| 33 | +\newcommand\figcaption[1]{\def\@captype{figure}\caption{#1}} |
| 34 | +\newcommand\tabcaption[1]{\def\@captype{table}\caption{#1}} |
| 35 | + |
| 36 | +\long\def\@caption#1[#2]#3{% |
| 37 | + \addcontentsline{\csname ext@#1\endcsname}{#1}% |
| 38 | + {\protect\numberline{\csname fnum@#1\endcsname}{ \ignorespaces #2}}% change "the" to "fnum@" |
| 39 | + \normalsize |
| 40 | + \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}} |
| 41 | + |
| 42 | +\long\def\@makecaption#1#2{% |
| 43 | + \vskip\abovecaptionskip |
| 44 | + \sbox\@tempboxa{#1\quad#2}% |
| 45 | + \ifdim \wd\@tempboxa >\hsize |
| 46 | + #1\quad#2\par |
| 47 | + \else |
| 48 | + \global \@minipagefalse |
| 49 | + \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% |
| 50 | + \fi |
| 51 | + \vskip\belowcaptionskip} |
| 52 | + |
| 53 | +\setlength\abovecaptionskip{0pt} |
| 54 | + |
| 55 | +%\setmainfont{Times New Roman} |
| 56 | +\setmainfont{Linux Libertine O} |
| 57 | +%\setmainfont{TeX Gyre Pagella} |
| 58 | +\newfontfamily\urlfont{PT Sans Narrow} |
| 59 | +%\setmonofont[AutoFakeBold=1.6,AutoFakeSlant=0.17,Mapping=tex-text-tt]{Inconsolata} |
| 60 | +\setCJKfamilyfont{zhyou}{YouYuan} |
| 61 | + |
| 62 | +\newcommand{\fn}[1]{\texttt{#1}} |
| 63 | +\newcommand{\sfn}[1]{\texttt{\small #1}} |
| 64 | +\newcommand{\kw}[1]{\textsf{#1}} |
| 65 | +\newcommand{\myurl}[1]{{\urlfont #1}} |
| 66 | +\newcommand{\mpar}[1]{\marginpar[\hfill\kaishu #1]{\kaishu #1}} |
| 67 | +\newcommand{\mn}[1]{\texttt{\bs #1}} |
| 68 | +\renewcommand{\today}{\the\year-\the\month-\the\day} |
| 69 | +\newcommand\bs{\textbackslash} |
| 70 | + |
| 71 | +\newcommand\begindot{\begin{itemize} |
| 72 | +[itemsep=2pt plus 2pt minus 2pt,% |
| 73 | +topsep=3pt plus 2pt minus 2pt,% |
| 74 | +parsep=0pt plus 2pt minus 2pt]} |
| 75 | +\newcommand\myenddot{\end{itemize}} |
| 76 | + |
| 77 | +\newcommand\beginnum{\begin{enumerate} |
| 78 | +[itemsep=2pt plus 2pt minus 2pt,% |
| 79 | +topsep=3pt plus 2pt minus 2pt,% |
| 80 | +parsep=0pt plus 2pt minus 2pt]} |
| 81 | +\newcommand\myendnum{\end{enumerate}} |
| 82 | + |
| 83 | +\DefineVerbatimEnvironment% |
| 84 | + {Code}{Verbatim} |
| 85 | + {fontsize=\small,baselinestretch=0.9,xleftmargin=3mm} |
| 86 | + |
| 87 | +\raggedbottom |
| 88 | +%\setlength{\parskip}{1ex plus .5ex minus .5ex} |
| 89 | + |
| 90 | +\input{verbatim.cls} |
| 91 | +\DefineVerbatimEnvironment% |
| 92 | + {Codex}{Verbatim} |
| 93 | + {fontsize=\small,baselinestretch=0.9,xleftmargin=3mm,% |
| 94 | + frame=lines,labelposition=all,framesep=5pt} |
| 95 | + |
| 96 | +\DefineVerbatimEnvironment% |
| 97 | + {Code}{Verbatim} |
| 98 | + {fontsize=\small,baselinestretch=0.9,xleftmargin=3mm} |
| 99 | + |
| 100 | +\makeindex |
0 commit comments