forked from inatel-codetroopers/notebook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
notebook.tex
127 lines (111 loc) · 3.21 KB
/
notebook.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
\documentclass[10pt]{article}
\usepackage[left=0.4in,right=0.4in,top=0.7in,bottom=0.4in]{geometry}
\usepackage{hyperref}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{tocloft}
\usepackage{pdflscape}
\usepackage{multicol}
\usepackage{verbatim}
\renewcommand*{\ttdefault}{pcr}
\renewcommand\cftsecfont{\fontsize{8}{9}\bfseries}
\renewcommand\cftsecpagefont{\fontsize{8}{9}\mdseries}
\renewcommand\cftsubsecfont{\fontsize{8}{9}\mdseries}
\renewcommand\cftsubsecpagefont{\fontsize{6}{7}\mdseries}
\renewcommand\cftsecafterpnum{\vspace{-1ex}}
\renewcommand\cftsubsecafterpnum{\vspace{-1ex}}
\definecolor{mymauve}{rgb}{0.58, 0, 0.82}
\definecolor{myblack}{rgb}{0, 0, 0}
\definecolor{mywhite}{HTML}{FFFFFF}
\definecolor{myblue}{HTML}{0000FF}
\definecolor{mymagenta}{HTML}{FF00FF}
\definecolor{myviolet}{HTML}{6A5ACD}
\definecolor{mycyan}{HTML}{008A8C}
\definecolor{mygray}{HTML}{BEBEBE}
\definecolor{mygreen}{HTML}{2E8B57}
\definecolor{mybordeaux}{HTML}{A52A2A}
\definecolor{myred}{HTML}{FF0000}
\definecolor{myyellow}{HTML}{FFFF00}
\definecolor{mypurple}{HTML}{A020F0}
\definecolor{mynumber}{HTML}{FF00BF}
\lstset{literate=%
*{0}{{{\color{mynumber}0}}}1
{1}{{{\color{mynumber}1}}}1
{2}{{{\color{mynumber}2}}}1
{3}{{{\color{mynumber}3}}}1
{4}{{{\color{mynumber}4}}}1
{5}{{{\color{mynumber}5}}}1
{6}{{{\color{mynumber}6}}}1
{7}{{{\color{mynumber}7}}}1
{8}{{{\color{mynumber}8}}}1
{9}{{{\color{mynumber}9}}}1
}
\lstdefinestyle{shared}{
belowcaptionskip=1\baselineskip,
breaklines=true,
breakatwhitespace=true,
xleftmargin=\parindent,
showstringspaces=false,
tabsize=2,
basicstyle=\fontsize{8}{9}\ttfamily,
% extendedchars=true,
% literate={á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 {õ}{{\~o}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {ê}{{\^e}}1 {ç}{\c c}1,
}
\lstdefinestyle{cpp}{
style=shared,
language=C++,
keywordstyle=\bfseries\color{mybordeaux},
commentstyle=\itshape\color{myblue},
identifierstyle=\color{myblack},
stringstyle=\color{purple!40!black},
emph={long,int,char,double,float,unsigned,void,bool},
emphstyle={\bfseries\color{mygreen}},
}
\lstdefinestyle{java}{
style=shared,
language=Java,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{orange},
}
\lstdefinestyle{py}{
style=shared,
language=Python,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{orange},
}
\lstdefinestyle{txt}{
style=shared,
}
\lstset{escapechar=@}
\pagestyle{fancy}
\fancyhead[L]{Inatel}
\fancyhead[R]{\thepage}
\fancyfoot[C]{}
\fancypagestyle{plain}
{
\fancyhead[L]{Instituto Nacional de Telecomunica\c c\~oes}
\fancyhead[R]{\thepage}
\fancyfoot[C]{}
}
\title{\vspace{-4ex}\Large{Stormtroop3rs[C] ICPC Team Notebook 2019}}
\author{}
\date{}
\begin{document}
\begin{landscape}
\begin{multicols}{2}
\maketitle
\vspace{-13ex}
\tableofcontents
\pagestyle{fancy}
\input contents.tex
\end{multicols}
\end{landscape}
\end{document}