149 lines
4.0 KiB
TeX
149 lines
4.0 KiB
TeX
\documentclass[11pt]{article}
|
|
\usepackage{amsmath, amsfonts, amsthm}
|
|
\usepackage{amssymb}
|
|
\usepackage{fancyhdr,parskip}
|
|
\usepackage{fullpage}
|
|
\usepackage{mathrsfs}
|
|
\usepackage{mathtools}
|
|
|
|
\usepackage{float}
|
|
|
|
% code listing
|
|
\usepackage{listings}
|
|
\usepackage{xcolor}
|
|
\lstset{%
|
|
language=c++,
|
|
breaklines=true,
|
|
commentstyle=\color{green}, % comment style
|
|
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
|
|
keywordstyle=\color{blue}, % keyword style
|
|
stringstyle=\color{purple}, % string literal style
|
|
}
|
|
|
|
%%
|
|
%% Stuff above here is packages that will be used to compile your document.
|
|
%% If you've used unusual LaTeX features, you may have to install extra packages by adding them to this list.
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
\setlength{\headheight}{15.2pt}
|
|
\setlength{\headsep}{20pt}
|
|
\pagestyle{fancyplain}
|
|
|
|
%%
|
|
%% Stuff above here is layout and formatting. If you've never used LaTeX before, you probably don't need to change any of it.
|
|
%% Later, you can learn how it all works and adjust it to your liking, or write your own formatting code.
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%
|
|
% These commands create theorem-like environments.
|
|
\newtheorem{theorem}{Theorem}
|
|
\newtheorem{lemma}[theorem]{Lemma}
|
|
\newtheorem{corollary}[theorem]{Corollary}
|
|
\newtheorem{prop}[theorem]{Proposition}
|
|
\newtheorem{defn}[theorem]{Definition}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% This section contains some useful macros that will save you time typing.
|
|
%%
|
|
|
|
% Using \displaystyle (or \ds) in a block of math has a number of effects, but most notably, it makes your fractions come out bigger.
|
|
\newcommand{\ds}{\displaystyle}
|
|
|
|
% These lines are for displaying integrals; typing \dx will make the dx at the end of the integral look better.
|
|
\newcommand{\is}{\hspace{2pt}}
|
|
\newcommand{\dx}{\is dx}
|
|
|
|
% These commands produce the fancy Z (for the integers) and other letters conveniently.
|
|
\newcommand{\Z}{\mathbb{Z}}
|
|
\newcommand{\Q}{\mathbb{Q}}
|
|
\newcommand{\R}{\mathbb{R}}
|
|
\newcommand{\C}{\mathbb{C}}
|
|
\newcommand{\F}{\mathbb{F}}
|
|
\newcommand{\T}{\mathcal{T}}
|
|
\newcommand{\B}{\mathcal{B}}
|
|
|
|
% for fancy empty set char
|
|
\renewcommand{\emptyset}{\varnothing}
|
|
|
|
% customized commands for future assignements
|
|
\newcommand{\imply}{\Rightarrow}
|
|
\def\P{\mathscr{P}}
|
|
\def\L{\mathscr{L}}
|
|
\def\M{\mathscr{M}}
|
|
\DeclarePairedDelimiterX{\inp}[2]{\langle}{\rangle}{#1, #2}
|
|
|
|
% url embedding
|
|
\usepackage{hyperref}
|
|
|
|
\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue}
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% This is the header. It will appear on every page, and it's a good place to put your name, the assignment title, and stuff like that.
|
|
%% I usually leave the center header blank to avoid clutter.
|
|
%%
|
|
|
|
\fancyhead[L]{\textbf{CSE4303 Homework 2}}
|
|
\fancyhead[C]{509191}
|
|
\fancyhead[R]{Zheyuan Wu}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% Actual math starts here!
|
|
|
|
|
|
% Use an enumerated list to write up problems. First we begin a list.
|
|
|
|
\textit{Source code and detailed setup scripts are available at \url{https://git.trance-0.com/Trance-0/CSE4303H2}.}
|
|
|
|
\begin{enumerate}
|
|
\item[1.] Description of experimental setup
|
|
|
|
\newpage
|
|
\item[2.] Server code
|
|
|
|
\begin{enumerate}
|
|
\item Screenshot or well-formatted copy of code
|
|
\begin{lstlisting}[language=c++]
|
|
\end{lstlisting}
|
|
\item Quick overview of what the code does in your own words.
|
|
|
|
\end{enumerate}
|
|
\newpage
|
|
|
|
\item[3.] Client code
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Screenshot or well-formatted copy of code
|
|
|
|
\begin{lstlisting}[language=c++]
|
|
\end{lstlisting}
|
|
\item Quick overview of what the code does in your own words.
|
|
|
|
|
|
\end{enumerate}
|
|
\newpage
|
|
|
|
|
|
\item[4.] Extra credits
|
|
|
|
\newpage
|
|
|
|
\end{enumerate}
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%% Actual math ends here. Don't put any content below the \end{document} line.
|
|
%%
|
|
|
|
\end{document}
|