2021-08-23 11:24:09 +03:00
|
|
|
% \usepackage[printwatermark]{xwatermark}
|
|
|
|
\usepackage{import}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{xcolor}
|
|
|
|
\usepackage{bookmark}
|
2021-08-24 15:23:36 +03:00
|
|
|
\usepackage{multicol}
|
2021-08-23 11:24:09 +03:00
|
|
|
\usepackage{setspace}
|
|
|
|
\usepackage{titlesec}
|
|
|
|
\usepackage{indentfirst}
|
|
|
|
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools}
|
|
|
|
\usepackage{icomma}
|
|
|
|
\usepackage{layout}
|
|
|
|
\usepackage{titlesec}
|
|
|
|
\usepackage{hyperref}
|
2021-09-06 15:49:23 +03:00
|
|
|
\usepackage{tikz}
|
2021-08-23 11:24:09 +03:00
|
|
|
\usepackage[lmargin=1.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm,paperheight=240mm,paperwidth=170mm]{geometry}
|
|
|
|
|
|
|
|
\definecolor{codekeywords}{rgb}{0.1,0.3,0.3}
|
|
|
|
\definecolor{codecomments}{rgb}{0,0.4,0}
|
|
|
|
\definecolor{codenumbers}{rgb}{0.4,0.4,0.4}
|
|
|
|
\definecolor{codestring}{rgb}{0.85,0.2,0.1}
|
|
|
|
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
|
|
|
\definecolor{codefine}{rgb}{0.7,0.5,0.3}
|
|
|
|
\lstdefinestyle{CCodeStyle}{
|
|
|
|
commentstyle=\color{codecomments},
|
|
|
|
morecomment=[l][\color{codefine}]{\#},
|
|
|
|
numberstyle=\tiny\color{codenumbers},
|
|
|
|
stringstyle=\color{codestring},
|
|
|
|
basicstyle=\ttfamily\footnotesize,
|
|
|
|
keywordstyle=\color{codekeywords},
|
|
|
|
emph={int,char,double,float,unsigned,void,bool},
|
|
|
|
emphstyle={\color{blue}},
|
|
|
|
breakatwhitespace=false,
|
|
|
|
breaklines=true,
|
|
|
|
captionpos=b,
|
|
|
|
keepspaces=true,
|
|
|
|
numbers=left,
|
|
|
|
numbersep=5pt,
|
|
|
|
showspaces=false,
|
|
|
|
showstringspaces=false,
|
|
|
|
showtabs=false,
|
|
|
|
tabsize=4
|
|
|
|
}
|
|
|
|
|
|
|
|
\author{Иван Овчинников}
|
|
|
|
\date{\today}
|
|
|
|
\title{Очередное введение в\\язык программирования C}
|
|
|
|
\babelfont{rm}{Times New Roman}
|
|
|
|
\babelfont{sf}{Microsoft Sans Serif}
|
|
|
|
\babelfont{tt}{Courier New}
|
|
|
|
% \newwatermark[allpages,color=red!50,angle=70,scale=7,xpos=-36,ypos=14]{DRAFT}
|
|
|
|
\onehalfspacing
|
|
|
|
\addto{\captionsrussian}{\renewcommand{\figurename}{}}
|
|
|
|
\hypersetup{
|
|
|
|
colorlinks=false,
|
|
|
|
linktoc=all
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\code}[1]{\texttt{#1}}
|
|
|
|
\newcommand{\sectionbreak}{\clearpage}
|
|
|
|
\newcommand{\frm}[1]{\newline%
|
|
|
|
\newline%
|
|
|
|
\indent\fbox{%
|
|
|
|
\parbox{0.9\textwidth}{%
|
|
|
|
#1}%
|
|
|
|
}%
|
|
|
|
\newline%
|
|
|
|
\newline%
|
|
|
|
}%
|