Skip to content

Instantly share code, notes, and snippets.

@wildintellect
Created October 18, 2011 07:18
Show Gist options
  • Save wildintellect/1294798 to your computer and use it in GitHub Desktop.
Save wildintellect/1294798 to your computer and use it in GitHub Desktop.
Example latex use of listings package with custom keywords added to a langauge definition.
\lstset{language=SQL,
numbers=left,
frame=single,
backgroundcolor=\color[RGB]{234,237,230},
numberstyle=\tiny,
basicstyle={\footnotesize\ttfamily\bfseries},
frameround=tttt,
breaklines=true,
keywordstyle=\color[RGB]{32,74,135},
commentstyle=\color[RGB]{143,89,2},
stringstyle=\color[RGB]{78,154,6},
%identifierstyle=\color[RGB]{92,53,204},
morekeywords={CreateMbrCache,mbr,FilterMbrWithin,MbrMinX,MbrMinY,MbrMaxX,MbrMaxY,Within,group_concat}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment