-
Notifications
You must be signed in to change notification settings - Fork 2
/
listings-setup.tex
32 lines (30 loc) · 1.04 KB
/
listings-setup.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
% Contents of listings-setup.tex
% daqui: https://tex.stackexchange.com/questions/179926/pandoc-markdown-to-pdf-without-cutting-off-code-block-lines-that-are-too-long
\usepackage{xcolor}
\lstset{
basicstyle=\ttfamily,
numbers=left,
keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries,
stringstyle=\color[rgb]{0.31,0.60,0.02},
commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape,
numberstyle=\footnotesize,
stepnumber=1,
numbersep=5pt,
backgroundcolor=\color[RGB]{248,248,248},
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
% captionpos=b,
breaklines=true,
breakatwhitespace=true,
breakautoindent=true,
escapeinside={\%*}{*)},
linewidth=\textwidth,
basewidth=0.5em,
frame=tb,
framerule=1px,
}
% renomeando "listings": https://tex.stackexchange.com/questions/64839/how-to-change-listing-caption
\renewcommand{\lstlistingname}{Código-fonte}% Listing -> Algorithm
\renewcommand{\lstlistlistingname}{Lista de Códigos-fontes}% List of Listings -> List of Algorithms