-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlstlisting.tex
33 lines (30 loc) · 885 Bytes
/
lstlisting.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\usepackage{listings}
\usepackage{textcomp}
\usepackage{color}
\usepackage{lstautogobble}
\definecolor{lightgray}{rgb}{.9,.9,.9}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\lstdefinestyle{mystyle}{
%backgroundcolor=\color{lightgray},
commentstyle=\color{codegray},
keywordstyle=\color{magenta},
stringstyle=\color{codegreen},
basicstyle=\scriptsize\ttfamily,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=none,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=4,
upquote=true,
xleftmargin=1.5\parindent,
framexleftmargin=3mm,
inputencoding=utf8,
autogobble=true,
frame=single
}
\lstset{style=mystyle}