Skip to content

Instantly share code, notes, and snippets.

@chi-feng
chi-feng / preamble
Created September 17, 2013 01:38
Latex Listings language definition/style for Julia
\usepackage{inconsolata} % very nice fixed-width font included with texlive-full
\usepackage[usenames,dvipsnames]{color} % more flexible names for syntax highlighting colors
\usepackage{listings}
\lstset{
basicstyle=\ttfamily,
columns=fullflexible, % make sure to use fixed-width font, CM typewriter is NOT fixed width
numbers=left,
numberstyle=\small\ttfamily\color{Gray},
stepnumber=1,