Newer
Older
\newcommand\sideBySide[2]{
\end{multicols}
\vspace{-1em}
\begin{tcolorbox}[sidebyside,bicolor,colback=white,colbacklower=black!5!white]
\tcblower
{\it #2}
\end{tcolorbox}
\ifstrequal{#1}{b}{%
\bigLine
}{}
\begin{multicols}{2}
#2
\vfill\null
\columnbreak
#3
\end{multicols}
\ifstrequal{#1}{t}{%
\bigLine
}{}
\rowcolors{2}{}{gray!10}\needspace{2em}
\par\noindent
\newenvironment{nametable}[2][cL]
{
\rowcolors{2}{}{gray!10}\needspace{3em}
\begin{center}\flourish~\titleFont\textbf{#2}~\flourish\end{center}
\par\noindent
\tabularx{\linewidth}{#1}
\hline
}%
{
\hline
\endtabularx
\newtcolorbox{wideTable}[2][cX]{
tabularx=#1,
float*=h!,
ornamented,
adjusted title=#2,
bottom=1em,
top=-1pt,
left=3pt,
right=6pt,
code={\rowcolors{2}{}{gray!10}\needspace{1em}}
}
%%%%%%%%%%%%%%%%%%% COMMANDS %%%%%%%%%%%%%%%%%%%%
\newcommand{\story}[2]{%
\subsubsection[#2]{The #2\\\hint{Cost: #1}}%
\index{#2 (Story)}%
\newcommand{\startingCondition}[1]{
\ifnum\value{list}<95
\item
#1
\fi
}
\newcommand\mapArea[3][]{
\ifglsentryexists{#1}{
\subsection[#3]{\glsentrytext{#1}~#3~\glsentrytext{#1}}
\label{#2}
}{
\subsection{#3}
\label{#2}
}
}
\arabic{list}: \ifdefmacro{#2}{#2}{\MakeUppercase#2}%
\newcommand\declareSQareas[1]{
\foreach \area in {sq,#1}%
{\startcontents[\area]
\stopcontents[\area]}
}
% the first side quest gets a ticked box in the toc.
% the rest get an empty box, so the GM can tick it once it's ready.
\newtoggle{firstsq}
\settoggle{firstsq}{true}
\newcommand{\sqtoc}{\printcontents[\sqarea]{l}{2}{\section*{Summaries}\setcounter{tocdepth}{3}}}
% Change the to depth from 2 to 3 in order to output a miniature table of contents on all side quests
\begin{figure*}[t]
\begin{tcolorbox}[ornamented,adjusted title={Summary: \sqName}]
\vspace{-1em}
\printcontents[sq]{l}{2}{\setcounter{tocdepth}{3}}
\end{tcolorbox}
\end{figure*}
\newcommand{\sidequest}[2][]{%
\stopcontents[sq]
\foreach \area in {#1}%
{\resumecontents[\area]}
%%%%%%%%%%%%%
\renewcommand{\sqName}{#2}
\foreach \area in {#1}%
{\stopcontents[\area]}
\startcontents[sq]
\refstepcounter{sqNo}
\resumecontents[#1]
\subsubsection[%
\stopcontents[#1]\settoggle{firstsq}{false}
}
\titlecontents*{lsubsection}[0pt]
{\large\raggedright}{}{}
{}[][]
\newcommand\printAllSideQuests[1]{
\foreach \x in {#1}{
\center\subsection*{\x}
\printcontents[\x]{l}{2}{\setcounter{tocdepth}{3}}
}
}
\newcommand\hint[1]{%
\iftoggle{examplecharacter}{}%
{\small\textcolor{gray}{(#1)}}
}