Skip to content

Instantly share code, notes, and snippets.

@dnmiller
Created October 16, 2012 06:31
Show Gist options
  • Save dnmiller/3897535 to your computer and use it in GitHub Desktop.
Save dnmiller/3897535 to your computer and use it in GitHub Desktop.
LaTeX Template for Math Notes
\documentclass{tufte-handout}
\usepackage{amsmath}
% Set up the images/graphics package
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\graphicspath{{figures/}}
\title{TITLE}
\author{AUTHOR}
% Make prettier tables.
\usepackage{booktabs}
% The units package provides nice, non-stacked fractions and better spacing
% for units.
\usepackage{units}
% The fancyvrb package lets us customize the formatting of verbatim
% environments. We use a slightly smaller font.
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
% Small sections of multiple columns
\usepackage{multicol}
%%% Custom Commands
%---------------------------------------------------------------------------
% Concise referencing
\newcommand{\eqnref}[1]{\eqref{#1}}
\newcommand{\secref}[1]{Section \ref{#1}}
\newcommand{\figref}[1]{Figure \ref{#1}}
\newcommand{\lemref}[1]{Lemma \ref{#1}}
\newcommand{\corref}[1]{Corollary \ref{#1}}
\newcommand{\thmref}[1]{Theorem \ref{#1}}
% Real numbers
\newcommand{\Real}[1]{\mathbb{R}^{#1}}
% Complex numbers
\newcommand{\Complex}[1]{\mathbb{C}^{#1}}
% Integers
\newcommand{\Integer}[1]{\mathbb{Z}^{#1}}
% Rank operator
\DeclareMathOperator{\rank}{\textnormal{rank}}
% Vec operator
\newcommand{\vecop}{\textnormal{vec}}
% Norm
\newcommand{\norm}[1]{\left|\left|#1\right|\right|}
% Trace
\newcommand{\trace}{\textnormal{tr}}
% Range
\newcommand{\range}{\textnormal{range}}
% Partial derivative
\newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}
% Complete derivative
\newcommand{\dd}[2]{\dfrac{d #1}{d #2}}
% Complete derivative, second order
\newcommand{\dds}[2]{\dfrac{d^2 #1}{d {#2}^2}}
% Limit to N / N
\newcommand{\limover}[1]{\lim_{#1 \rightarrow \infty} \dfrac{1}{#1}}
% Display style sum
\newcommand{\dsum}{\displaystyle\sum}
% arg min and arg max
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{arg~max}}}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{arg~min}}}
%---------------------------------------------------------------------------
\newtheorem{theorem}{Theorem}
\begin{document}
\maketitle
\begin{abstract}
\noindent Begin abstract
\end{abstract}
\section{Introduction}
%---------------------------------------------------------------------------
\section{Section 1}
%---------------------------------------------------------------------------
\subsection{Subsection 1}
%---------------------------------------------------------------------------
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment