|
1 | 1 | \documentclass[a4paper, twocolumn]{article}
|
2 |
| -\usepackage[landscape, a4paper, left=1cm, right=1cm, top=1cm, bottom=2cm]{geometry} |
| 2 | +\usepackage[landscape, a4paper, left=1cm, right=1cm, top=1cm, bottom=4cm]{geometry} |
3 | 3 | \usepackage[parfill]{parskip}
|
4 | 4 | \usepackage{fancyhdr}
|
5 | 5 | \usepackage{tikz}
|
|
15 | 15 |
|
16 | 16 | % Team Name
|
17 | 17 | \newcommand{\teamname}{Crystal Math}
|
18 |
| - |
| 18 | +\newcommand{\teammembers}{Gabriëlle Zwaneveld, Sven Holtrop and Lucas Crijns} |
19 | 19 | % Useful commands
|
20 | 20 | \renewcommand{\vec}{\overrightarrow}
|
21 | 21 | \newcommand{\pageend}{\vfill\newpage}
|
|
24 | 24 | \newcommand{\point}[4]{\draw[fill] (#1,#2) circle (1pt) node[#4] {#3}}
|
25 | 25 | \newcommand{\note}{\textbf{Note: }}
|
26 | 26 |
|
| 27 | +% Fix Header |
| 28 | +\setlength{\topmargin}{0cm} |
| 29 | +\setlength{\headsep}{0cm} |
| 30 | +\setlength{\columnsep}{1cm} |
27 | 31 | % Syntax Highlighting
|
28 | 32 | \lstset{language=python}
|
29 | 33 | \input{highlighting.tex}
|
|
38 | 42 | \fill [SpecialBlue] (0cm, 0cm) rectangle (\paperwidth, 1.5cm);
|
39 | 43 | \end{tikzpicture}
|
40 | 44 | };
|
| 45 | + \node[yshift=-2cm] at (current page.north west) { |
| 46 | + \begin{tikzpicture}[remember picture, overlay] |
| 47 | + \fill [SpecialBlue] (0cm, 0cm) rectangle (\paperwidth, 2cm); |
| 48 | + \node at (\paperwidth - 2.5cm, 0.7cm) {\includegraphics[height=3cm]{logo.eps}}; |
| 49 | + \end{tikzpicture} |
| 50 | + }; |
41 | 51 | \end{tikzpicture}
|
42 | 52 | }
|
43 | 53 | \fancyhead{\mkfoot}
|
44 | 54 | \fancyfoot{}
|
45 | 55 | \fancyfoot[L]{\color{white} \large \textbf{\teamname} Cheatsheet}
|
46 |
| -\fancyfoot[R]{\color{white} Gabriëlle Zwaneveld, Sven Holtrop en Lucas Crijns \hspace{1.3em} \large \textbf\thepage} |
| 56 | +\fancyfoot[R]{\color{white} \teammembers \hspace{1.3em} \large \textbf\thepage} |
47 | 57 | \renewcommand{\headrulewidth}{0cm}
|
48 | 58 | \renewcommand{\headrulewidth}{0cm}
|
49 | 59 |
|
|
53 | 63 |
|
54 | 64 | \begin{document}
|
55 | 65 |
|
| 66 | +% Title page |
| 67 | +\begin{titlepage} |
| 68 | + \centering |
| 69 | + ~\\ |
| 70 | + \vspace{20px} |
| 71 | + \resizebox{700px}{!}{\Huge Team Contest Reference} |
| 72 | + \\ \vspace{40px} |
| 73 | + \resizebox{400px}{!}{\Huge \textcolor{SpecialBlue}{\textbf{\teamname}}} |
| 74 | + \\ \vspace{20px} |
| 75 | + \resizebox{500px}{!}{\LARGE \teammembers} |
| 76 | + \includegraphics[width=300px]{logo_rgb.eps} |
| 77 | +\end{titlepage} |
| 78 | + |
56 | 79 | \section{Modules}
|
57 | 80 | \subsection{Python}
|
58 | 81 | \begin{itemize}
|
59 |
| - \item Priority queue \arrow \ms{queue.PriorityQueue} |
| 82 | + \item Priority queue \arrow \ms{heapq} |
60 | 83 | \item Python base switching \arrow \ms{int(x, base=b)}
|
61 | 84 | \item Deque \arrow \ms{collections.deque}
|
62 | 85 | \end{itemize}
|
@@ -113,7 +136,6 @@ \subsection*{More Formulas}
|
113 | 136 | 16796\}
|
114 | 137 | \end{align*}
|
115 | 138 | \vspace{-1em}
|
116 |
| -\newpage |
117 | 139 | \subsection*{Fibonacci Numbers}\vspace*{-1em}
|
118 | 140 | \begin{align*}
|
119 | 141 | 1,1,2,3,5,8,13,21,34,55,89, 144, 233, 377, 610, 987, 1597, 2584
|
@@ -242,6 +264,9 @@ \subsection{Lagrange polynomials}
|
242 | 264 | l_j(x) &= \prod_{0 \leq m \leq k, m \neq j} \frac{x-x_m}{x_j-x_m} \\
|
243 | 265 | \end{align*}
|
244 | 266 |
|
| 267 | +\subsection*{Graphs} |
| 268 | +For a connected planar graph, the number of vertices $V$, edges $E$ and planar faces $F$ obeys: $V-E+f=2$ (this includes the outer face). |
| 269 | + |
245 | 270 | \section{Algorithms}
|
246 | 271 |
|
247 | 272 | %PLACEHOLDER%
|
|
0 commit comments