Worksheet Template
Author
Caleb McWhorter
Last Updated
5 лет назад
License
Creative Commons CC BY 4.0
Аннотация
A template for creating a course worksheet.
\documentclass[11pt,letterpaper]{article}
\usepackage[lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in]{geometry}
% -------------------
% Packages
% -------------------
\usepackage{
amsmath, % Math Environments
amssymb, % Extended Symbols
enumerate, % Enumerate Environments
graphicx, % Include Images
lastpage, % Reference Lastpage
multicol, % Use Multi-columns
multirow % Use Multi-rows
}
% -------------------
% Font
% -------------------
\usepackage[T1]{fontenc}
\usepackage{charter}
% -------------------
% Heading Commands
% -------------------
\newcommand{\class}{Math 999}
\newcommand{\term}{Semester Year}
\newcommand{\instructor}{Firstname Lastname}
\newcommand{\head}[2]{%
\thispagestyle{empty}
\vspace*{-0.5in}
\noindent\begin{tabular*}{\textwidth}{l @{\extracolsep{\fill}} r @{\extracolsep{6pt}} l}
\textbf{#1} & \textbf{Name:} & \makebox[8cm]{\hrulefill} \\
\textbf{#2} & & \\
\textbf{\class:\; \term} & & \\
\textbf{Instructor: \instructor}
\end{tabular*} \\
\rule[2ex]{\textwidth}{2pt} %
}
% -------------------
% Commands
% -------------------
\newcommand{\prob}{\noindent\textbf{Problem. }}
\newcounter{problem}
\newcommand{\problem}{
\stepcounter{problem}%
\noindent \textbf{Problem \theproblem. }%
}
\newcommand{\pointproblem}[1]{
\stepcounter{problem}%
\noindent \textbf{Problem \theproblem.} (#1 points)\,%
}
\newcommand{\pspace}{\par\vspace{\baselineskip}}
\newcommand{\ds}{\displaystyle}
% -------------------
% Header & Footer
% -------------------
\usepackage{fancyhdr}
\fancypagestyle{pages}{
%Headers
\fancyhead[L]{}
\fancyhead[C]{}
\fancyhead[R]{}
\renewcommand{\headrulewidth}{0pt}
%Footers
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{}
\renewcommand{\footrulewidth}{0.0pt}
}
\headheight=0pt
\footskip=14pt
\pagestyle{pages}
% -------------------
% Content
% -------------------
\begin{document}
\head{Worksheet \#}{Week \#: MM/DD/YYYY}
\textbf{Instructions:} \par \noindent Here are the instructions \pspace
% Question
\prob This is an unnumbered problem. \pspace
% Question 1
\problem This is a numbered problem. \vspace{1.5cm}
% Question 2
\pointproblem{5} This is the second numbered problem. \vfill
% Question 3
\problem This problem has several parts:
\begin{enumerate}[(a)]
\item The first part.
\item The second part.
\item The third part.
\end{enumerate} \vspace{6cm}
\end{document}