From 2b0c7abf35781c846feee68e068831127f90d93a Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Wed, 20 Jul 2022 04:15:32 +0200 Subject: [PATCH] fix xpbox shading --- layout.sty | 2 +- test.tex | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/layout.sty b/layout.sty index 41fe4dfe..9a4d5cb3 100644 --- a/layout.sty +++ b/layout.sty @@ -639,7 +639,7 @@ Roll & Result \\ \newtcolorbox{rollchart}{tabularx={p{.25\linewidth}X},top=10pt,bottom=10pt} -\newtcolorbox{xpbox}[1]{tabularx={lc},bottom=10pt,top=10pt,equal height group=#1} +\newtcolorbox{xpbox}[1]{tabularx={lX},bottom=10pt,top=10pt,equal height group=#1} %%%%%%%%%%%%%%%%%%% COMMANDS %%%%%%%%%%%%%%%%%%%% diff --git a/test.tex b/test.tex index f9fe1036..f4fffe6b 100644 --- a/test.tex +++ b/test.tex @@ -81,6 +81,21 @@ Roll & Result \\\hline \lipsum[7] +\begin{xpbox} + Attribute Level & Cost \\\hline + + Buy off negative & 5 \\ + + +1 & 10 \\ + + +2 & 20 \\ + + +3 & 30 \\ + + +4 & 50 \\ +\end{xpbox} + + \subsection{And further more\ldots} \lipsum[10] -- GitLab