Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created November 4, 2012 12:28
Show Gist options
  • Save y-yu/4011704 to your computer and use it in GitHub Desktop.
Save y-yu/4011704 to your computer and use it in GitHub Desktop.
listing settings
\usepackage{listings}
\lstset{
language=C,
basicstyle=\footnotesize\tt,
keywordstyle=\footnotesize\sl,
breaklines=true,
numbers=left,
frame=trbl,
showstringspaces=false,
firstnumber=1,
numbers=left,
xleftmargin=16pt,
xrightmargin=4pt,
basewidth={0.57em, 0.52em}
}
\lstinuputlisting{path/to/c-lang.c}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment