Homework Template
Autor
Matt Cambria
Last Updated
hace 10 años
License
Creative Commons CC BY 4.0
Resumen
This is the homework template I use for math and physics classes.
\documentclass[12pt,oneside]{article}
% This package simply sets the margins to be 1 inch.
\usepackage[margin=1in]{geometry}
% This removes page numbers.
\pagenumbering{gobble}
% These packages include nice commands from AMS-LaTeX
\usepackage{amssymb,amsmath,amsthm}
% Make the space between lines slightly more
% generous than normal single spacing, but compensate
% so that the spacing between rows of matrices still
% looks normal. Note that 1.1=1/.9090909...
\renewcommand{\baselinestretch}{1.1}
\renewcommand{\arraystretch}{.91}
% Define an environment for exercises.
\newenvironment{exercise}[1]{\vspace{.5cm}\noindent\textbf{#1 \hspace{.05em}}}{}
% Allow for underlining.
\usepackage[normalem]{ulem}
% define shortcut commands for commonly used symbols
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\calP}{\mathcal{P}}
\DeclareMathOperator{\vsspan}{span}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\setlength{\belowdisplayskip}{5pt} \setlength{\belowdisplayshortskip}{0pt}
\setlength{\abovedisplayskip}{-10pt} \setlength{\abovedisplayshortskip}{0pt}
\begin{flushright}
Matt Cambria\\
3/20/2015\\
\end{flushright}
\begin{center}
Homework Template\\
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{exercise}{3.44}
\end{exercise}
\begin{flushleft}
\end{flushleft}
%---------------------------------
% Don't change anything below here
%---------------------------------
\end{document}