Created
March 26, 2018 17:47
-
-
Save alex-pat/12176e350003740c339bdf2271629740 to your computer and use it in GitHub Desktop.
diff -uZ MiKTeX/preamble.tex my/preamble.tex > preamles.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- MiKTeX/preamble.tex 2018-02-18 16:32:27.006650858 +0300 | |
+++ my/preamble.tex 2018-03-26 20:42:44.939047859 +0300 | |
@@ -49,7 +49,7 @@ | |
% Зачем: Настраивает межстрочный интервал, для размещения 40 +/- 3 строки текста на странице. | |
% Почему: Пункт 2.1.1 Требований по оформлению пояснительной записки. | |
\usepackage[nodisplayskipstretch]{setspace} | |
-\setstretch{1.1} | |
+\setstretch{1.0} | |
%\onehalfspacing | |
% Зачем: Выбор шрифта по-умолчанию. | |
@@ -80,13 +80,6 @@ | |
% Почему: Пункт 2.9.2 Требований по оформлению пояснительной записки. | |
\usepackage[bottom]{footmisc} | |
- | |
-% Зачем: Переопределяем стандартную нумерацию, т.к. в отчете будут только section и т.д. в терминологии TeX | |
-\makeatletter | |
-\renewcommand{\thesection}{\arabic{section}} | |
-\makeatother | |
- | |
- | |
% Зачем: Пункты (в терминологии требований) в терминологии TeX subsubsection должны нумероваться | |
% Почему: Пункт 2.2.3 Требований по оформлению пояснительной записки. | |
\setcounter{secnumdepth}{3} | |
@@ -98,12 +91,12 @@ | |
\setlength{\cftbeforetoctitleskip}{-1em} | |
\setlength{\cftaftertoctitleskip}{1em} | |
- | |
% Зачем: Определяет отступы слева для записей в таблице содержания. | |
% Почему: Пункт 2.2.7 Требований по оформлению пояснительной записки. | |
\makeatletter | |
\renewcommand{\l@section}{\@dottedtocline{1}{0.5em}{1.2em}} | |
\renewcommand{\l@subsection}{\@dottedtocline{2}{1.7em}{2.0em}} | |
+ | |
\makeatother | |
@@ -126,15 +119,19 @@ | |
% Зачем: Задает стиль заголовков раздела жирным шрифтом, прописными буквами, без точки в конце | |
% Почему: Пункты 2.1.1, 2.2.5, 2.2.6 и ПРИЛОЖЕНИЕ Л Требований по оформлению пояснительной записки. | |
\makeatletter | |
+\renewcommand\thesubsection{\thesection.\arabic{subsection}} | |
+\renewcommand\thesection{\arabic{section}} | |
+\makeatother | |
+ | |
+\makeatletter | |
\renewcommand\section{% | |
\clearpage\@startsection {section}{1}% | |
{\fivecharsapprox}% | |
{-1em \@plus -1ex \@minus -.2ex}% | |
{1em \@plus .2ex}% | |
- {\raggedright\hyphenpenalty=10000\normalfont\large\bfseries\MakeUppercase}} | |
+ {\raggedright\hyphenpenalty=10000\normalfont\MakeUppercase}} | |
\makeatother | |
- | |
% Зачем: Задает стиль заголовков подразделов | |
% Почему: Пункты 2.1.1, 2.2.5 и ПРИЛОЖЕНИЕ Л Требований по оформлению пояснительной записки. | |
\makeatletter | |
@@ -143,7 +140,7 @@ | |
{\fivecharsapprox}% | |
{-1em \@plus -1ex \@minus -.2ex}% | |
{1em \@plus .2ex}% | |
- {\raggedright\hyphenpenalty=10000\normalfont\normalsize\bfseries}} | |
+ {\raggedright\hyphenpenalty=10000\normalfont\normalsize}} | |
\makeatother | |
@@ -154,8 +151,8 @@ | |
\@startsection{subsubsection}{3}% | |
{\fivecharsapprox}% | |
{-1em \@plus -1ex \@minus -.2ex}% | |
- {\z@}% | |
- {\raggedright\hyphenpenalty=10000\normalfont\normalsize\bfseries}} | |
+ {1em \@plus .2ex}% | |
+ {\raggedright\hyphenpenalty=10000\normalfont\normalsize}} | |
\makeatother | |
% Зачем: для оформления введения и заключения, они должны быть выровнены по центру. | |
@@ -166,11 +163,17 @@ | |
{\z@}% | |
{-1em \@plus -1ex \@minus -.2ex}% | |
{1em \@plus .2ex}% | |
- {\centering\hyphenpenalty=10000\normalfont\large\bfseries\MakeUppercase}% | |
+ {\centering\hyphenpenalty=10000\normalfont\MakeUppercase}% | |
} | |
\makeatother | |
- | |
+\usepackage{titlesec} | |
+\titleformat{\section} | |
+ {}{\textbf{\thesection}}{1em}{} | |
+\titleformat{\subsection} | |
+ {}{\textbf{\thesubsection}}{1em}{} | |
+\titleformat{\subsubsection} | |
+ {}{\textbf{\thesubsubsection}}{1em}{} | |
% Зачем: Задает стиль библиографии | |
% Почему: Пункт 2.8.6 Требований по оформлению пояснительной записки. | |
@@ -186,6 +189,7 @@ | |
% Зачем: Директория в которой будет происходить поиск картинок | |
\graphicspath{{figures/}} | |
+\setlength{\belowcaptionskip}{-10pt} | |
% Зачем: Добавление подписей к рисункам | |
\usepackage[nooneline]{caption} | |
@@ -202,16 +206,14 @@ | |
% Зачем: когда в формулах много кириллических символов команда \text{} занимает много места | |
\DeclareRobustCommand{\x}[1]{\text{#1}} | |
- | |
% Зачем: Задание подписей, разделителя и нумерации частей рисунков | |
% Почему: Пункт 2.5.5 Требований по оформлению пояснительной записки. | |
-\DeclareCaptionLabelFormat{stbfigure}{Рисунок #2} | |
-\DeclareCaptionLabelFormat{stbtable}{Таблица #2} | |
+\DeclareCaptionLabelFormat{stbfigure}{\\Рисунок \arabic{section}.\arabic{figure}} | |
+\DeclareCaptionLabelFormat{stbtable}{Таблица \arabic{section}.\arabic{table}} | |
\DeclareCaptionLabelSeparator{stb}{~--~} | |
\captionsetup{labelsep=stb} | |
\captionsetup[figure]{labelformat=stbfigure,justification=centering} | |
-\captionsetup[table]{labelformat=stbtable,justification=raggedright} | |
-\renewcommand{\thesubfigure}{\asbuk{subfigure}} | |
+\captionsetup[table]{labelformat=stbtable,justification=raggedright,aboveskip=0pt} | |
% Зачем: Окружения для оформления формул | |
% Почему: Пункт 2.4.7 требований по оформлению пояснительной записки и специфические требования различных кафедр | |
@@ -294,7 +296,7 @@ | |
% Зачем: Устанавливает отступ от границы документа до символа списка, чтобы этот отступ равнялся отступу параграфа | |
% Почему: Пункт 2.3.5 Требований по оформлению пояснительной записки. | |
-\setlist[itemize,0]{itemindent=\parindent + 2.2ex,leftmargin=0ex,label=--} | |
+\setlist[itemize,0]{itemindent=\parindent + 2.2ex,leftmargin=0ex} | |
\setlist[enumerate,1]{itemindent=\parindent + 2.7ex,leftmargin=0ex} | |
\setlist[enumerate,2]{itemindent=\parindent + \parindent - 2.7ex} | |
@@ -307,6 +309,9 @@ | |
% Зачем: Включение номера раздела в номер рисунка. Нумерация рисунков внутри раздела. | |
\AtBeginDocument{\numberwithin{figure}{section}} | |
+\let\oldequation=\equation | |
+\let\endoldequation=\endequation | |
+\renewenvironment{equation}{\vspace{-0.3em}\begin{oldequation}}{\end{oldequation}\vspace{-0.9em}} | |
% Зачем: Дополнительные возможности в форматировании таблиц | |
\usepackage{makecell} | |
@@ -344,48 +349,30 @@ | |
% Примечание: final нужен для переопределения режима draft, в котором листинги не выводятся в документ. | |
\usepackage[final]{listings} | |
- | |
-% Зачем: настройка оформления листинга для языка F# | |
-\definecolor{bluekeywords}{rgb}{0.13,0.13,1} | |
-\definecolor{greencomments}{rgb}{0,0.5,0} | |
-\definecolor{turqusnumbers}{rgb}{0.17,0.57,0.69} | |
-\definecolor{redstrings}{rgb}{0.5,0,0} | |
- | |
\renewcommand{\lstlistingname}{Листинг} | |
-\lstdefinelanguage{FSharp} | |
- {morekeywords={abstract,and,as,assert,base,begin,class,default,delegate,do,done,downcast,downto,elif,else,end,exception,extern,false,finally,for,fun,function,global,if,in,inherit,inline,interface,internal,lazy,let,let!,match,member,module,mutable,namespace,new,not,null,of,open,or,override,private,public,rec,return,return!,select,static,struct,then,to,true,try,type,upcast,use,use!,val,void,when,while,with,yield,yield!,asr,land,lor,lsl,lsr,lxor,mod,sig,atomic,break,checked,component,const,constraint,constructor,continue,eager,event,external,fixed,functor,include,method,mixin,object,parallel,process,protected,pure,sealed,tailcall,trait,virtual,volatile}, | |
- keywordstyle=\bfseries\color{bluekeywords}, | |
+\lstdefinelanguage{TypeScript}{ | |
+ keywords={typeof, number, string, boolean, public, private, protected, virtual, static, override, class, interface, declare, module, any, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break, for, console, log}, | |
+ keywordstyle=\text, | |
+ ndkeywords={class, export,exports, boolean, throw, implements, import, this}, | |
+ keywordstyle=\text, | |
+ identifierstyle=\color{black}, | |
sensitive=false, | |
- morecomment=[l][\color{greencomments}]{///}, | |
- morecomment=[l][\color{greencomments}]{//}, | |
- morecomment=[s][\color{greencomments}]{{(*}{*)}}, | |
+ showstringspaces=false, | |
+ comment=[l]{//}, | |
+ morecomment=[s]{/*}{*/}, | |
+ commentstyle=\color{black}\ttfamily, | |
+ stringstyle=\color{black}\ttfamily, | |
+ morestring=[b]', | |
morestring=[b]", | |
- stringstyle=\color{redstrings}, | |
- } | |
- | |
-\lstdefinestyle{fsharpstyle}{ | |
- xleftmargin=0ex, | |
- language=FSharp, | |
- basicstyle=\footnotesize\ttfamily, | |
- breaklines=true, | |
- columns=fullflexible | |
+ frame=none, | |
+ numbersep=16pt, | |
+ rulecolor=\color{black}, | |
+ breaklines=true, | |
+ columns=fullflexible, | |
+ basicstyle=\normalsize\ttfamily | |
} | |
-\lstdefinestyle{csharpinlinestyle} { | |
- language=[Sharp]C, | |
- morekeywords={yield,var,get,set,from,select,partial,where,async,await}, | |
- breaklines=true, | |
- columns=fullflexible, | |
- basicstyle=\footnotesize\ttfamily | |
-} | |
- | |
-\lstdefinestyle{csharpstyle}{ | |
- language=[Sharp]C, | |
- frame=lr, | |
- rulecolor=\color{blue!80!black}} | |
- | |
- | |
% Зачем: Нумерация листингов в пределах секции | |
\AtBeginDocument{\numberwithin{lstlisting}{section}} | |
@@ -472,3 +459,8 @@ | |
\fi | |
} | |
+\setstretch{0.98} | |
+ | |
+\makeatletter | |
+\renewcommand\@biblabel[1]{#1} | |
+\makeatother |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment