\documentclass[a4paper,oneside]{book}
%\documentclass[11pt]{book}

\usepackage{cmap}

%\usepackage[russian,english]{babel}
%\usepackage[T2A]{fontenc}
%\usepackage[default]{sourcesanspro}

\usepackage{polyglossia}
\setmainfont[Ligatures=TeX]{CMU Serif}
\setmonofont{CMU Typewriter Text}

\usepackage{ifthen}

\usepackage{fancyhdr}

\usepackage{amsmath}
\usepackage{MnSymbol}
\undef\mathdollar

\usepackage{amsfonts}
\usepackage{listings}
\usepackage{epigraph}
\usepackage{url}
%\usepackage[cm]{fullpage} % https://ctan.org/pkg/fullpage this makes small margins!
\usepackage{graphicx}
\usepackage{framed}
\usepackage[table]{xcolor}
\usepackage{color}
\usepackage{float}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage[nottoc]{tocbibind}
%\usepackage{esint}
%\usepackage{charter}
%\usepackage[charter]{mathdesign}
\usepackage[footnote,printonlyused,withpage]{acronym}
\usepackage[]{hyperref} % should be last
\usepackage{svg}

% https://tex.stackexchange.com/questions/32047/how-to-remove-the-skip-after-a-listing-when-parskip-is-increased-with-basel
\usepackage{parskip}

%\definecolor{lstbgcolor}{rgb}{0.94,0.94,0.94}
\definecolor{lstbgcolor}{rgb}{1,1,1}

\newcommand{\TT}[1]{\texttt{#1}}

%\newcommand{\TITLE}{Untitled/unsorted collection of math notes}
%\newcommand{\TITLE}{Unsorted mathematical notes}
%\newcommand{\TITLE}{Mathematical notes}
\newcommand{\TITLE}{Mathematics $\bigcap$ programming}
\newcommand{\AUTHOR}{Dennis Yurichev}

\newcommand{\HeaderColor}{\cellcolor{blue!25}}

\hypersetup{
    pdftex,
    colorlinks=true,
    allcolors=blue,
    pdfauthor={\AUTHOR},
    pdftitle={\TITLE},
    pdfpagemode=None
}

\iffalse
\lstset{
    backgroundcolor=\color{lstbgcolor},
    basicstyle=\ttfamily, 
    breaklines=true,
    frame=single,
    columns=fullflexible,keepspaces,
}
\fi

\lstset{
    %backgroundcolor=\color{lstbgcolor},
    %backgroundcolor=\color{light-gray},
    %basicstyle=\ttfamily\small,
    basicstyle=\ttfamily\normalsize,
    %basicstyle=\ttfamily\large,
    %basicstyle=\ttfamily\footnotesize,
    literate={~} {$\sim$}{1},
    breaklines=true, % https://stackoverflow.com/questions/1965702/how-to-mark-line-breaking-of-long-lines
    prebreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\rhookswarrow}},
    postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\rcurvearrowse\space}},
    frame=single,
    %columns=fullflexible,keepspaces,
    columns=keepspaces,
    escapeinside=§§,
    inputencoding=utf8
}

\author{\AUTHOR}
\title{\TITLE}
%\date{August-2015 --- ...}

\input{syntax_color}

% https://tex.stackexchange.com/questions/5148/how-can-i-change-the-font-size-in-math-equations
% \DeclareMathSizes{12}{12}{12}{12}

\begin{document}

% fancyhdr =============================================================================================================================
\pagestyle{fancy}
\setlength{\headheight}{13pt}
% https://tex.stackexchange.com/questions/10043/page-number-position
\fancyhf{}
\fancyhead[R]{\thepage} % suppress chapter name, add page number (upper right corner)

%\ifdefined\ENGLISH
\cfoot{\small If you enjoy the material on this page, found it interesting/useful, please
  \href{https://yurichev.com/tmp/stat.txt?book=M4P&date=\today&page=\thepage}{click here}.
I need this for statistics and feedback.
If you noticed a typo/bug/error or have any suggestions, do not hesitate to drop me a note:
\href{https://yurichev.com/contact.html}{my emails}.
Thanks in advance!\normalsize}
% https://tex.stackexchange.com/questions/13406/how-to-add-a-horizontal-line-above-the-footer-with-fancyhdr
\renewcommand{\footrulewidth}{0.4pt}
%\fi

% ======================================================================================================================================

% http://tex.stackexchange.com/questions/32160/new-line-after-paragraph
\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}
\newcommand{\mysubparagraph}[1]{\subparagraph{#1}\mbox{}\\}

\input{myheadings}

\newcommand{\myhrule}{\begin{center}\rule{0.5\textwidth}{.4pt}\end{center}}
%\input{1st_page}

% \newcommand{\RepoURL}{https://math.recipes/current_tree}
\newcommand{\MakeURL}[1]{\href{https://xn--mxacd.xn--qxam/#1}{https://αβγ.ελ/#1}}
\newcommand{\RepoPath}{current\_tree}

\newcommand{\WolframStyle}{none}
\newcommand{\WolframOutputStyle}{none}

\newcommand{\SSBE}{``SAT/SMT by Example''\footnote{\url{https://sat-smt.codes/}}}
\newcommand{\REBK}{``Reverse Engineering for Beginners''\footnote{\url{https://beginners.re/}}}

\newcommand{\LstStyle}{none}

\newenvironment{my_quote}{%
\begin{oframed}%
\begin{quote}%
\small}{\normalsize%
\end{quote}%
\end{oframed}}

\begin{titlepage}
\input{cover}
\end{titlepage}
\maketitle

\tableofcontents

\section*{What is this?}

This a collection of notes gathered here with an aim to offload my other books (\REBK and \SSBE) from mathematical theory,
which still can be of interest for a general audience of programmers.

It can be said, this is a \textit{companion book}.

Also, random posts from my blog.

So, nothing special.

Started in August-2015.

\section*{What's with the title?}

$\bigcap$ means \textit{intersection} in set theory.

\section*{Thanks}

Henry Legge.

\section*{Latest version}

Latest version is always available at
\url{https://αβγ.ελ/} or\\
\url{https://xn--mxacd.xn--qxam/}.

\mainmatter

\newcommand{\CURPATH}{}

% chapters
\input{parts}

\end{document}
