[spec] clean up
[notes.git] / spec / spec-collated.tex
index 0525085edb4a24ea2b82239d61b478374fc9ce3b..4adcd53d464c205ead2d43104ef40974dc4c6f51 100644 (file)
@@ -1,35 +1,60 @@
 \documentclass[a4paper]{article}
-\usepackage[a4paper,margin=2cm]{geometry}
-\usepackage{multicol}
-\usepackage{dblfloatfix}
-\usepackage{multirow}
+\usepackage[dvipsnames, table]{xcolor}
 \usepackage{amsmath}
 \usepackage{amssymb}
-\usepackage{harpoon}
-\usepackage{tabularx}
-\usepackage{makecell}
-\usepackage{enumitem}
-\usepackage[obeyspaces]{url}
-\usepackage[dvipsnames, table]{xcolor}
 \usepackage{blindtext}
+\usepackage{dblfloatfix}
+\usepackage{enumitem}
+\usepackage{fancyhdr}
+\usepackage[a4paper,margin=2cm]{geometry}
 \usepackage{graphicx}
-\usepackage{wrapfig}
+\usepackage{harpoon}
+\usepackage{import}
+\usepackage{keystroke}
+\usepackage{listings}
+\usepackage{makecell}
+\usepackage{mathtools}
+\usepackage{mathtools}
+\usepackage{multicol}
+\usepackage{multirow}
+\usepackage{pgfplots}
+\usepackage{pst-plot}
+\usepackage{subfiles}
+\usepackage{tabularx}
+\usepackage{tcolorbox}
+\usepackage{tikz-3dplot}
 \usepackage{tikz}
 \usepackage{tkz-fct}
-\usepackage{tikz-3dplot}
-\usepackage{pgfplots}
-\usetikzlibrary{arrows,
-    decorations,
-    decorations.markings,
-    decorations.text,
-    scopes
+\usepackage[obeyspaces]{url}
+\usepackage{wrapfig}
+
+
+\usetikzlibrary{%
+  angles,
+  arrows,
+  arrows.meta,
+  calc,
+  datavisualization.formats.functions,
+  decorations,
+  decorations.markings,
+  decorations.text,
+  decorations.pathreplacing,
+  decorations.text,
+  scopes
 }
-\usetikzlibrary{datavisualization.formats.functions}
-\usetikzlibrary{decorations.markings}
-\usepgflibrary{arrows.meta}
-\usetikzlibrary{decorations.markings}
+
+\newcommand{\midarrow}{\tikz \draw[-triangle 90] (0,0) -- +(.1,0);}
+
 \usepgflibrary{arrows.meta}
-\usepackage{pst-plot}
+\pgfplotsset{compat=1.16}
+\pgfplotsset{every axis/.append style={
+  axis x line=middle,    % put the x axis in the middle
+  axis y line=middle,    % put the y axis in the middle
+  axis line style={->}, % arrows on the axis
+  xlabel={$x$},          % default put x on x-axis
+  ylabel={$y$},          % default put y on y-axis
+}}
+
 \psset{dimen=monkey,fillstyle=solid,opacity=.5}
 \def\object{%
     \psframe[linestyle=none,fillcolor=blue](-2,-1)(2,1)
         \uput[-90]{*0}(0,-2){$\vec{w}$}}
 }
 
-\usetikzlibrary{calc}
-\usetikzlibrary{angles}
-\usetikzlibrary{datavisualization.formats.functions}
-\usetikzlibrary{decorations.markings}
-\usepgflibrary{arrows.meta}
-\usepackage{fancyhdr}
 \pagestyle{fancy}
 \fancyhead[LO,LE]{Year 12 Specialist}
 \fancyhead[CO,CE]{Andrew Lorimer}
-\usepackage{mathtools}
-\usepackage{xcolor} % used only to show the phantomed stuff
+
 \renewcommand\hphantom[1]{{\color[gray]{.6}#1}} % comment out!
-\setlength\fboxsep{0pt} \setlength\fboxrule{.2pt} % for the \fboxes
 \newcommand*\leftlap[3][\,]{#1\hphantom{#2}\mathllap{#3}}
 \newcommand*\rightlap[2]{\mathrlap{#2}\hphantom{#1}}
+\linespread{1.5}
+\setlength{\parindent}{0pt}
+\setlength\fboxsep{0pt} \setlength\fboxrule{.2pt} % for the \fboxes
+
 \newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}%
 \newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}%
+
 \definecolor{cas}{HTML}{e6f0fe}
 \definecolor{important}{HTML}{fc9871}
 \definecolor{dark-gray}{gray}{0.2}
-\linespread{1.5}
-\newcommand{\midarrow}{\tikz \draw[-triangle 90] (0,0) -- +(.1,0);}
+
 \newcommand{\tg}{\mathop{\mathrm{tg}}}
 \newcommand{\cotg}{\mathop{\mathrm{cotg}}}
 \newcommand{\arctg}{\mathop{\mathrm{arctg}}}
 \newcommand{\arccotg}{\mathop{\mathrm{arccotg}}}
-\pgfplotsset{every axis/.append style={
-  axis x line=middle,    % put the x axis in the middle
-  axis y line=middle,    % put the y axis in the middle
-  axis line style={->}, % arrows on the axis
-  xlabel={$x$},          % default put x on x-axis
-  ylabel={$y$},          % default put y on y-axis
-}}
-\usepackage{tcolorbox}
+
 \newtcolorbox{warning}{colback=white!90!black, leftrule=3mm, colframe=important, coltext=important, fontupper=\sffamily\bfseries}
 \newtcolorbox{cas}{colframe=cas!75!black, title=On CAS, left*=3mm}
-\usepackage{keystroke}
-\usepackage{listings}
-\usepackage{mathtools}
-\pgfplotsset{compat=1.16}
-\usepackage{subfiles}
-\usepackage{import}
-\setlength{\parindent}{0pt}
+
 \begin{document}
 
 \begin{multicols}{2}