-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtlmgr-intro-zh-cn.sty
70 lines (60 loc) · 1.84 KB
/
tlmgr-intro-zh-cn.sty
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
60
61
62
63
64
65
66
67
68
69
70
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tlmgr-intro-zh-cn}[2021/05/05 Package for tlmgr-intro-zh-cn]
% 版式设计
\RequirePackage[margin=2.4cm]{geometry}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\RequirePackage{tocloft}
\renewcommand{\cftsecleader}{\bfseries\cftdotfill{\cftdotsep}}
\RequirePackage{FiraMono}
% 超链接与颜色
\RequirePackage[colorlinks]{hyperref}
\RequirePackage[dvipsnames]{xcolor}
\hypersetup{linkcolor = Purple}
\RequirePackage{listings}
\RequirePackage[shortlabels]{enumitem}
\RequirePackage{tocbibind}
% 浮动体
\RequirePackage{tabularx}
\RequirePackage{booktabs}
\RequirePackage{graphicx}
\RequirePackage{caption}
\graphicspath{{./fig/}}
\lstset{
basicstyle = {\small\ttfamily},
keywordstyle = \color{blue}\bfseries,
commentstyle = \color{gray},
stringstyle = \color{brown},
breaklines = true,
gobble = 2,
% escapechar = +,
frame = single
}
\ctexset{
section = {
% afterskip = {},
format = \Large\bfseries\raggedright,
number = \arabic{section},
name = {},
},
subsection = {
afterskip = {1.5ex plus .2ex},
format = \large\bfseries\raggedright,
}
}
\newcommand{\tlmgr}{\texttt{tlmgr}}
\newcommand{\tl}{\TeX\,Live}
\newcommand{\marg}[2][\textit]{\texttt{<#1{#2}>}}
\newcommand{\oarg}[2][\textit]{\texttt{[#1{#2}]}}
\newcommand{\op}[1]{\texttt{#1}}
\newcommand{\ac}[1]{\texttt{#1}}
\newcommand{\key}[1]{\texttt{#1}}
\newcommand{\val}[1]{\texttt{#1}}
% textlabel from https://tex.stackexchange.com/questions/54854/reference-plain-text
% \makeatletter
% \newcommand*{\textlabel}[2]{%
% \edef\@currentlabel{#1}% Set target label
% \phantomsection% Correct hyper reference link
% #1\label{#2}% Print and store label
% }
% \makeatother