BMSTU/settings/bmstu-preamble.tex

188 lines
5.8 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\usepackage{pgfplots}
\usepackage{pgf}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{scrextend}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{afterpage}
\usepackage{array}
\bibliographystyle{gost-numeric.bbx}
\usepackage[parentracker=true, backend=biber,
%hyperref=false,
bibencoding=utf8, style=numeric-comp, language=auto,
autolang=other, citestyle=gost-numeric,
defernumbers=true, bibstyle=gost-numeric,
sorting=ntvy,
]{biblatex}
\bibliography{../refs}
\usepackage{pgf-umlsd}
\usepackage{pdfpages}
\usepackage{svg}
\usepackage[toc,page,header]{appendix}
\usepackage{tikz-timing}
\renewcommand\appendixtocname{Приложения}
\usepackage{icomma}
\makeatletter
\providecommand\text\mbox
\newenvironment{arithmetic}[1][]{\begin{tabular}[#1]{Al}}{\end{tabular}}
\newcolumntype{A}{>{\bgroup\def~{\phantom{0}}$\@testOptor}r<{\@gobble\\$\egroup}}
\def\@testOptor\ignorespaces#1#2\\{%
\ifx#1\times
\@OperatorRow{#1}{#2}\@tempa%
\else\ifx#1+
\@OperatorRow+{#2}\@tempa%
\else\ifx#1\discretionary% detects the soft hyphen, \-
\@ShortSubtractRow{#2}\@tempa%
\else\ifx#1-
\@OperatorRow-{#2}\@tempa%
\else
\@NormalRow{#1#2}\@tempa%
\fi\fi\fi\fi
\@tempa}
\def\@OperatorRow#1#2#3{%
\@IfEndRow#2\@gobble\\{%
\def#3{\underline{{}#1 #2}\\}%
}{%
\def#3{\underline{{}#1 #2{}}}%
}}
\def\@NormalRow#1#2{%
\@IfEndRow#1\@gobble\\{%
\def#2{#1\\}%
}{%
\def#2{#1{}}%
}}
\def\@IfEndRow#1\@gobble#2\\#3#4{%
\ifx#2\@gobble
#4%
\else
#3%
\fi}
\makeatother
\makeatletter
\AddEnumerateCounter{\asbuk}{\russian@alph}{щ}
\makeatother
\geometry{
left=22mm,
right=15mm,
top=20mm,
bottom=20mm
}
\setlength\parindent{5ex} %GOST-2.105-2019 5.1.4 Абзацы в тексте начинают отступом, равным пяти знакам используемой гарнитуры шрифта (12.5— 17 мм).
\addto\captionsrussian{\renewcommand*{\contentsname}{\hfill Содержание \hfill}}
\renewcommand{\cfttoctitlefont}{\bfseries\Large}
\renewcommand{\cftaftertoctitle}{\hfill}
% приложений, примечаний, таблиц, сносок и примеров — на 1—2 пт меньше.
\renewcommand{\appendixpagename}{\centering Приложения}
\graphicspath{ {./pics/} }
\pgfplotsset{compat=newest}
\pgfplotsset{model/.style = {black, samples = 100}}
\usetikzlibrary{calc,intersections,backgrounds}
\usetikzlibrary{patterns}
\usetikzlibrary{decorations.pathreplacing,calligraphy}
\usetikzlibrary{shapes}
\usetikzlibrary{arrows,automata}
\usetikzlibrary{circuits.logic.IEC}
\newcommand{\approval}[2]{
\begin{tabular}{c}
УТВЕРЖДАЮ \\
#1\\
\underline{\hspace{2.7cm}}#2\\
«\underline{\hspace{0.6cm}}»\underline{\hspace{2.1cm}}2021 г.
\end{tabular}
}
\renewcommand\labelitemi{\textendash}
\renewcommand\thesubfigure{\asbuk{subfigure}}
\setlist{nosep}
\setlist[itemize]{leftmargin=2\parindent}
\setlist[enumerate]{leftmargin=2\parindent}
\newcommand{\makeBMSTUHeader}{
\noindent\begin{minipage}{0.05\textwidth}
\includegraphics[scale=0.2]{settings/logo_bmstu.png}
\end{minipage}
\hfill
\begin{minipage}{0.85\textwidth}\raggedleft
\begin{center}
\fontsize{13pt}{0.3\baselineskip}\selectfont
\textbf{Министерство науки и высшего образования
Российской Федерации \\
Федеральное государственное бюджетное образовательное \\
учреждение высшего образования \\
«Московский государственный технический университет \\
имени Н. Э. Баумана \\
(национальный исследовательский университет)» \\
(МГТУ им. Н. Э. Баумана)
}
\end{center}
\end{minipage}
\begin{center}
\fontsize{12pt}{0.1\baselineskip}\selectfont
\noindent\makebox[\linewidth]{\rule{\textwidth}{2pt}}
\makebox[\linewidth]{\rule{\textwidth}{1pt}}
\end{center}
\begin{flushleft}
\fontsize{12pt}{14pt}\selectfont
\textbf{ФАКУЛЬТЕТ \tabto{3cm} «Информатика и системы управления» (ИУ)\\
КАФЕДРА \tabto{3cm} «Информационные системы и телекоммуникации» (ИУ3)
}
\end{flushleft}
}
\newcommand{\makeReportTitle}[6]{
\vspace*{3em}
\thispagestyle{titlepage}
\begin{center}
\Large{\textbf{Отчет \\
по #1 работе #2\\
«#3»\\
по курсу\\
«#4»
}}
\end{center}
\vspace*{4em}
\begin{flushright}
Выполнили\\
% cтудент группы ИУ3-11М \\
% cтудент группы ИУ3-21М \\
удент группы ИУ3-31М \\
Овчинников И.И. \\
\vspace*{0.5em}
Проверил#5\\
#6
\end{flushright}
}
\newcommand{\defineHatch}{
\makeatletter
\pgfdeclarepatternformonly[7pt,0.5pt]{hatch}
{\pgfqpoint{0pt}{0pt}}
{\pgfqpoint{7pt}{7pt}} {\pgfpoint{6pt}{6pt}}%
{
\pgfsetcolor{gray} \pgfsetlinewidth{0.5pt}
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}} \pgfpathlineto{\pgfqpoint{7pt}{7pt}}
\pgfusepath{stroke}
}
\makeatother
}
\newcommand{\tkzblk}[3]{ \node [#1] at ($ (#2) $) {#3}; }
\newcommand{\tkzdarr}[2]{ \draw [->, very thick] ($ (#1) + (0,15) $) -- ($ (#2) - (0,15) $); }
\newcommand{\tkzuarr}[2]{ \draw [<-, very thick] ($ (#1) + (0,15) $) -- ($ (#2) - (0,15) $); }
\newcommand{\crd}[2]{\coordinate (#1) at ($ #2 $);}
\newcommand{\ts}[1]{\textsubscript{#1}}
\newcolumntype{R}{>{\tiny{}}r}
\newcolumntype{L}{>{\tiny{}}l}
\newcolumntype{C}{>{\tiny{}}c}