%% Cover sheet for homework assignments for the course CSC236H1F, %% Fall 2009, on the St. George Campus at the University of Toronto. %% %% Copyright (c) 2009 Francois Pitt %% last updated at 20:15 (EDT) on Sun 20 Sep 2009 %% %% This work may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license %% or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2003/12/01 or later. %% %% This work has the LPPL maintenance status "author-maintained". %% %% The Current Maintainer of this work is %% Francois Pitt . %% %% This work consists of the file Acover.tex. %% \documentclass[11pt]{article} \usepackage[margin=.75in]{geometry} \pagestyle{empty} % no header or footer % Formats, symbols, abbreviations. \let\altemph\textsl \let\strong\textbf \newcommand*{\etc}{\emph{etc}} \newcommand*{\eg}{\emph{e.g.}} \newcommand*{\ie}{\emph{i.e.}} % Vertical space to leave between input fields. \newlength{\fieldskipamount} \setlength{\fieldskipamount}{4ex plus 2ex minus 2ex} \newcommand*{\fieldskip}[1][1]{\vspace{#1\fieldskipamount}} % Underline rule. \newcommand*{\urule}[2][.5pt]{\rule[-.4ex]{#2}{#1}} % Underlined text box (with optional positioning argument). \newcommand*{\ubox}[3][c]{\rlap{\urule{#2}}\makebox[#2][#1]{#3}} % Underlined text box with caption (and optional caption positioning). \newcommand*{\capbox}[5][c]{\ifx\empty#2\empty \else\rlap{\raisebox{-\baselineskip}{\makebox[#3][#1]{#2}}}\fi \ubox[#4]{#3}{#5}} % Vertical bar (for student number half-boxes). \newcommand*{\vb}{\urule[1ex]{.5pt}} % Horizontal bar (for student number half-boxes). \newcommand*{\hb}[1][]{\ubox{1.25em}{#1\vphantom0}} % Half-boxes for student number (given as 9 individual digits). \newcommand*{\ninedigitboxes}[9]{\vb\hb[#1]\vb\hb[#2]\vb\hb[#3]\vb \hb[#4]\vb\hb[#5]\vb\hb[#6]\vb\hb[#7]\vb\hb[#8]\vb\hb[#9]\vb} % Half-boxes for student number (given as single argument). \newcommand*{\numberboxes}[1][]{\ifx\empty#1\empty \ninedigitboxes{}{}{}{}{}{}{}{}{}\else\ninedigitboxes#1\fi} % Width of student number half-boxes. \newlength{\numboxwidth}\settowidth{\numboxwidth}{\numberboxes} % Used in the macros below to adjust for optional number. \newlength{\linelength} % Field to enter homework number. \newcommand*{\homeworknumber}[1]{\ubox{.25in}{#1}} % Field to enter first and last names (with optional number). \newcommand*{\firstandlastnames}[3][] {\ifx\empty#1\empty\setlength{\linelength}{247.5pt}\else \setlength{\linelength}{237.1pt}{\bfseries #1.}\quad\fi \capbox{\bfseries First (Given) Name(s)}{\linelength}l{ #2 }\quad \capbox{\bfseries Last (Family) Name(s)}{\linelength}l{ #3 }} % Field to enter student number, email, and grace days % (with optional number). \newcommand*{\studentnumberemailgracedays}[4][] {\ifx\empty#1\empty\setlength{\linelength}{301.6pt}\else \setlength{\linelength}{280.9pt}{\bfseries #1.}\quad\fi \capbox{\bfseries Student Number}{\numboxwidth}c{\numberboxes[#2]}\quad \capbox{\bfseries CDF/UTOR Email}{\linelength}l{ #3 }\quad \capbox{\bfseries\scriptsize Grace Days}{.75in}c{ #4 }} \begin{document} \begin{large} \noindent CSC\,236\,H1F\hfill \strong{Homework Assignment \#\homeworknumber {}%% fill in homework number }\hfill Fall 2009 \end{large} \fieldskip[1.25] \noindent \firstandlastnames[1]% FIRST group member {}%% fill in first (given) name(s) {}%% fill in last (family) name(s) \fieldskip \noindent \studentnumberemailgracedays% FIRST group member {}%% fill in 9-digit student number {}%% fill in email address {}%% fill in number of grace days used \fieldskip \noindent \firstandlastnames[2]% SECOND group member {}%% fill in first (given) name(s) {}%% fill in last (family) name(s) \fieldskip \noindent \studentnumberemailgracedays% SECOND group member {}%% fill in 9-digit student number {}%% fill in email address {}%% fill in number of grace days used \fieldskip \noindent \firstandlastnames[3]% THIRD group member {}%% fill in first (given) name(s) {}%% fill in last (family) name(s) \fieldskip \noindent \studentnumberemailgracedays% THIRD group member {}%% fill in 9-digit student number {}%% fill in email address {}%% fill in number of grace days used \fieldskip \noindent \firstandlastnames[4]% FOURTH group member {}%% fill in first (given) name(s) {}%% fill in last (family) name(s) \fieldskip \noindent \studentnumberemailgracedays% FOURTH group member {}%% fill in 9-digit student number {}%% fill in email address {}%% fill in number of grace days used \fieldskip[.5] \begin{slshape} \noindent Please fill out this cover page and submit it along with your homework. Please read and understand the policy on Academic Offences given on the Course Information Sheet, then to protect yourself, list below \emph{every} source of information you used to complete this homework (other than your own lecture and tutorial notes, the course webpage, and the required textbook), \eg, the \emph{name} of every student with whom you had discussions (other than group members listed above), the \emph{title} of every additional textbook you consulted, the \emph{source} of every additional web document you used, \etc. \end{slshape} %% List sources of information here. \end{document}