Last active
March 1, 2016 21:11
-
-
Save marcjubero/0c70e31bd5aa9f2423d4 to your computer and use it in GitHub Desktop.
Latex listing
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
\usepackage{listings} | |
%New colors defined below | |
\definecolor{codegreen}{rgb}{0,0.6,0} | |
\definecolor{codegray}{rgb}{0.5,0.5,0.5} | |
\definecolor{codepurple}{rgb}{0.58,0,0.82} | |
\definecolor{backcolour}{rgb}{0.95,0.95,0.92} | |
\definecolor{gray}{rgb}{0.53,0.53,0.53} | |
%Code listing style named "mystyle" | |
\lstdefinestyle{mystyle}{ | |
backgroundcolor=\color{backcolour}, | |
commentstyle=\color{codegreen}, | |
keywordstyle=\color{magenta}, | |
numberstyle=\tiny\color{codegray}, | |
stringstyle=\color{codepurple}, | |
basicstyle=\footnotesize, | |
breakatwhitespace=false, | |
breaklines=true, | |
captionpos=b, | |
keepspaces=true, | |
numbers=left, | |
numbersep=5pt, | |
showspaces=false, | |
showstringspaces=false, | |
showtabs=false, | |
tabsize=4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment