-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.tex
More file actions
77 lines (60 loc) · 1.78 KB
/
Copy pathtemplate.tex
File metadata and controls
77 lines (60 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
\documentclass[12pt]{article}
\usepackage{algo,fullpage,url,amssymb,epsfig,color,xspace,tikz,amsmath}
\usepackage{graphicx}
\usepackage{float}
\usepackage[pdftitle={CS 486 Assignment 1},
pdfsubject={University of Waterloo, CS 486, Winter 2024},
pdfauthor={Arne Storjohann}]{hyperref}
\usepackage{algpseudocode,enumitem,calc,multicol}
\usepackage{listings}
\lstset{%
language=C++,
keepspaces=true,
basicstyle=\small\ttfamily,
commentstyle=\footnotesize\itshape{},
identifierstyle=\slshape{},
keywordstyle=\bfseries,
numbers=left,
numberstyle=\tiny{},
numberblanklines=false,
inputencoding={utf8},
columns=fullflexible,
basewidth=.5em,
fontadjust=true,
tabsize=3,
emptylines=*1,
breaklines,
breakindent=30pt,
prebreak=\smash{\raisebox{-.5ex}{\hbox{\tiny$\hookleftarrow$}}},
escapeinside={//*}{\^^M} % Allow to set labels and the like in comments starting with //*
}
\renewcommand{\thesubsection}{Problem \arabic{subsection}}
\begin{document}
\begin{center}
{\Large\bf University of Waterloo}\\ \vspace{3mm}
{\Large\bf CS 486, Winter 2024}\\ \vspace{2mm}
{\Large\bf Assignment 1}\\ \vspace{3mm}
\end{center}
\definecolor{care}{rgb}{0,0,0}
\def\question#1{\item[\bf #1.]}
\def\part#1{\item[\bf #1)]}
\newcommand{\pc}[1]{\mbox{\textbf{#1}}} % pseudocode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{}
\begin{enumerate}
\part{a}
\part{b}
\part{c}
\end{enumerate}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\subsection{}
\begin{enumerate}
\part{a}
\part{b}
\part{c}
\end{enumerate}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}