-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate_notebook.tex
More file actions
73 lines (58 loc) · 2.1 KB
/
Copy pathtemplate_notebook.tex
File metadata and controls
73 lines (58 loc) · 2.1 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
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % Configuração pacote babel
\usepackage{multicol} % Usage of multicolumns
\usepackage{listings} % Usage of code languages
\usepackage{xcolor} % Define colors
\usepackage{graphicx} % Usage of graphics eg.: Images
\UseRawInputEncoding
\usepackage[top=2cm, bottom=1.5cm, left=1cm, right=1cm]{geometry}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\definecolor{codePink}{rgb}{234, 0, 79}
\newcommand\emoji[1]{ % New command "emoji"
\includegraphics[scale=0.1]{generate_latex/assets/emoji/#1}
}
\newcommand\includes[2]{
\subsection{#1}
\lstinputlisting{#2}
}
\lstset{ % C++ code configuration
language=c++,
tabsize=4,
commentstyle=\color{codegreen},
keywordstyle=\color{codePink},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
}
\usepackage{fancyhdr}
\pagestyle{fancy}
% CONFIG: Header informations
\lhead{\includegraphics[scale=0.15]{generate_latex/assets/unballoon.png} University Name}
\rhead{As Meninas Superpoderosas}
% CONFIG: Title and team name
\title{Competitive Programming Notebook} % \emoji{balloon} }
\author{As Meninas Superpoderosas}
\date{}
\begin{document}
% \begin{figure}[t]
% \includegraphics[scale=1]{assets/UnB.png}
% \centering
% \end{figure}
\maketitle
\thispagestyle{fancy}
\begin{multicols}{2}
\tableofcontents
\newpage