summaryrefslogtreecommitdiff
path: root/report/preamble.sty
blob: e8f95012208308493306c03e80ab9617e9e2a9dd (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
\ProvidesPackage{preamble}

\usepackage[english,russian]{babel}
% \usepackage[T2A]{fontenc}
% \usepackage[utf8]{inputenc}
\usepackage{fontspec}
\setmainfont[
    Path=./fonts/freefont/,
    Extension = .otf,
    UprightFont=*,
    BoldFont=*Bold,
    ItalicFont=*Italic,
    BoldItalicFont=*BoldItalic
]{FreeSerif}
\setsansfont[
    Path=./fonts/freefont/,
    Extension = .otf,
    UprightFont=*,
    BoldFont=*Bold,
    ItalicFont=*Oblique,
    BoldItalicFont=*BoldOblique
]{FreeSans}
\setmonofont[
    Path=./fonts/freefont/,
    Extension = .otf,
    UprightFont=*,
    BoldFont=*Bold,
    ItalicFont=*Oblique,
    BoldItalicFont=*BoldOblique
]{FreeMono}

\usepackage{caption}
\usepackage{float}
\usepackage{subfigure}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=1.5}

\setcounter{secnumdepth}{4}
% \titleformat{\paragraph}[block]
% {\hspace{1.25cm}\normalfont}
% {\theparagraph}{1ex}{}
% \titlespacing{\paragraph}
% {0cm}{2ex plus 1ex minus .2ex}{.4ex plus.2ex}

\usepackage{graphicx}
\graphicspath{ {./images/} }
% \usepackage{tempora}
% \usepackage{minted}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{fancyvrb}
\usepackage{fvextra}
\usepackage{listings}
\usepackage{listingsutf8}
\usepackage{longtable}
\usepackage{array}
\usepackage{url}
\usepackage{csquotes}
% \usepackage[colorlinks=false]{hyperref}
% \usepackage[sort,compress]{cite}

\newcommand{\eqdef}{\stackrel {\rm def}{=}}
\renewcommand\theFancyVerbLine{\small\arabic{FancyVerbLine}}
\newtheorem{theorem}{Теорема}
\newtheorem{definition}{Определение}
\newtheorem{lemma}{Лемма}
\newtheorem*{lemma*}{Лемма}
\newtheorem*{example}{Пример}

% \setminted[rust]{fontsize=\small, breaklines=true, style=bw, linenos}
\fvset{breaklines=true,numbers=left,fontsize=\small}