Closed muzimuzhi closed 9 months ago
I think the current behavior is not especially intended. I am not sure, if a global every box
setting of a capture
mode is a good idea, and, maybe, therefore I paid not attention to such a possibility until now.
Nevertheless, changing the code as you have proposed should do no harm to existing documents. So, I will do this (and also for \tcb@ox
) for the next version.
I am not sure, if a global
every box
setting of acapture
mode is a good idea
May be only handy in small document for testing. :)
For
tcolorbox
environment, in\tcb@@icolorbox
every box
styles,every box on layer <n>
orevery box on higher layers
are used by\tcb@layer@inc
.\tcb@apply@box@options{capture=minipage,#1}
. https://github.com/T-F-S/tcolorbox/blob/6d98db4263c612279cca47efde22d1ef8404e573/tex/latex/tcolorbox/tcolorbox.sty#L1390-L1395For
\tcbox
and\tcboxfit
, similar capture mode overwriting happen in\tcb@ox
, where its#1
, a comma-separated style list starting withcapture=hbox|fitbox
, is applied after\tcb@layer@inc
.This is a long-existing behavior, so long that it's reproducible with Overleaf's TeX Live 2014 mirror. If classified as a feature, only documentation refinement is needed.