Skip to content

Instantly share code, notes, and snippets.

@Tehnix
Last active December 15, 2015 17:09
Show Gist options
  • Save Tehnix/5294607 to your computer and use it in GitHub Desktop.
Save Tehnix/5294607 to your computer and use it in GitHub Desktop.
Latex lstlisting settings.
\lstset{
breaklines=true,
xleftmargin=25pt,
xrightmargin=25pt,
aboveskip=10pt,
belowskip=10pt,
basicstyle=\ttfamily,
backgroundcolor=\color{lightlightgray},
showstringspaces=false,
frame=ltrb,
language=Matlab,
tabsize=2,
numbers=left,
numberstyle=\small,
numbersep=8pt,
morekeywords={*, factorial, sum, erlang},
keywordstyle=\color{shpurple}\textbf,
commentstyle=\color{shgreen}\textit,
stringstyle=\color{shred}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment