Add PDF target to Makefile
[aes.git] / homework.tex
diff --git a/homework.tex b/homework.tex
new file mode 100644 (file)
index 0000000..71680be
--- /dev/null
@@ -0,0 +1,108 @@
+\documentclass[letterpaper,12pt,oneside,pdftex]{article}
+
+%% My Commands
+\newcommand{\myname}{Ira W. Snyder}
+\newcommand{\myemail}{iwsnyder@csupomona.edu}
+\newcommand{\mytitle}{CS460 - Homework \#03}
+
+\newcommand{\emaillink}[1]{\href{mailto:#1}{$<$#1$>$}}
+\newcommand{\sourcecode}[1]{
+    \begin{scriptsize}
+        % Automatically line-numbered input
+        \listinginput{1}{#1}
+    \end{scriptsize}
+}
+\newcommand{\plaintext}[1]{
+    \begin{scriptsize}
+        % Verbatim input, preserving tabs to 8 spaces. To use
+        % 4-space tabs, switch the 8 to a 4.
+        \verbatimtabinput[4]{#1}
+    \end{scriptsize}
+}
+\newcommand{\fullbox}[1]{\fbox{\begin{minipage}{\textwidth}#1\end{minipage}}}
+\newcommand{\mysourcecode}[1]{\section*{Source Code: \texttt{#1}}\hrulefill\plaintext{#1}\clearpage}
+
+%% Packages to include
+
+%% Font to use
+%\usepackage{pslatex}
+%\usepackage{cmbright}
+%\usepackage{concrete}
+%\usepackage{palatino}
+%\usepackage{ae}
+%\usepackage{pxfonts}
+%\usepackage{txfonts}
+
+% Fix spacing with 12pt docs
+\usepackage{exscale}
+
+% Extra spacing options
+%\usepackage{setspace}
+%\singlespacing
+%\onehalfspacing
+%\doublespacing
+
+% Remove space at the beginning of paragraphs
+\usepackage{parskip}
+
+% Set Margins
+\usepackage[left=3cm,top=2cm,right=3cm,nohead,nofoot]{geometry}
+
+% Support for nicer tables
+%\usepackage{booktabs}
+
+% Support for source code listings
+\usepackage{moreverb}
+
+% Support for removing all page numbers
+\usepackage{nopageno}
+
+% Support for URLs (unneeded with hyperref)
+%\usepackage{url}
+\usepackage{lscape}
+
+% Support PDF HyperText References
+\usepackage[pdftex,bookmarks,breaklinks=true,%
+            pdftitle={\mytitle},pdfauthor={\myname},%
+            colorlinks]{hyperref}
+
+
+%% Generate Title Page
+\title{\mytitle}
+\author{\myname\\\emaillink{\myemail}}
+\date{\today}
+
+\begin{document}
+
+% Switch font families
+\sffamily
+
+% Title Page
+\maketitle
+\clearpage
+
+\mysourcecode{aes.hpp}
+
+\mysourcecode{aes.cpp}
+
+\mysourcecode{problem2.cpp}
+
+\mysourcecode{problem3.cpp}
+
+\mysourcecode{Makefile}
+
+\section*{Problem 2 Output}
+\hrulefill
+\plaintext{p2_output.txt}
+\clearpage
+
+\begin{landscape}
+\section*{Problem 3 Output}
+\hrulefill
+\plaintext{p3_output.txt}
+\clearpage
+\end{landscape}
+
+\end{document}
+
+% vim: set ts=4 sts=4 sw=4 expandtab nocindent noautoindent textwidth=80: