This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextrapackages.tex
100 lines (78 loc) · 2.74 KB
/
extrapackages.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
%% See the TeXed file for more explanations
%% [OPT] Multi-rowed cells in tabulars
%\usepackage{multirow}
%% [REC] Intelligent cross reference package. This allows for nice
%% combined references that include the reference and a hint to where
%% to look for it.
\usepackage{varioref}
%% [OPT] Easily changeable quotes with \enquote{Text}
%\usepackage[german=swiss]{csquotes}
%% [REC] Format dates and time depending on locale
\usepackage{datetime}
%% [OPT] Provides a \cancel{} command to stroke through mathematics.
%\usepackage{cancel}
%% [NEED] This allows for additional typesetting tools in mathmode.
%% See its excellent documentation.
\usepackage{mathtools}
%% [ADV] Conditional commands
%\usepackage{ifthen}
%% [OPT] Manual large braces or other delimiters.
%\usepackage{bigdelim, bigstrut}
%% [REC] Alternate vector arrows. Use the command \vv{} to get scaled
%% vector arrows.
\usepackage[h]{esvect}
%% [NEED] Some extensions to tabulars and array environments.
\usepackage{array}
%% [OPT] Postscript support via pstricks graphics package. Very
%% diverse applications.
%\usepackage{pstricks,pst-all}
%% [?] This seems to allow us to define some additional counters.
%\usepackage{etex}
%% [ADV] XY-Pic to typeset some matrix-style graphics
%\usepackage[all]{xy}
%% [OPT] This is needed to generate an index at the end of the
%% document.
%\usepackage{makeidx}
%% [OPT] Fancy package for source code listings. The template text
%% needs it for some LaTeX snippets; remove/adapt the \lstset when you
%% remove the template content.
%% Settings for code listings
\usepackage{listings}
\usepackage{listings-golang}
\lstset{ % add your own preferences
frame=single,
basicstyle=\footnotesize,
keywordstyle=\color{violet},
commentstyle=\color{OliveGreen},
numbers=left,
numbersep=5pt,
showstringspaces=false,
stringstyle=\color{magenta},
tabsize=4,
language=golang
}
\lstdefinelanguage{yaml}
{
morekeywords=[1]{mysql_db,mysql_pass,apt,name,password,host,login_password,mysql_db,mysql_user,with_items,jobs,build,docker,image,environment,MYSQL_ROOT_PASSWORD,MYSQL_DATABASE,steps,run,command,working_directory,version},
sensitive=true,
morestring=[b]",
% morecomment=[l]:,
}
\lstset{ % add your own preferences
frame=single,
basicstyle=\footnotesize,
keywordstyle=\color{blue},
commentstyle=\color{OliveGreen},
moredelim = [l][\functionColonHighlight]{:}{ljl}
numbers=left,
numbersep=5pt,
showstringspaces=false,
stringstyle=\color{magenta},
tabsize=4,
language=yaml
}
\newcommand{\functionColonHighlight}[1]{\bfseries\textcolor{blue}{:} \textcolor{magenta}{\mdseries #1}(}
%% [REC] Fancy character protrusion. Must be loaded after all fonts.
\usepackage[activate]{pdfcprot}
%% [REC] Nicer tables. Read the excellent documentation.
\usepackage{booktabs}