Skip to content

Instantly share code, notes, and snippets.



Last active Aug 4, 2019
What would you like to do?
% Required Packages
\usepackage[letterpaper, left=0.7in, right=0.7in, top=0.5in, bottom=0.5in]{geometry}
\usepackage{parskip} % disable the new paragraph indent
\usepackage{enumitem} % somehow fixes the linespacing for numbering
\usepackage[dvipsnames]{xcolor} % enable color
\usepackage[none]{hyphenat} % disable hyphenation, might clash with other package
\usepackage[document]{ragged2e} % don't justify text
\usepackage{gensymb} % for generic degree commands
\usepackage{amssymb} % more fancy arrows
\usepackage{graphicx} % for adding images
\usepackage{float} % to properly float image without causing a war
\usepackage[font=small,skip=0pt]{caption} % required to better style the caption
\usepackage{hyperref} % to allow hyperlink in document
\usepackage{lmodern} % avoid font-size issue with Latin Modern font
\usepackage[T1]{fontenc} % enable a proper font encoding (8 bit, 256 glyphs)
\usepackage{upgreek} % for using upright greek letters
% Overriding Defaults
\renewcommand{\familydefault}{\sfdefault} % Sans Serif as the default font-family
\renewcommand{\baselinestretch}{1.25} % use 1.25 line-spacing
\pagenumbering{gobble} % turn off page numbering
\graphicspath{{./images/}} % define the path for images
\renewcommand\textbullet{\ensuremath{\bullet}} % stop nagging about font size for bullet point
\captionsetup[figure]{font=small,skip=5pt} % required to better style the caption
\hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue}
\newcommand{\bi}{\begin{itemize}[noitemsep, topsep=0pt]} % itemize with noitemsep
\newcommand{\be}{\begin{enumerate}[noitemsep, topsep=0pt]} % enumerate with noitemsep
% Custom Shortcuts
% Colorboxes
% Simplified Units & Symbols
\newcommand{\ul}{$\upmu$l} % define microliter
\newcommand{\ug}{$\upmu$g} % define microgram
\newcommand{\uM}{$\upmu$M} % define micromolar
\newcommand{\um}{$\upmu$m} % define micron
\newcommand{\dg}{$\degree$} % define degree
\newcommand{\X}{$\times$} % define multiplication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.