Skip to content

Instantly share code, notes, and snippets.

@munthe
Created November 4, 2014 09:51
Show Gist options
  • Save munthe/8418da9a338a14d1ab22 to your computer and use it in GitHub Desktop.
Save munthe/8418da9a338a14d1ab22 to your computer and use it in GitHub Desktop.
Matlab style for listing in latex
% Include matlab code and style it
\usepackage{listings}
\lstset{extendedchars=true,
basicstyle=\ttfamily,
keywordstyle=\normalfont\bfseries, columns=flexible,
numbers=left,
breaklines=true,
numberstyle=\tiny,
breakatwhitespace=true,
language=Matlab}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment