Last active
April 17, 2017 02:22
-
-
Save guoguo12/e901c61d3213864be96114e094759114 to your computer and use it in GitHub Desktop.
My standard LaTeX template for assignments.
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
\documentclass{article} | |
% imports and settings | |
\usepackage{fullpage} % wider margins | |
\usepackage{amsmath} % symbols | |
\usepackage{amsfonts} % more symbols | |
\usepackage{verbatim} % comment environment | |
\usepackage{float} % stop tables from moving | |
\usepackage{hyperref} % URLs, e.g., \href{url}{text} | |
\usepackage{graphicx} % graphics (see \img below) | |
\setlength\parindent{0pt} % no indentation | |
\setlength{\parskip}{1.5mm} % more space between paragraphs | |
\pagenumbering{gobble} % no page numbering | |
\renewcommand{\familydefault}{ppl} % Palatino font | |
% math operators | |
\DeclareMathOperator*{\argmin}{arg\,min} | |
\DeclareMathOperator*{\argmax}{arg\,max} | |
\DeclareMathOperator*{\Var}{Var} | |
\DeclareMathOperator*{\tr}{tr} | |
% symbol aliases | |
\newcommand*{\C}{\mathbb{C}} | |
\newcommand*{\N}{\mathbb{N}} | |
\newcommand*{\Q}{\mathbb{Q}} | |
\newcommand*{\R}{\mathbb{R}} | |
\newcommand*{\Z}{\mathbb{Z}} | |
\renewcommand*{\a}{\alpha} | |
\renewcommand*{\b}{\beta} | |
\renewcommand*{\c}{\cdot} | |
\renewcommand*{\d}{\delta} | |
\newcommand*{\e}{\epsilon} | |
\newcommand*{\g}{\gamma} | |
\newcommand*{\s}{\sigma} | |
\newcommand*{\x}{\times} | |
% other aliases | |
\newcommand*{\inv}{^{-1}} % inverse | |
\newcommand*{\oo}[1]{\frac{1}{#1}} % "one-over" | |
\newcommand*{\lv}{\lVert} % vertical left double-bar | |
\newcommand*{\rv}{\rVert} % vertical right double-bar | |
\newcommand*{\ol}{\overline} % overhead bar | |
% image macro, e.g., \img{test.png}{0.5} | |
\newcommand{\img}[2] { | |
\begin{center} | |
\includegraphics[width=#2\textwidth]{#1} | |
\end{center}} | |
% section headers | |
\begin{comment} | |
\newpage | |
\section{} | |
\subsection*{Part a} | |
\subsection*{Part b} | |
\subsection*{Part c} | |
\subsection*{Part d} | |
\subsection*{Part e} | |
\subsection*{Part f} | |
\subsection*{Part g} | |
\subsection*{Part h} | |
\subsection*{Part i} | |
\subsection*{Part j} | |
\end{comment} | |
\begin{document} % edit below this line | |
\title{Assignment Name} | |
\author{Allen Guo} | |
\maketitle % do not delete | |
\end{document} % do not delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment