\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{amsfonts} \usepackage{listings} \usepackage{epigraph} \usepackage{url} \usepackage[cm]{fullpage} \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 collection of math notes} \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, 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 BTW, I'm teaching: \url{https://yurichev.com/news/20210109_teaching/}. \normalsize} %\cfoot{\small Please become my patron, so I can spend more time writing this: \href{http://link.yurichev.com/17402?\today p.\thepage}{patreon.com}. Thanks!\normalsize} %\cfoot{\small If you noticed a typo, error or have any suggestions, do not hesitate to drop me a note: \href{https://yurichev.com/contact.html}{my emails}. Thanks!\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{\MakeURL}[1]{foo #1 bar} \newcommand{\RepoPath}{current\_tree} %\newcommand{\RepoPath}{haha} \newcommand{\SSBE}{``SAT/SMT by Example''\footnote{\url{https://sat-smt.codes/}}} \newcommand{\REBK}{``Reverse Engineering for Beginners''\footnote{\url{https://beginners.re/}}} \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. \iffalse \section*{Test} \MakeURL{\RepoPath/haha} \newcommand{\CURPATH}{unsorted/mandel} %\MakeURL{\RepoPath/\CURPATH/dump_iterations.exe} \MakeURL{\RepoPath{}dump\_iterations.exe} \url{https://αβγ.ελ/test} \href{https://αβγ.ελ/test}{https://αβγ.ελ/test} αβγ.ελ \fi \iffalse \section*{Please support my work} So that I can continue on writing: \url{https://www.patreon.com/yurichev}. \fi \section*{Thanks} Henry Legge. %Thanks to those who helped: Slava ``Avid'' Kazakov, Serhiy Matviychuk. \mainmatter \newcommand{\CURPATH}{} % chapters \input{parts} \end{document}