-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tex
76 lines (63 loc) · 1.85 KB
/
template.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
\documentclass[letter]{amsart}
\usepackage[pdftex]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{multicol}
\usepackage{courier}
\usepackage{fancyhdr}
\lstset{language=C++}
\lstset{columns=fullflexible}
\lstset{basicstyle=\scriptsize\ttfamily}
\lstset{showspaces=false}
\geometry{landscape}
\setlength{\topmargin}{-0.25in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\columnsep}{1in}
\setlength{\columnseprule}{0.2pt}
\textwidth 9.5in
\pagestyle{fancy}
\lhead{ {{University}}: {{TeamName}} }
\chead{}
\rhead{\thepage}
\lfoot{}
\cfoot{}
\rfoot{}
\newcommand{\includecpp}[3]{
\begin{multicols}{2}
[\subsection{{"{#"}}1}\ ]
\lstinputlisting[language=c++]{{"{#"}}2/#3}
\end{multicols}
}
\newcommand{\includejava}[3]{
\begin{multicols}{2}
[\subsection{{"{#"}}1}\ ]
\lstinputlisting[language=Java]{{"{#"}}2/#3}
\end{multicols}
}
\newcommand{\stirlingfirst}[2]{\genfrac{[}{]}{0pt}{}{{"{#"}}1}{{"{#"}}2}}
\newcommand{\stirlingsecond}[2]{\genfrac{\{}{\}}{0pt}{}{{"{#"}}1}{{"{#"}}2}}
\newcommand{\norm}[1]{\lVert#1\rVert}
\begin{document}
\thispagestyle{fancy}
\begin{center}
\Huge\textsc{Team Reference \\ {{ University }} : {{ TeamName }} }
\end{center}
\begin{center}
\textbf{ {{ Event }} }\\
\textbf{Team Members:} {{ TeamMembers.0 }}, {{ TeamMembers.1 }}, {{ TeamMembers.2 }}\\
\textbf{Developed by:} {{ Coach }}
\end{center}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
{% for section in Sections %}
\enlargethispage*{\baselineskip}
\pagebreak
\section{ {{ section.Name }} }
{% for algorithm in section.Algorithms %} \include{{ algorithm.Language }} {{"{"}}{{ algorithm.Name }}}{./{{section.NameSnake}}}{{"{"}}{{algorithm.NameSnake}}.{{ algorithm.Language}}}
{% endfor %}
{% endfor %}
\end{document}