forked from grigory-rechistov/simlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
practicum.tex
188 lines (139 loc) · 5.18 KB
/
practicum.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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
% Compile with xelatex only.
% For bibliography, use biber
%
\documentclass[a5paper, 11pt, oneside, titlepage, numbers=endperiod]{scrbook}
%\documentclass[a4paper, 10pt,twoside,titlepage]{book} % swap for latex2rtf
\def \documentversion {1.6.4$\beta$}
% A switch to change between document rendering options
\usepackage{etoolbox}
\newtoggle{webpaper}
\toggletrue{webpaper}
%\togglefalse{webpaper}
\usepackage[top=1.5cm, bottom=2.cm, left=1.84cm, right=1.5cm, footskip=1.cm]{geometry}
\footskip=1.2cm
\pagestyle{plain} % no headers, page numbers in footers
%\usepackage[utf8]{inputenc} % uncomment for latex2rtf
\usepackage{ctable}
%\usepackage{caption}
%\DeclareCaptionFormat{myformat}{\hfill#1#2\\ \bfseries#3}
%\captionsetup[table]{justification=centering, singlelinecheck=off, format=myformat, labelformat = simple} % Ugly hack to remove prefix "table"
\usepackage{tikz}
\usetikzlibrary{shapes, calc, arrows, fit, positioning, decorations, patterns, decorations.pathreplacing, chains, snakes}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{csquotes}
\usepackage{polyglossia}
\usepackage{fontspec}
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
\newfontfamily\russianfont{CMU Serif}
\setromanfont{CMU Serif}
\setsansfont{CMU Sans Serif}
\setmonofont{CMU Typewriter Text}
\usepackage{xltxtra} % must be after fontspec
\setdefaultlanguage[spelling=modern]{russian}
\setotherlanguage{english}
\newcommand{\abbr}{\textit{англ.}\ }
\newcommand{\todo}{{\color{red}TODO}\ }
\usepackage{graphicx}
\graphicspath{{./images/}} % Путь к папке, содержащей рисунки
\tolerance=9999 % let the text underfull be ugly as hell, nobody cares.
\widowpenalty=9998 % try to avoid widow lines
\clubpenalty=9998 % try to avoid orphan lines
\emergencystretch=3em
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=black, filecolor=black, citecolor=black, urlcolor=black , pdfauthor=Grigory Rechistov and Evgeny Yulyugin, pdftitle=Лабораторный практикум по программному моделированию}
\usepackage{footnpag}
\usepackage{indentfirst}
\usepackage{underscore}
\usepackage{longtable}
\usepackage{url}
\usepackage{listings}
\lstset{basicstyle=\footnotesize\ttfamily, breaklines=true, keepspaces=true }
\iftoggle{webpaper}{
% bibliography settings to put one after each chapter
\usepackage[language=auto, bibencoding=inputenc, style=gost-numeric, backend=biber, maxnames=4, refsection=chapter]{biblatex}
} {
% bibliography settings to put one global at the end
\usepackage[language=auto, bibencoding=inputenc, style=gost-numeric, backend=biber, maxnames=4]{biblatex}
}
\usepackage{bytefield}
\usepackage[subfigure]{tocloft}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % To set dots between chapter description and numbers
\setlength{\cftaftertoctitleskip}{20pt}
\usepackage{tabularx}
\usepackage{nameref}
\usepackage{amsthm}
\usepackage{enumitem} % continue enumeration
\usepackage{subfigure}
\usepackage{mdwlist} % compact itemize lists environment
\usepackage{appendix}
\renewcommand{\appendixname}{Приложения}
\renewcommand{\appendixtocname}{Приложения}
\renewcommand{\appendixpagename}{Приложения}
\let\plainappendixpage\appendixpage
\makeatletter
\renewcommand{\appendixpage}{% Delete page number in appendixpage
\begingroup
\let\ps@plain\ps@empty
\plainappendixpage
\endgroup}
\makeatother
\renewcommand{\dictumwidth}{0.5\textwidth}
\newcommand{\dictumtext}{\normalfont\normalcolor\sffamily\tiny}
\setcounter{tocdepth}{2}
\usepackage[hang,flushmargin]{footmisc} % correct indent for footnotes
%\usepackage{draftwatermark}
%\SetWatermarkFontSize{35.83pt}
%\SetWatermarkScale{3.0}
\addbibresource{./practicum.bib}
\renewcommand*{\multicitedelim}{\addcomma\space} % grouped cites separated by commas not semicolons
\addtokomafont{caption}{\small}
\renewcommand{\captionformat}{~} % do not put colon after figures numbers
\setkomafont{pagenumber}{\normalfont\rmfamily} % fix KOMA bug when footer/header inherits font settings from main text.
\usepackage{setspace}
\typeout{Copyright 2012, 2013, 2014 Grigory Rechistov and Evgeny Yulyugin.}
\begin{document}
\iftoggle{webpaper}{
\include{title}
} {
\include{title-print}
\include{backside}
}
\begingroup
\setstretch{0.8}
\renewcommand\contentsname{Содержание}
\setcounter{tocdepth}{1}
\tableofcontents
\endgroup
\include{contrib}
% Don't show number of chapter in overview
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thesection}{\arabic{section}}
\include{overview}
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\include{lab01}
\include{lab-components}
\include{lab-model-builder}
\include{lab-scripting}
\include{lab05}
\include{lab06}
\include{lab-testing}
% Chapters to be reworked.
\include{lab03}
\include{lab04}
\appendix
\appendixpage
\renewcommand{\thechapter}{\Asbuk{chapter}} % Use Russian letters for numbering
\include{simics-guide}
%\include{app-broken-script}
\include{target-script}
\include{debug-example}
\include{installation}
\iftoggle{webpaper}{
\include{todo}
} {
\include{literature}
\include{lastpage}
}
\end{document}