From 9f2f08bebaf18a28908f3dea1a721725a09b6e2e Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@tutamail.com>
Date: Tue, 16 Feb 2021 15:59:46 +0100
Subject: [PATCH] add commands for top and bottom border images

---
 bind.sty | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/bind.sty b/bind.sty
index 638d8af4..e2c59fa8 100644
--- a/bind.sty
+++ b/bind.sty
@@ -249,6 +249,19 @@ bookmarks=true]%
 	\end{figure*}
 }
 
+\newcommand{\toppicBorder}[2]{
+	\begin{figure*}[t!]
+		\begin{tcolorbox}[colframe=black,colback=gray]
+		\IfFileExists{images/#1.svg}{
+			\includesvg[width=\textwidth]{images/#1}
+		}{
+			\includegraphics[width=\textwidth]{images/#1.jpg}
+		}
+		#2
+		\end{tcolorbox}
+	\end{figure*}
+}
+
 \newcommand{\bottompic}[2]{
 	\begin{figure*}[b!]
 		\IfFileExists{images/#1.svg}{
@@ -260,6 +273,19 @@ bookmarks=true]%
 	\end{figure*}
 }
 
+\newcommand{\bottompicBorder}[2]{
+	\begin{figure*}[b!]
+		\begin{tcolorbox}[colframe=black,colback=gray]
+		\IfFileExists{images/#1.svg}{
+			\includesvg[width=\textwidth]{images/#1}
+		}{
+			\includegraphics[width=\textwidth]{images/#1.jpg}
+		}
+		#2
+		\end{tcolorbox}
+	\end{figure*}
+}
+
 \colorlet{chapnumcol}{black!100}
 
 %%%%% Section Formatting %%%%%
-- 
GitLab