Last active
February 12, 2019 21:08
-
-
Save benapie/270dad41f6f14039f7f32112c93221bb to your computer and use it in GitHub Desktop.
Master list of dependencies for LaTeX files.
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
% Typical maths | |
\usepackage{amssymb} % Cool symbols like \mathbb{R} | |
\usepackage{bm} % Bold symbols, \bm{v} | |
\usepackage{mathtools} % Main maths package, imports amsmath | |
\usepackage{enumitem} % allows next line | |
\setlist[enumerate,1]{label={(\roman*)}} % changing default numbering scheme | |
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert} % absolute operator | |
% Probability | |
\usepackage{mathtools} | |
\DeclareMathOperator{\Prob}{\mathbb{P}} | |
% Linear algebra | |
\usepackage{mathtools} | |
% Augmented matrices | |
\newcommand*{\eroarrowext}[4]{\xrightarrow[\substack{#3 \\ #4}]{\mathmakebox[3em]{\substack{#1 \\ #2}}}} | |
\newcommand*{\eroarrow}[2]{\xrightarrow[#2]{\mathmakebox[3em]{#1}}} | |
\newcommand{\eroequals}[1]{\ensuremath{\stackrel{#1}{=}}} | |
\makeatletter | |
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{ | |
\hskip -\arraycolsep | |
\let\@ifnextchar\new@ifnextchar | |
\array{#1}} | |
\makeatother | |
% Systems of linear equations | |
\usepackage{systeme} % for linear equations formatting | |
\newcommand{\linsys}{\sysdelim..\systeme} % cleaner linear systems command | |
% Some common delimiters and operators | |
\DeclarePairedDelimiter{\norm}{\lVert}{\rVert} % norm operator | |
\DeclareMathOperator{\Det}{det} % Determinant operator | |
\DeclareMathOperator{\trace}{tr} | |
\DeclareMathOperator{\mspan}{span} | |
\DeclareMathOperator{\rank}{rank} | |
\DeclareMathOperator{\nullity}{nullity} | |
% Sorting algorithm examples | |
\usepackage{booktabs} | |
\usepackage{array} | |
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} | |
% Plotting graphs | |
\usepackage{pgfplots} % graphs | |
\pgfplotsset{compat=1.15} | |
% Drawing trees | |
\usepackage{forest} | |
% Algorithms | |
\usepackage{algorithm} | |
\usepackage{algpseudocode} | |
% Misc | |
\usepackage{tikz} % drawing figures | |
\usepackage{multicol} % multiple columns | |
% Environments for notes (theorem, definition, etc.) | |
\usepackage{amsthm} % Theorem package for maths | |
\usepackage{geometry} % Makes margins wider | |
\newtheorem{definition}{Definition}[chapter] | |
\newtheorem{proposition}[definition]{Proposition} | |
\newtheorem{example}[definition]{Example} | |
\newenvironment{solution}{\begin{proof}[Solution]}{\end{proof}} | |
\newtheorem{lemma}[definition]{Lemma} | |
\newtheorem{theorem}[definition]{Theorem} | |
\newtheorem{corollary}[definition]{Corollary} | |
\newtheorem*{remark}{Remark} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment