diff --git a/preamble.tex b/preamble.tex index cde548d14de5168331ba864cddaeb89a99673338..38d30d641bc1f548277abf6f889ae1a02e58cf9c 100644 --- a/preamble.tex +++ b/preamble.tex @@ -266,10 +266,16 @@ Roll & Result \\ %%%%% Side Quests -\newcommand{\sidequest}[1]{\resumecontents[\sqarea]\subsection[#1]{#1}\stopcontents[\sqarea]} -\newcommand{\forest}[2]{\resumecontents[forest]\subsubsection[\ding{111} #1 -- #2]{(Forest) #1}\stopcontents[forest]} -\newcommand{\town}[2]{\resumecontents[town]\subsubsection[\ding{111} #1 -- #2]{(Town) #1}\stopcontents[town]} -\newcommand{\villages}[2]{\resumecontents[villages]\subsubsection[\ding{111} #1 -- #2]{(Villages) #1}\stopcontents[villages]} +\newtoggle{firstsq} +\settoggle{firstsq}{true} + +\newcommand{\sqtoc}{\printcontents[\sqarea]{l}{2}{\section*{Summaries}\setcounter{tocdepth}{3}}} + +\newcommand{\sidequest}[1]{\resumecontents[\sqarea]\subsection[#1]{#1}\stopcontents[\sqarea]\settoggle{firstsq}{true}} + +\newcommand{\forest}[2]{\resumecontents[forest]\subsubsection[\iftoggle{firstsq}{\CheckedBox}{\ding{111}} #1 -- #2]{(Forest) #1}\stopcontents[forest]\settoggle{firstsq}{false}} +\newcommand{\town}[2]{\resumecontents[town]\subsubsection[\iftoggle{firstsq}{\CheckedBox}{\ding{111}} #1 -- #2]{(Town) #1}\stopcontents[town]\settoggle{firstsq}{false}} +\newcommand{\villages}[2]{\resumecontents[villages]\subsubsection[\iftoggle{firstsq}{\CheckedBox}{\ding{111}} #1 -- #2]{(Villages) #1}\stopcontents[villages]\settoggle{firstsq}{false}} \newcommand{\lowercollege}[1]{\subsubsection{(\ding{170} Lower College) #1}} \newcommand{\uppercollege}[1]{\subsubsection{(\ding{171} Upper College) #1}}