Add LaTeX generation and test data
[rsa.git] / homework.tex
1 \documentclass[letterpaper,12pt,oneside,pdftex]{article}
2
3 %% My Commands
4 \newcommand{\myname}{Ira W. Snyder}
5 \newcommand{\myemail}{iwsnyder@csupomona.edu}
6 \newcommand{\mytitle}{CS460 - Homework \#04}
7
8 \newcommand{\emaillink}[1]{\href{mailto:#1}{$<$#1$>$}}
9 \newcommand{\sourcecode}[1]{
10     \begin{scriptsize}
11         % Automatically line-numbered input
12         \listinginput{1}{#1}
13     \end{scriptsize}
14 }
15 \newcommand{\plaintext}[1]{
16     \begin{scriptsize}
17         % Verbatim input, preserving tabs to 8 spaces. To use
18         % 4-space tabs, switch the 8 to a 4.
19         \verbatimtabinput[4]{#1}
20     \end{scriptsize}
21 }
22 \newcommand{\fullbox}[1]{\fbox{\begin{minipage}{\textwidth}#1\end{minipage}}}
23 \newcommand{\mysourcecode}[1]{\section*{Source Code: \texttt{#1}}\hrulefill\plaintext{#1}}
24
25 %% Packages to include
26
27 %% Font to use
28 %\usepackage{pslatex}
29 %\usepackage{cmbright}
30 %\usepackage{concrete}
31 %\usepackage{palatino}
32 %\usepackage{ae}
33 %\usepackage{pxfonts}
34 %\usepackage{txfonts}
35
36 % Fix spacing with 12pt docs
37 \usepackage{exscale}
38
39 % Extra spacing options
40 %\usepackage{setspace}
41 %\singlespacing
42 %\onehalfspacing
43 %\doublespacing
44
45 % Remove space at the beginning of paragraphs
46 \usepackage{parskip}
47
48 % Set Margins
49 \usepackage[left=3cm,top=2cm,right=3cm,nohead,nofoot]{geometry}
50
51 % Support for nicer tables
52 %\usepackage{booktabs}
53
54 % Support for source code listings
55 \usepackage{moreverb}
56
57 % Support for removing all page numbers
58 \usepackage{nopageno}
59
60 % Support for URLs (unneeded with hyperref)
61 %\usepackage{url}
62 \usepackage{lscape}
63
64 % Support PDF HyperText References
65 \usepackage[pdftex,bookmarks,breaklinks=true,%
66             pdftitle={\mytitle},pdfauthor={\myname},%
67             colorlinks]{hyperref}
68
69
70 %% Generate Title Page
71 \title{\mytitle}
72 \author{\myname\\\emaillink{\myemail}}
73 \date{\today}
74
75 \begin{document}
76
77 % Switch font families
78 \sffamily
79
80 % Title Page
81 \maketitle
82 \clearpage
83
84 \mysourcecode{RSA.java}
85
86 \mysourcecode{Makefile}
87
88 \clearpage
89 \section*{Problem 2 Output}
90 \hrulefill
91 \plaintext{p2_output.txt}
92
93 \end{document}
94
95 % vim: set ts=4 sts=4 sw=4 expandtab nocindent noautoindent textwidth=80: