Skip to content

Instantly share code, notes, and snippets.

@jxnl
Created March 17, 2015 01:46
Show Gist options
  • Save jxnl/1ff329e3f99e6e7db232 to your computer and use it in GitHub Desktop.
Save jxnl/1ff329e3f99e6e7db232 to your computer and use it in GitHub Desktop.
\usepackage{listings}
\usepackage[numbered,framed]{matlab-prettifier}
\usepackage{color}
\usepackage{geometry}
\geometry{verbose,tmargin=1.0in,bmargin=1.0in,lmargin=0.5in,rmargin=0.5in}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=MATLAB,
columns=flexible,
basicstyle={\small\ttfamily},
numbers = none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true
tabsize=2
}
\lstset{language=Matlab}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment