Last active
December 21, 2015 20:28
-
-
Save chaoxu/6361037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% I copy pasted some codes from here: http://www.latextemplates.com/template/structured-general-purpose-assignment | |
\documentclass{article} | |
\usepackage{fancyhdr} % Required for custom headers | |
\usepackage{lastpage} % Required to determine the last page for the footer | |
\usepackage{extramarks} % Required for headers and footers | |
% Margins | |
\topmargin=-0.45in | |
\evensidemargin=0in | |
\oddsidemargin=0in | |
\textwidth=6.5in | |
\textheight=9.0in | |
\headsep=0.25in | |
\linespread{1.1} % Line spacing | |
\pagestyle{fancy} | |
\lhead{\hmwkAuthorName} % Top left header | |
\chead{\hmwkClass\ (\hmwkClassInstructor): \hmwkTitle} % Top center header | |
\rhead{\rightmark} % Top right header | |
\lfoot{\lastxmark} % Bottom left footer | |
\cfoot{} % Bottom center footer | |
\rfoot{Page\ \thepage\ of\ \pageref{LastPage}} % Bottom right footer | |
\renewcommand\headrulewidth{0.4pt} % Size of the header rule | |
\renewcommand\footrulewidth{0.4pt} % Size of the footer rule | |
\setlength\parindent{0pt} % Removes all indentation from paragraphs | |
\newenvironment{problem}[1]{\section{Problem #1}}{\newpage} | |
%---------------------------------------------------------------------------------------- | |
% NAME AND CLASS SECTION, EDIT THIS TO YOUR NAME. | |
%---------------------------------------------------------------------------------------- | |
\newcommand{\hmwkTitle}{HW 0} % Assignment title | |
\newcommand{\hmwkDueDate}{Monday,\ September\ 2,\ 2013} % Due date | |
\newcommand{\hmwkClass}{CS 573} % Course/class | |
\newcommand{\hmwkClassInstructor}{Sariel Har-Peled} % Teacher/lecturer | |
\newcommand{\hmwkAuthorName}{Chao Xu (chaoxu3)} % Your name | |
\renewcommand{\sectionmark}[1]{\markright{#1}} | |
\begin{document} | |
%---------------------------------------------------------------------------------------- | |
% START HOMEWORK HERE | |
%---------------------------------------------------------------------------------------- | |
\begin{problem}{1} | |
solution | |
\end{problem} | |
\begin{problem}{2} | |
more solution | |
\end{problem} | |
\begin{problem}{3} | |
stuff | |
\end{problem} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment