Vous êtes sur la page 1sur 1

\DeclareTotalTCBoxFit[hinit optionsi]{\hnamei}{hspecificationi}{hoptionsi}{hcontenti}

Creates a new command \hnamei based on \tcboxfitÕ P. 411 . In contrast to


\DeclareTCBoxFit Õ P. 445 , also the hcontenti of the tcboxfit is specified.
Basically, \DeclareTotalTCBoxFit operates like \DeclareDocumentCommand. This means,
the new command \hnamei is constructed with the given argument hspecificationi. The
hoptionsi are given to the underlying \tcboxfitÕ P. 411 which is filled with the specified
hcontenti.
Note that /tcb/savedelimiterÕ P. 26 is set to the given hnamei automatically.
The hinit optionsi allow setting up automatic numbering, see Section 5 from page 108.
The new command is always created, irrespective of an already existing command with the
same name.
% \usepackage{lipsum}

\DeclareTotalTCBoxFit{\multibox}{ O{} m O{10} m }


{nobeforeafter,colback=red!5!white,colframe=red!75!black,width=#2,height=#2/3*2,
valign=center,#1}
{ \foreach \n in {1,...,#3} { #4} }

\multibox{5cm}{I shall not repeat.}


\multibox[colframe=blue!75!white]{5cm}[20]{I shall not repeat.}\\
\multibox[colback=yellow,height=5cm]{14cm}[100]{I shall not repeat.}

I shall not repeat. I shall I shall not repeat. I shall not repeat.
I shall not repeat. I shall not repeat.
not repeat. I shall not re- I shall not repeat. I shall not repeat.
peat. I shall not repeat. I I shall not repeat. I shall not repeat.
I shall not repeat. I shall not repeat.
shall not repeat. I shall not I shall not repeat. I shall not repeat.
repeat. I shall not repeat. I I shall not repeat. I shall not repeat.
I shall not repeat. I shall not repeat.
shall not repeat. I shall not I shall not repeat. I shall not repeat.
repeat. I shall not repeat. I shall not repeat. I shall not repeat.

I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat. I
shall not repeat. I shall not repeat. I shall not repeat. I shall not repeat.

\NewTotalTCBoxFit[hinit optionsi]{\hnamei}{hspecificationi}{hoptionsi}{hcontenti}
Operates like \DeclareTotalTCBoxFit, but based on \NewDocumentCommand instead of
\DeclareDocumentCommand. An error is issued if \hnamei has already been defined.
\RenewTotalTCBoxFit[hinit optionsi]{\hnamei}{hspecificationi}{hoptionsi}{hcontenti}
Operates like \DeclareTotalTCBoxFit, but based on \RenewDocumentCommand instead of
\DeclareDocumentCommand. An existing command is redefined.
\ProvideTotalTCBoxFit[hinit optionsi]{\hnamei}{hspecificationi}{hoptionsi}{hcontenti}
Operates like \DeclareTotalTCBoxFit, but based on \ProvideDocumentCommand instead
of \DeclareDocumentCommand. The command \hnamei is only created if it is not already
defined.

446

Vous aimerez peut-être aussi