Skip to content

Instantly share code, notes, and snippets.

@TheDataLeek
Created February 9, 2016 19:08
Show Gist options
  • Select an option

  • Save TheDataLeek/60f1417c028d5f4d4e9b to your computer and use it in GitHub Desktop.

Select an option

Save TheDataLeek/60f1417c028d5f4d4e9b to your computer and use it in GitHub Desktop.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Imports
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsfonts} % Math fonts
\usepackage{amsmath} % Math formatting
\usepackage{amssymb} % Math formatting
\usepackage{amsthm} % Math Theorems
%\usepackage{arydshln} % Dashed hlines
\usepackage{attachfile} % AttachFiles
\usepackage{cancel} % Cancelled math
\usepackage{caption} % Figure captioning
\usepackage{color} % Nice Colors
\usepackage[at]{easylist} % Easy lists
\usepackage{fancyhdr} % Fancy Header
\usepackage[T1]{fontenc} % Specific font-encoding
\usepackage[margin=1.5in, marginparwidth=2cm, marginparsep=2cm]{geometry} % Margins
\usepackage{graphicx} % Include images
\usepackage{hyperref} % Referencing
\usepackage[none]{hyphenat} % Don't allow hyphenation
\usepackage{lipsum} % Lorem Ipsum Dummy Text
\usepackage{listings} % Code display
\usepackage{marginnote} % Notes in the margin
\usepackage{microtype} % Niceness
\usepackage{lib/minted} % Code display
\usepackage{./lib/mlptikz} % Tikz mlp
\usepackage{multirow} % Multirow tables
\usepackage[framemethod=tikz]{mdframed} % background color
\usepackage{pdfpages} % Include pdfs
\usepackage{pgfplots} % Create Pictures
\usepackage{rotating} % Figure rotation
\usepackage{setspace} % Allow double spacing
%\usepackage{subcaption} % Figure captioning
\usepackage{subfig} % Figure captioning
%\usepackage{tocloft} % List of Equations
\usepackage{longtable} % Huge Tables
\usepackage{./lib/multicol} % Dynamic Mutlicolumns
\usepackage{supertabular}
\usepackage{float}
\setcounter{LTchunksize}{50}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Package Setup
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hypersetup{% % Setup linking
colorlinks=true,
linkcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black,
}
\RequirePackage[l2tabu, orthodox]{nag} % Nag about bad syntax
\renewcommand*\thesection{\arabic{section}} % Reset numbering
\renewcommand{\theFancyVerbLine}{{\arabic{FancyVerbLine}}} % Needed for code display
\renewcommand{\footrulewidth}{0.4pt} % Footer hline
\setcounter{secnumdepth}{3} % Include subsubsections in numbering
\setcounter{tocdepth}{3} % Include subsubsections in toc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Custom commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\nvec}[1]{\left\langle #1 \right\rangle} % Easy to use vector
\newcommand{\inprod}[2]{\left\langle \vec{#1}, \vec{#2} \right\rangle} % Easy to use inner product
\newcommand{\norm}[1]{\lvert \lvert \vec{#1} \rvert \rvert} % Easy to use norm
\newcommand{\ma}[0]{\mathbf{A}} % Easy to use vector
\newcommand{\mb}[0]{\mathbf{B}} % Easy to use vector
\newcommand{\abs}[1]{\left\lvert #1 \right\rvert} % Easy to use abs
\newcommand{\pren}[1]{\left( #1 \right)} % Big parens
\newcommand{\Var}[0]{\text{Var}} % Variance
\newcommand{\Cov}[0]{\text{Cov}} % Variance
\newcommand{\Corr}[0]{\text{Corr}} % Variance
\let\oldvec\vec
\renewcommand{\vec}[1]{\mathbf{#1}} % Vector Styling
\newtheorem{thm}{Theorem} % Define the theorem name
\theoremstyle{definition}
\newtheorem{definition}{Definition} % Define the definition name
\newtheorem{ex}{Example} % Define the example name
\definecolor{bg}{rgb}{0.95,0.95,0.95}
\newminted{r}{frame=single,
bgcolor=bg,
linenos}
\newminted{python}{frame=single,
bgcolor=bg,
linenos}
\newcommand{\weave}{%
\begin{centering}
\begin{mdframed}[hidealllines=true,backgroundcolor=yellow!20]
\hfill\begin{minipage}{\dimexpr\textwidth-1cm}}
\newcommand{\noweave}{%
\xdef\tpd{\the\prevdepth}
\end{minipage}\\
\end{mdframed}
\end{centering}}
\documentclass[10pt]{article}
\input{./tex/header.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beginning of document items - headers, title, toc, etc...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{fancy} % Establishes that the headers will be defined
\fancyhead[LE,LO]{New Paper} % Adds header to left
\fancyhead[RE,RO]{William Farmer} % Adds header to right
\cfoot{\mlptikz[size=0.25in, text=on, textposx=0, textposy=0, textvalue=\thepage, textscale=0.75in]{applejack}}
\lfoot{Class}
\rfoot{Prof}
\title{Title}
\author{William Farmer}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Beginning of document items - headers, title, toc, etc...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\input{./tex/content}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment