basic-c/formatting.tex

76 lines
2.1 KiB
TeX
Raw Normal View History

% \usepackage[printwatermark]{xwatermark}
\usepackage{import}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{bookmark}
\usepackage{multicol}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools}
\usepackage{icomma}
\usepackage{layout}
\usepackage{titlesec}
\usepackage{hyperref}
\usepackage{tikz}
2021-09-29 14:11:47 +03:00
\usepackage{ascii}
\usepackage{textcomp}
\usepackage{eurosym}
\usepackage{cclicenses}
2021-09-27 08:48:12 +03:00
\usetikzlibrary{positioning}
\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%
}%