diff --git a/preamble.tex b/preamble.tex index b54cd4bff8f6706d4acc8016e688ea91368e3efa..bc1b3082a88a698be1c836e1ab9229cfdc510829 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}}