From 6391bf19f9c11a1503ba3e77124af9f54a1c55ea Mon Sep 17 00:00:00 2001
From: Dmytro Bogatov <dmytro@dbogatov.org>
Date: Wed, 15 Nov 2017 21:34:57 -0500
Subject: [PATCH] Add watermark.

---
 .vscode/tasks.json    |  8 ++++----
 main.tex              | 12 +-----------
 packages.tex          |  4 +++-
 preamble.tex          | 12 ++++++++++++
 sections/appendix.tex |  7 -------
 5 files changed, 20 insertions(+), 23 deletions(-)
 delete mode 100644 sections/appendix.tex

diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 141e2e2..494b29c 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -6,7 +6,7 @@
 		{
 			"label": "Compile once notes",
 			"type": "shell",
-			"command": "./build.sh -i 1 -n",
+			"command": "./build.sh -g -i 1 -n",
 			"group": {
 				"kind": "build",
 				"isDefault": true
@@ -22,7 +22,7 @@
 		{
 			"label": "Compile multiple notes",
 			"type": "shell",
-			"command": "./build.sh -n",
+			"command": "./build.sh -g -n",
 			"group": "build",
 			"presentation": {
 				"echo": true,
@@ -48,7 +48,7 @@
 		{
 			"label": "Compile once",
 			"type": "shell",
-			"command": "./build.sh -i 1",
+			"command": "./build.sh -g -i 1",
 			"group": "build",
 			"presentation": {
 				"echo": true,
@@ -61,7 +61,7 @@
 		{
 			"label": "Test chktex and cspell",
 			"type": "shell",
-			"command": "./build.sh -t",
+			"command": "./build.sh -g -t",
 			"group": {
 				"kind": "test",
 				"isDefault": true
diff --git a/main.tex b/main.tex
index f6c0548..03d4aa7 100644
--- a/main.tex
+++ b/main.tex
@@ -43,11 +43,7 @@
 	\input{sections/applications-and-extensions}
 	\input{sections/conclusion}
 
-	\begin{frame}[standout]
-
-		Questions?
-
-	\end{frame}
+	\maketitle
 	
 	\begin{frame}[allowframebreaks]{References}
 		
@@ -55,10 +51,4 @@
 
 	\end{frame}
 	
-	\maketitle
-	
-	\appendix
-
-	\input{sections/appendix}
-
 \end{document}
diff --git a/packages.tex b/packages.tex
index c684452..83d525c 100644
--- a/packages.tex
+++ b/packages.tex
@@ -15,4 +15,6 @@
 	backend=biber,
 	style=alphabetic,
 	sorting=ynt
-]{biblatex}
+	]{biblatex}
+	
+\usepackage[printwatermark]{xwatermark}
diff --git a/preamble.tex b/preamble.tex
index 951e5eb..2c6a9bc 100644
--- a/preamble.tex
+++ b/preamble.tex
@@ -67,3 +67,15 @@
 }{%
 	\bibstring[\emph]{andothers}%
 }{}{}
+
+\ifrelease%
+	\newsavebox\watermark%
+	\savebox\watermark{\tikz[color=gray,opacity=0.02]\node{\begin{tabular}{c} Dmytro Bogatov \\ BU Class of 2023 \end{tabular}};}
+	\newwatermark*[
+		allpages,
+		angle=0,
+		scale=3,
+		xpos=0,
+		ypos=-25
+	]{\usebox\watermark}
+\fi
diff --git a/sections/appendix.tex b/sections/appendix.tex
deleted file mode 100644
index 776314d..0000000
--- a/sections/appendix.tex
+++ /dev/null
@@ -1,7 +0,0 @@
-\begin{frame}{Appendix slide}
-
-	\begin{block}{Definition}
-		Appendix.
-	\end{block}
-
-\end{frame}
-- 
GitLab