documentclass russian extreport usepackage utf8x inputenc usepackage g

 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
34
35
36
37
38
\documentclass[russian]{extreport}
\usepackage[utf8x]{inputenc}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{babel}
\usepackage{url}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{caption}
\usepackage{xcolor}
\usepackage{listingsutf8}
\lst@ProcessLetter{"DF}{\ss{}}
\renewcommand{\lstlistingname}{Листинг}
\captionsetup{figurewithin=none}
\renewcommand{\baselinestretch}{1.5}
\geometry{verbose, tmargin=2cm, bmargin=2cm, lmargin=2cm, rmargin=2cm, headheight=0cm, headsep=0cm, footskip=1cm}
\lstset{
language=Python,
basicstyle=\ttfamily,
otherkeywords={self},
keywordstyle=\ttfamily\color{blue!90!black},
keywords=[2]{True,False},
keywords=[3]{ttk},
keywordstyle={[2]\ttfamily\color{yellow!80!orange}},
keywordstyle={[3]\ttfamily\color{red!80!orange}},
emph={MyClass,__init__},
emphstyle=\ttfamily\color{red!80!black},
stringstyle=\color{green!80!black},
showstringspaces=false,
frame=single,
breaklines=true,
tabsize=2,
numbers=left,
inputencoding=utf8x, extendedchars=false, keepspaces = true,
}