-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpreamble.tex
52 lines (45 loc) · 1.37 KB
/
preamble.tex
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
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{graphbox}
\usepackage{float}
\usepackage{etoolbox}
\if\rendermode1
\usepackage[a4paper, left=2cm, right=2cm, top=0.5cm, bottom=0.5cm]{geometry}
\else\if\rendermode2
\else\if\rendermode3
\usepackage[a4paper, left=2cm, right=2cm, top=0.5cm, bottom=0.5cm]{geometry}
\fi\fi\fi
\usepackage{adjustbox}
\adjustboxset{scale=0.666667, max width=\linewidth}
\usepackage[colorlinks]{hyperref}
\hypersetup{bookmarksdepth=5}
\pdfstringdefDisableCommands{
\def\myind#1{#1}
}
\if\rendermode1
\NewDocumentCommand{\myind}{m}{#1}
\else
\usepackage{imakeidx}
\makeindex
\NewDocumentCommand{\myind}{m}{#1\index{#1}}
\fi
\usepackage{seqsplit}
\newcommand{\trvar}[1]{\texttt{\seqsplit{#1}}}
\input{preambles/unicode}
\input{preambles/skin}
\input{preambles/envs}
\input{preambles/temps}
\input{preambles/terms}
\renewcommand{\figureautorefname}{图}
\renewcommand{\tableautorefname}{表}
\renewcommand{\sectionautorefname}{节}
\renewcommand{\subsectionautorefname}{小节}
\renewcommand{\chapterautorefname}{章}
\renewcommand{\algorithmautorefname}{算法}
\renewcommand{\algorithmcfname}{算法}
\newcommand{\probautorefname}{例题}
\renewcommand\thesubfigure{(\alph{subfigure})}
\newcommand{\subfigureautorefname}{\figureautorefname}
\renewcommand\thesubtable{(\alph{subtable})}
\newcommand{\subtableautorefname}{\tableautorefname}