-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
81 lines (64 loc) · 1.78 KB
/
main.tex
File metadata and controls
81 lines (64 loc) · 1.78 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
\documentclass[a4paper, landscape, 12pt]{article}
\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{titlesec}
\usepackage{subfiles}
\usepackage{geometry}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{amsmath}
\newcommand{\teamname}{rwx}
\newcommand{\univname}{Alexandria University}
\newcommand{\season}{2025/2026}
\title{Competitive Programming Library}
\author{\Large{\teamname} \\ Faculty of Science, \univname \\ \season}
\date{ }
% Custom commands -----------
% include a code sample from a file
\newcommand{\includeCode}[4]{%
\begin{center}
\lstinputlisting[language=#1, title=\textbf{\textit{#2}}, style=#3]{#4}
\rule{\linewidth}{0.5mm} % Add another horizontal line
\end{center}%
}
% include a new sub file
\newcommand{\includeSubFile}[1]{\subfile{#1}}
% End of Custom commands ----
\setlength{\columnsep}{0.1in}
\setlength{\columnseprule}{1px}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyhead[L]{\textit{\teamname \space (\univname)}}
\fancyhead[R]{\thepage}
% Importing custom styles from `Styles` directory
\input{Styles/BlackWhite.sty}
\input{Styles/LightHighlight.sty}
\input{Styles/Colors.sty}
% Set global margins
\geometry{
left=1cm,
right=1cm,
top=1.7cm,
bottom=1cm
}
\begin{document}
\twocolumn
\maketitle
\tableofcontents
\newpage
\includeSubFile{Templates/temp}
\includeSubFile{DynamicProgramming/dp}
\includeSubFile{BitManipulation/bm}
\includeSubFile{Algorithms/algo}
\includeSubFile{DataStructures/ds}
\includeSubFile{Counting/cnt}
\includeSubFile{GraphTheory/gt}
\includeSubFile{Techniques/techniques}
\includeSubFile{NumberTheory/nt}
\includeSubFile{Geometry/geo}
\includeSubFile{Misc/misc}
\end{document}