summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/README1
-rw-r--r--assets/information.pngbin0 -> 334965 bytes
-rw-r--r--assets/reminder.pngbin0 -> 140512 bytes
-rw-r--r--assets/theorem.pngbin0 -> 15693 bytes
-rw-r--r--assets/warning.pngbin0 -> 140512 bytes
-rwxr-xr-xdeploy.sh43
-rw-r--r--template_Mathstuff!.tex6
-rw-r--r--template_Notes.tex (renamed from template_Mathnotes.tex)19
8 files changed, 68 insertions, 1 deletions
diff --git a/assets/README b/assets/README
new file mode 100644
index 0000000..77f17b5
--- /dev/null
+++ b/assets/README
@@ -0,0 +1 @@
+Copy these pictures into /home/{insert username here}/Documents/texassets/
diff --git a/assets/information.png b/assets/information.png
new file mode 100644
index 0000000..a974a8b
--- /dev/null
+++ b/assets/information.png
Binary files differ
diff --git a/assets/reminder.png b/assets/reminder.png
new file mode 100644
index 0000000..88c4d73
--- /dev/null
+++ b/assets/reminder.png
Binary files differ
diff --git a/assets/theorem.png b/assets/theorem.png
new file mode 100644
index 0000000..63e4962
--- /dev/null
+++ b/assets/theorem.png
Binary files differ
diff --git a/assets/warning.png b/assets/warning.png
new file mode 100644
index 0000000..5568c65
--- /dev/null
+++ b/assets/warning.png
Binary files differ
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..3fde734
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+cur=`pwd`
+
+cd ~/
+
+homedir=`pwd`
+
+path="${homedir}/Documents/texassets"
+
+# First we will deploy the texassets directory
+
+echo "Deploying assets folder. This will let you compile the latex templates"
+
+if [[ -f $path ]]
+then
+ echo "Path already exists, exiting"
+ exit
+fi
+
+if [[ -d ${path} ]]
+then
+ echo "Path already exists but is file, copying files"
+else
+ echo "Path does not exist, making new folder and copying files"
+ mkdir ${path}
+fi
+cd $cur
+cp "${cur}/assets/"*.png ${path}
+
+echo "done"
+
+# Now we modify the template files so that they point to the right directory
+
+echo "Modifying the template files"
+
+for file in `ls | grep .tex`
+do
+ sed -r "s/^### Insert graphicspath command here ###/\\\graphicspath {$path}/" -i $file
+done
+
+echo "done"
+
diff --git a/template_Mathstuff!.tex b/template_Mathstuff!.tex
index 73316f5..17363e5 100644
--- a/template_Mathstuff!.tex
+++ b/template_Mathstuff!.tex
@@ -39,6 +39,12 @@
\ifthenelse{\isempty{#3}}{$\text{Let } \epsilon > {#2} \text{ be given}$\\\text{Choose $N = {#1}$\text{ Suppose $n > N$}}}
{$\text{Let } \epsilon > {#2} \text{ be given}$\\\text{Choose $N = {#1}$\text{ Suppose $n > N > {#3}$}}}
}
+\newcommand{\ber}[1]{\text{Bernoulli}({#1})}
+\newcommand{\bin}[2]{\text{Binomial}({#1}, {#2})}
+\newcommand{\geo}[1]{\text{Geometric({#1})}}
+\newcommand{\poi}[1]{\text{Poisson}({#1})}
+\newcommand{\expp}[1]{\text{Exp}({#1})}
+\newcommand{\unif}[1]{\text{Unif}({#1})}
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
diff --git a/template_Mathnotes.tex b/template_Notes.tex
index aa271e5..d5a3eeb 100644
--- a/template_Mathnotes.tex
+++ b/template_Notes.tex
@@ -22,7 +22,7 @@
\usepackage{listings}
\usepackage{color}
\usepackage{xifthen}
-\graphicspath{ {/home/josh/Documents/texassets/} }
+### Insert graphicspath command here ###
\definecolor{dkgreen}{rgb}{0,0.6,0}
%\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{red}{HTML}{ffb3b3}
@@ -42,6 +42,22 @@
} % setting global options for tcolorbox
\makeatletter
+\lstset{frame=tb,
+ language=Java,
+ aboveskip=3mm,
+ belowskip=3mm,
+ showstringspaces=false,
+ columns=flexible,
+ basicstyle={\small\ttfamily},
+ numbers=none,
+ numberstyle=\tiny\color{gray},
+ keywordstyle=\color{blue},
+ commentstyle=\color{dkgreen},
+ stringstyle=\color{mauve},
+ breaklines=true,
+ breakatwhitespace=true,
+ tabsize=3
+}
%My Custom Commands
\newcommand{\mnewline}{\newline\newline\newline}
@@ -137,4 +153,5 @@ includefoot=true,top=19mm,nohead,footskip=12mm,bottom=6mm]{geometry}
{\bf Insert Unit Name here}
\end{center}
\end{TitleBox}
+ \tableofcontents
\end{document}