Skip to content
Snippets Groups Projects
Commit 425f7f8b authored by Malin Freeborn's avatar Malin Freeborn
Browse files

add individual sidequest summaries

parent 93b5c10a
No related branches found
No related tags found
No related merge requests found
......@@ -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}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment