From 406cd62e6c18587b2859bf77434527f2ac87027d Mon Sep 17 00:00:00 2001
From: syn <isaqtm@gmail.com>
Date: Sun, 12 Apr 2020 13:09:33 +0300
Subject: Separate math macros & document styles

---
 intro.tex | 61 ++++++++++++-------------------------------------------------
 1 file changed, 12 insertions(+), 49 deletions(-)

(limited to 'intro.tex')

diff --git a/intro.tex b/intro.tex
index 3709688..2281906 100644
--- a/intro.tex
+++ b/intro.tex
@@ -1,29 +1,30 @@
 \usepackage[sfdefault,condensed,scaled=0.9]{roboto}
-\usepackage{inconsolata}
-\setmonofont[Scale=0.9]{Inconsolata}
+%\usepackage[T2A]{fontenc}
+%\usepackage{inconsolata}
+%\setmonofont[Scale=0.9]{Inconsolata}
 
 \setlength\headheight{13.6pt}
 
 \usepackage{
   amsmath, amssymb, mathtools, relsize,
   graphicx, xcolor,
-  fancyhdr, hyperref, enumerate, framed
+  fancyhdr, hyperref, enumerate
 }
 \usepackage[shortlabels]{enumitem}
+\usepackage{mathshit}
 
 \flushbottom
 
 \renewcommand{\baselinestretch}{1.1}
 
-\usepackage{geometry}\geometry{letterpaper,          % Set page margins
-    left=0.7in, right=0.7in,
-    top=0.8in, bottom=0.9in,
+\usepackage{geometry}
+\geometry{
+    b5paper,
+    left=0.4in, right=0.4in,
+    top=0.5in, bottom=0.6in,
     headsep=.1in
 }
 
-\setlength\FrameSep{0.75em}
-\setlength\OuterFrameSep{\partopsep}
-
 \newenvironment{cframed}[1][gray]
 {
     \def\FrameCommand{
@@ -35,24 +36,6 @@
 }
 {\endMakeFramed}
 
-\makeatletter
-\newenvironment{sqcases}{%
-  \matrix@check\sqcases\env@sqcases
-}{%
-  \endarray\right.%
-}
-\def\env@sqcases{%
-  \let\@ifnextchar\new@ifnextchar
-  \left\lbrack
-  \def\arraystretch{1.2}%
-  \array{@{}l@{\quad}l@{}}%
-}
-\makeatother
-
-\DeclareRobustCommand{\divby}{%
-  \mathrel{\vbox{\baselineskip.65ex\lineskiplimit0pt\hbox{.}\hbox{.}\hbox{.}}}%
-}
-
 \newcommand{\question}[2]{
     \bigskip\bigskip
     \begin{cframed}
@@ -61,29 +44,9 @@
     \end{cframed}
 }
 
-\newcommand{\dmquestion}[1]{
-    \begin{center} \textbf{#1} \end{center}
-}
-
-\newcommand{\br}[1]{\left( #1 \right)}
-\newcommand{\brac}[2]{ \br{ \frac{#1}{#2} } }
-\newcommand{\dbrac}[2]{ \br{ \dfrac{#1}{#2} } }
-\newcommand*{\qed}{\hfill\ensuremath{\blacksquare}}
-\newcommand*{\qedempty}{\hfill\ensuremath{\square}}
-
-\newcommand{\explain}[1]{
-    \begin{bmatrix}
-        #1
-    \end{bmatrix}
-}
 
-\newcommand{\probability}[1]{\mathrm{Pr} \left[ #1 \right]}
-\newcommand{\expected}[1]{\mathrm{E} \left[ #1 \right]}
-
-\newcommand{\todo}{\texttt{todo!}}
-
-\newcommand{\osmall}[1]{\overline{o}\left( #1 \right)}
-\DeclareMathOperator{\dif}{d \!}
+\setlength\FrameSep{0.75em}
+\setlength\OuterFrameSep{\partopsep}
 
 \hypersetup{colorlinks=true, linkcolor=magenta}
 
-- 
cgit v1.2.1-18-gbd029

