[spec/methods] formatting fixes
[notes.git] / methods / methods-collated.tex
index 4a0403a6248f93e03ae0378cc2e6c106cda9b30e..b7accd12f1a571031926ac971b9abe565108ed05 100644 (file)
@@ -7,9 +7,10 @@
 \usepackage{dblfloatfix}
 \usepackage{enumitem}
 \usepackage{fancyhdr}
-\usepackage[a4paper,margin=2cm]{geometry}
+\usepackage[a4paper,margin=1.8cm]{geometry}
 \usepackage{graphicx}
 \usepackage{harpoon}
+\usepackage{keystroke}
 \usepackage{listings}
 \usepackage{makecell}
 \usepackage{mathtools}
@@ -96,8 +97,8 @@
 \definecolor{peach}{HTML}{e6beb2}
 \definecolor{lblue}{HTML}{e5e9f0}
 
-\newtcolorbox{cas}{colframe=cas!75!black, title=On CAS, left*=3mm}
-\newtcolorbox{warning}{colback=white!90!black, leftrule=3mm, colframe=important, coltext=important, fontupper=\sffamily\bfseries}
+\newtcolorbox{cas}{colframe=cas!75!black, fonttitle=\sffamily\bfseries, title=On CAS, left*=3mm}
+\newtcolorbox{warning}{colback=white!90!black, leftrule=3mm, colframe=important, coltext=darkgray, fontupper=\sffamily\bfseries}
 \newtcolorbox{theorembox}[1]{colback=green!10!white, colframe=blue!20!white, coltitle=black, fontupper=\sffamily, fonttitle=\sffamily, #1}
 
 
 \subsection*{One to one functions}
 
 \begin{itemize} \tightlist
-  \item
-    \(f(x)\) is \emph{one to one} if \(f(a) \ne f(b)\) if
-    \(a, b \in \operatorname{dom}(f)\) and \(a \ne b\)\\
-    \(\implies\) unique \(y\) for each \(x\) (\(\sin x\) is not 1:1,
-    \(x^3\) is)
-  \item
-    horizontal line test
-  \item
-    if not one to one, it is many to one
+  \item \(f(x)\) is 1:1 if \(f(a) \ne f(b) \> \forall \>\{a,b\} \in \operatorname{dom}(f)\) \\
+        \(\implies\) unique \(y\) for each \(x\)
+  \item e.g. \(\sin x\) is not 1:1, \(x^3\) is
+  \item horizontal line test
+  \item if not one to one, it is many to one
 \end{itemize}
 
 \subsection*{Odd and even functions}
@@ -258,8 +255,10 @@ For \(x^n\), parity of \(n \equiv\) parity of function
       \begin{figure*}[ht]
         \centering
 
-        \begin{tabularx}{\textwidth}{r|Y|Y}
+        \begin{tabularx}{\textwidth}{|r|Y|Y|}
 
+          \hline
+          \rowcolor{lblue}
           & \(n\) is even & \(n\) is odd \\ \hline
 
           \centering \(x^n, n \in \mathbb{Z}^+\) &