-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnotebook.tex
More file actions
115 lines (99 loc) · 2.68 KB
/
notebook.tex
File metadata and controls
115 lines (99 loc) · 2.68 KB
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
\documentclass[8pt]{article}
\usepackage[a4paper,landscape,left=0.3cm,right=0.3cm,top=1cm,bottom=0.3cm,headheight=12pt,headsep=4pt]{geometry}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{extramarks}
\usepackage{ifthen}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{tocloft}
\usepackage{multicol}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{graphicx}
\renewcommand*{\ttdefault}{pcr}
\renewcommand\cftsecfont{\fontsize{10}{9}\bfseries}
\renewcommand\cftsecpagefont{\fontsize{10}{9}\mdseries}
\renewcommand\cftsubsecfont{\fontsize{10}{6}\mdseries}
\renewcommand\cftsubsecpagefont{\fontsize{10}{6}\mdseries}
\renewcommand\cftsecafterpnum{\vspace{-.5ex}}
\renewcommand\cftsubsecafterpnum{\vspace{0ex}}
\newcommand{\Section}[1]{
\section*{#1}
\addcontentsline{toc}{subsection}{#1}
\vspace{-3mm}
}
\newcommand{\Topic}[1]{\textbf{#1}}
\lstdefinestyle{shared}{
belowcaptionskip=1\baselineskip,
breaklines=true,
xleftmargin=0pt,
showstringspaces=false,
basicstyle=\fontsize{8}{5}\ttfamily,
aboveskip=0pt,
belowskip=0pt,
}
\lstdefinestyle{cpp}{
style=shared,
language=C++,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{blue!90!black},
identifierstyle=\color{black},
stringstyle=\color{red!90!black},
}
\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{java}{
style=shared,
language=Java,
keywordstyle=\bfseries\color{green!40!black},
commentstyle=\itshape\color{purple!40!black},
identifierstyle=\color{blue},
stringstyle=\color{red},
}
\lstdefinestyle{txt}{
style=shared,
}
\lstset{escapechar=@}
\title{\vspace{-4ex}\Large{Que bendición ICPC Team Notebook}}
\author{}
\date{}
% Configure headers
\fancyhf{}
\fancyhead[L]{Que bendición - EAFIT University}
\fancyhead[C]{%
\ifthenelse{\equal{\firstleftmark}{\lastleftmark}}%
{\leftmark}%
{\firstleftmark\ \& \lastleftmark}%
}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
% Customize section marks to include section number
\renewcommand{\sectionmark}[1]{\markboth{\thesection. #1}{}}
\begin{document}
\pagestyle{fancy}
\setlength{\columnseprule}{0.4pt}
\setlength{\columnsep}{10pt}
\begin{multicols}{3}
\maketitle
\vspace{-13ex}
\tableofcontents
\end{multicols}
\setlength{\columnsep}{10pt}
\begin{multicols}{3}
\input{contents.tex}
\end{multicols}
\setlength{\columnseprule}{0pt}
\setlength{\columnsep}{10pt}
\begin{multicols}{2}
{\fontsize{8}{6}\selectfont
\input Theory.tex
}
\end{multicols}
\pagebreak
\end{document}