0% found this document useful (0 votes)
84 views1 page

18.2 Storing Content: /boxarrayreset /consumeboxarray /consumetcboxarray /boxarrayclear

The document discusses the \boxarrayclear command which clears the contents of a box array without freeing allocated registers. It can be useful to clear memory but not free registers for other uses. The document also discusses using the /tcb/store to box array option to store tcolorbox content or parts of a break sequence to a box array. An example is given to demonstrate storing box content and then displaying the boxes side by side.

Uploaded by

jimuso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views1 page

18.2 Storing Content: /boxarrayreset /consumeboxarray /consumetcboxarray /boxarrayclear

The document discusses the \boxarrayclear command which clears the contents of a box array without freeing allocated registers. It can be useful to clear memory but not free registers for other uses. The document also discusses using the /tcb/store to box array option to store tcolorbox content or parts of a break sequence to a box array. An example is given to demonstrate storing box content and then displaying the boxes side by side.

Uploaded by

jimuso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

N 2015-07-13 \boxarrayclear[hnamei]

Works like \boxarrayresetÕ P. 388 to reset the size counter of a box array hnamei to
zero. Additionally, all allocated box registers of the box array are cleared of their con-
tent. Note that the allocated box registers stay allocated. So, this may be useful to clear
memory, but not to free registers for other applications. If \consumeboxarrayÕ P. 392 or
\consumetcboxarrayÕ P. 392 was used to apply the stored boxes, there is no advantage in
using \boxarrayclear.

\boxarrayclear % clears 'default'


\boxarrayclear{myarray} % clears 'myarray'

18.2 Storing Content

N 2015-07-13 /tcb/store to box array=hnamei (default default, initially unset)


Stores a tcolorbox or all parts of a break sequence of a tcolorbox into a box array hnamei.
If no hnamei is given, the already existing default box array is used. Otherwise, the box
array has to be created beforehand with \newboxarrayÕ P. 388 . Note that the box has to be
/tcb/breakableÕ P. 365 , if the box shall break into several parts. Typically, manual break
points are additionally defined by /tcb/break atÕ P. 367 . Otherwise, the box parts will
have a length of about \textheight. For most use cases, a /tcb/reset box arrayÕ P. 388
should be applied to reset the box array counter.

% \usepackage{lipsum}
\begin{tcolorbox}[enhanced jigsaw,size=fbox,width=4cm,
colback=yellow!10,colframe=yellow!10!black,
enforce breakable,% use only breakable in the real world!
break at=7cm/4cm,
height fixed for=all,
watermark text=\arabic{tcbbreakpart},
reset box array,
store to box array
]
\lipsum[1]
\end{tcolorbox}

\useboxarray{1}\hfill
\begin{tabular}[b]{cc}
\multicolumn{2}{c}{\includegraphics[width=7cm]{Basilica_5.png}}\\
\useboxarray{2} & \useboxarray{3}
\end{tabular}

Lorem ipsum dolor sit


amet, consectetuer adip-
iscing elit. Ut purus
elit, vestibulum ut, plac-

1 23
erat ac, adipiscing vi-
tae, felis. Curabitur
dictum gravida mauris.
Nam arcu libero, non-
ummy eget, consectetuer cus sem. Nulla et lectus lor nulla, malesuada eu,
id, vulputate a, magna. vestibulum urna fringilla pulvinar at, mollis ac,
Donec vehicula augue eu ultrices. Phasellus eu tel- nulla. Curabitur auctor
neque. Pellentesque habi- lus sit amet tortor gravida semper nulla. Donec var-
tant morbi tristique senec- placerat. Integer sapien ius orci eget risus. Duis
tus et netus et male- est, iaculis in, pretium nibh mi, congue eu, ac-
suada fames ac turpis eges- quis, viverra ac, nunc. cumsan eleifend, sagittis
tas. Mauris ut leo. Praesent eget sem vel leo quis, diam. Duis eget
Cras viverra metus rhon- ultrices bibendum. Ae- orci sit amet orci dignissim
nean faucibus. Morbi do- rutrum.

389

You might also like