-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtext_RU.sty
87 lines (72 loc) · 2.88 KB
/
text_RU.sty
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\usepackage[russian,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%% Fonts
\usepackage{fontspec}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont[Path=fonts/,ItalicFont=PTF56F.ttf,
BoldFont=PTF75F.ttf]{PTF55F.ttf}
\setmonofont[Ligatures={NoRequired,NoCommon,NoContextual},
Path=fonts/,BoldFont=FiraMono-Bold.ttf]{FiraMono-Regular.ttf}
%\usepackage{titlesec}
%\newfontfamily\erlChapterFont[Path=fonts/,BoldFont=PTF75F.ttf]{PTF55F.ttf}
%\ChTitleVar{\erlChapterFont\fontsize{28}{28}\bf\selectfont\hfill}
%\ChNameVar{\erlChapterFont\fontsize{16}{16}\bf\selectfont}
\usepackage[]{geometry}
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\graphicspath{{graphics/}}
\usepackage[export]{adjustbox}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage{mdwlist}
\usepackage{float}
\usepackage{placeins} % float barriers
\usepackage{fancyhdr} % to write version in footer of copyright page
\usepackage{pdfpages}
\usepackage{bookmark,hyperref}
\hypersetup{
colorlinks = true,
urlcolor = cyan
}
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
\DefineVerbatimEnvironment{VerbatimText}{Verbatim}{frame=lines,framesep=2mm,numbers=left,numbersep=3mm}
\DefineVerbatimEnvironment{VerbatimRaw}{Verbatim}{frame=lines,framesep=2mm}
\DefineVerbatimEnvironment{VerbatimErl}{Verbatim}{frame=lines,framesep=2mm,fontsize=\small}
\DefineVerbatimEnvironment{VerbatimEshell}{Verbatim}{frame=lines,framesep=2mm,fontsize=\small}
\newcommand{\filename}[1]{\Verb`#1`}
\newcommand{\app}[1]{\Verb`#1`}
\newcommand{\otpapp}[1]{\Verb`#1`}
\newcommand{\module}[1]{\Verb`#1`}
\newcommand{\function}[1]{\Verb`#1`}
\newcommand{\expression}[1]{\Verb`#1`}
\newcommand{\command}[1]{\Verb`#1`}
\newcommand{\var}[1]{\Verb`#1`}
\newcommand{\term}[1]{\Verb`#1`}
\newcommand{\expressionT}[1]{\texttt{#1}}
\newcommand{\functionT}[1]{\texttt{#1}}
\newcommand{\termT}[1]{\texttt{#1}}
%% Colors of footnotes
\renewcommand\thefootnote{\textcolor{violet}{\arabic{footnote}}}
%% Colors of figure refs for table of contents and list of figures
\hypersetup{linkcolor=black}
\def\includecode{\begingroup
\catcode`\_=12
\includecodeB}
\newcommand{\includecodeB}[2][erlang]{\VerbatimInput[frame=lines,framesep=2mm,%label=#1/#2,
fontsize=\small]{#1/#2}\endgroup}
%------ Hyphenation -------------------
\lefthyphenmin=3
\righthyphenmin=4
\hyphenpenalty=5000
\tolerance=2500
\clubpenalty=8000 % hanging front line of para
\widowpenalty=8000 % dangling last line of para
%\predisplaypenalty=10000
\newcommand{\LongTitle}{Всё пошло не так: Erlang в гневе}
\newcommand{\ShortTitle}{Erlang в гневе}
\newcommand{\HandsOnTitle}{Тренировочные задания}
\newcommand{\ReviewTitle}{Вопросы для закрепления материала}
\newcommand{\OpenEndedTitle}{Открытые вопросы}
\newcommand\NamedRef[1]{\ref{#1} <<\nameref{#1}>>}