diff --git a/layout.sty b/layout.sty index c1ac492f37c5cc4e120a6c92fc59445e99538f57..b6f5f49ed1943638d3a88a207505b03bddfbb54f 100644 --- a/layout.sty +++ b/layout.sty @@ -633,7 +633,12 @@ Roll & Result \\ \it}{\normalfont\vspace{2em}} -\newtcolorbox{xpchart}[1]{tabularx={l|p{.8\textwidth}},adjusted title=XP Rewards for #1,bottom=10pt} +\newtcolorbox{xpchart}[1]{tabularx={l|p{.8\textwidth}},adjusted title=XP Rewards for #1, + bottom=10pt, + left=3pt, + right=3pt, + code={\rowcolors{3}{}{gray!10}} + } % this shows encounters, and the two counters below show the encounter number @@ -642,6 +647,8 @@ Roll & Result \\ adjusted title=Encounters in #1, tabularx={XXp{.6\textwidth}}, bottom=10pt, + left=3pt, + right=3pt, code={\rowcolors{2}{}{gray!10}\setcounter{enc}{19}\setcounter{list}{18}}} \newcommand{\li}{\addtocounter{enc}{-1}\arabic{enc}&} @@ -650,13 +657,21 @@ Roll & Result \\ \newtcolorbox{rollchart}{ tabularx={p{.25\linewidth}X}, top=10pt, - bottom=10pt} + bottom=10pt, + left=3pt, + right=3pt, + code={\rowcolors{2}{}{gray!10}} + } \newtcolorbox{xpbox}[1]{ tabularx={lX}, bottom=10pt, + left=3pt, + right=3pt, top=10pt, - equal height group=#1} + code={\rowcolors{2}{}{gray!10}}, + equal height group=#1 + } %%%%%%%%%%%%%%%%%%% COMMANDS %%%%%%%%%%%%%%%%%%%% diff --git a/test.tex b/test.tex index f4fffe6b1916cfa95beae0f86d2a23b4cd36164c..429138090c3b82fdd0c6051bf3ba03c36c93ec9a 100644 --- a/test.tex +++ b/test.tex @@ -95,7 +95,6 @@ Roll & Result \\\hline +4 & 50 \\ \end{xpbox} - \subsection{And further more\ldots} \lipsum[10]