%%% Работа с русским языком \usepackage{cmap} % поиск в PDF \usepackage[T2A]{fontenc} % кодировка \usepackage[utf8]{inputenc} % кодировка исходного текста \usepackage[english,russian]{babel} % локализация и переносы \usepackage[printwatermark]{xwatermark} \usepackage{xcolor} \usepackage{multicol} \usepackage{setspace} \usepackage{titlesec} \usepackage{indentfirst} \usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % AMS \usepackage{icomma} % "Умная" запятая: $0,2$ --- число, $0, 2$ --- перечисление \usepackage{layout} \usepackage{titlesec} \usepackage{hyperref} \usepackage[lmargin=1.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm,paperheight=240mm,paperwidth=170mm]{geometry} \onehalfspacing \addto{\captionsrussian}{\renewcommand{\figurename}{}} \hypersetup{ colorlinks=false, %set true if you want colored links linktoc=all %set to all if you want both sections and subsections linked } \hbadness=99999 \author{Иван Овчинников} \date{\today} \newwatermark[allpages,color=red!50,angle=70,scale=7,xpos=-36,ypos=14]{DRAFT} \usepackage[cache=false]{minted} \usepackage{listings} \usepackage{xcolor} \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 } %\lstinputlisting[language=Octave,caption=some code here]{BitXorMatrix.m} \def\code#1{\texttt{#1}} \newcommand{\sectionbreak}{\clearpage} \newcommand{\frm}[1]{ \newline \newline \indent \fbox{% \parbox{0.9\textwidth}{% #1 }% } \newline \newline }