Closed Heziode closed 3 months ago
You use \NewTColorBox
with wrong syntax.
This works.
% O{} means one optional argument with empty default value,
% see "texdoc usrguide" for more info
\NewTColorBox{mytablebox}{ O{} }{
callout,
enhanced,
breakable,
colframe=gray-200,
arc=6pt,
colbacktitle=slate-50,
coltitle=gray-500,
toptitle=2mm,
bottomtitle=-2mm,
boxrule=0.25mm,
colupper=gray-800,%
#1% the two percent characters make sure "#1" is NOT surrounded by spaces
}
Thank you,
It works. I only have a strange white line (or cut?) of the box when it goes to the next page:
And the table is not fully displayed The corresponding PDF: nicetab.pdf
You have that "strange white line" with tcolorbox
env too, and it's caused by \captionof
. Setting \captionsetup[table]{font={bf,sf,color=gray-600}, skip=0pt}
solves the problem.
Update: Oh I misunderstood your problem.
This is a bug tracker so for further usage questions Q&A forums like tex.stackexchange.com is preferable.
Ok thank you
I only have a strange white line (or cut?) of the box when it goes to the next page:
Not only the strange white space, but also not all tabular rows are typeset, with a warning
Package tcolorbox Warning: The upper box part has become overfull on input line
131.
Setting \begin{mytablebox}[breakable=false, ...]
works. Since content of a float (here table
environment) cannot contain page breaks, setting breakable=true
for tcolorbox
es in floats will never work and seems to even cause problems.
I am trying to create a custom environment using tabularx.
Here is my code:
Using a
tcbset
to define a style works. However, when I attempt to create a tcolorbox environment using the same styles, I got a compilation error:So the question is: does
\NewTColorBox
should works with tabularx?