diff --git a/docs.tex b/docs.tex index 89d9d54b7de8bb070d536ca7aa0cd04208c2dea5..6f1c2c087d4252ddb0f614d6972a35c7f610fefd 100644 --- a/docs.tex +++ b/docs.tex @@ -263,6 +263,17 @@ An optional argument allows default size changes for the words, and as usual wor \begin{multicols}{2} +\boxPair{ + \subsubsection{Box Pairs} + This is the \texttt{\textbackslash boxPair} command. + It lets a pair of anything sit at the bottom of the page. + The first argument sits in the left column, and the next in the right. + + The command works well if you have a creature box, like this griffin. +}{ + \griffin +} + \subsection{Weapon Commands} The \verb"\weapon{Name}{1}{2}" command works in 2 ways. @@ -412,7 +423,6 @@ And charts about roll successes like this: \end{rollchart} - \subsection{Making Maps} Make all maps under some subsection, then start the individual map entry like this: \verb"\mapentry[docGift]{Documentation Giftschrank}". diff --git a/layout.sty b/layout.sty index be9f56527fa833a0457833209a112de071754713..098cd64d8186d22ec956fb6d842e6eca71f9a5f2 100644 --- a/layout.sty +++ b/layout.sty @@ -599,6 +599,10 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) } +\newcommand\bigLine{% + \textcolor{\pageSideColor}{\ifodd\value{page}\raisebox{-3pt}{\Large\hspace{0.1em}\decothreeright}\fi\hrulefill\ifodd\value{page}\else\raisebox{-3pt}{\Large\hspace{-0.1em}\decothreeleft}\fi}% +} + %%%%% NPC Names \newcommand{\name}{} @@ -839,12 +843,18 @@ Roll & Result \\ \newcommand\boxPair[3][b]{ \begin{figure*}[#1!] + \ifstrequal{#1}{b}{% + \bigLine + }{} \begin{multicols}{2} #2 \vfill\null \columnbreak #3 \end{multicols} + \ifstrequal{#1}{t}{% + \bigLine + }{} \end{figure*} } diff --git a/test.tex b/test.tex index d74bf1056587fde992ad0dcb8dc525f331fb051b..1b0f6954b5dd693a778c28de6f0bbb3227b73801 100644 --- a/test.tex +++ b/test.tex @@ -246,6 +246,17 @@ This section is non-verbose, so only basic stats are shown. \archmage +\boxPair[t]{ + \subsubsection{Box Pairs} + This is the \texttt{\textbackslash boxPair} command. + It lets a pair of anything sit at the bottom of the page. + The first argument sits in the left column, and the next in the right. + + The command works well if you have a creature box, like this lava-man. +}{ + \lavaman +} + \dragon \rockman @@ -433,6 +444,17 @@ When using a bestiary chapter, the stats appear as dice rolls, rather than fixed \lipsum[2] +\boxPair[t]{ + \subsubsection{Box Pairs} + This is the \texttt{\textbackslash boxPair} command. + It lets a pair of anything sit at the bottom of the page. + The first argument sits in the left column, and the next in the right. + + The command works well if you have a creature box, like this griffin. +}{ + \griffin +} + \subsection{Test subsection} \settoggle{allyCharacter}{true}