From 425f7f8bd8dfdc0fd7a1a87b727063dd223a70c2 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@tutamail.com>
Date: Sat, 5 Sep 2020 19:49:47 +0200
Subject: [PATCH] add individual sidequest summaries

---
 preamble.tex | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/preamble.tex b/preamble.tex
index b54cd4bf..bc1b3082 100644
--- a/preamble.tex
+++ b/preamble.tex
@@ -353,9 +353,27 @@ Roll & Result \\
 \newcommand{\sqtoc}{\printcontents[\sqarea]{l}{2}{\section*{Summaries}\setcounter{tocdepth}{3}}}
 
 % Change the tocdepth from 2 to 3 in order to output a miniature table of contents on all side quests
-\newcommand{\sqminitoc}{\printcontents[sq]{l}{2}{\setcounter{tocdepth}{2}}}
+\newcommand{\sqminitoc}{
+
+	\begin{figure*}[t]
+	
+	\begin{tcolorbox}[adjusted title={Summary: \sqName}]
+	
+	\printcontents[sq]{l}{2}{\setcounter{tocdepth}{3}}
+	
+	\end{tcolorbox}
+	
+	\end{figure*}
+}
+
+\newcommand{\sqName}{}
 
-\newcommand{\sidequest}[1]{\resumecontents[\sqarea]\subsection[#1]{#1}\stopcontents[\sqarea]\settoggle{firstsq}{true}}
+\newcommand{\sidequest}[1]{\renewcommand{\sqName}{#1}
+	\resumecontents[\sqarea]
+	\subsection{\sqName}
+	\stopcontents[\sqarea]
+	\settoggle{firstsq}{true}
+}
 
 \newcommand{\sqpart}[3]{\resumecontents[#1]\subsubsection[\iftoggle{firstsq}{\CheckedBox}{\Square} #2 -- #3]{(#1) #2}\stopcontents[#1]\settoggle{firstsq}{false}}
 
-- 
GitLab