-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -346,6 +346,31 @@ \subsection{Lower Part} | |
\end{exdispExample} | ||
\end{docTcbKey} | ||
|
||
|
||
\clearpage | ||
\begin{docTcbKey}[][doc new=2023-07-17]{redirectlowerto}{=\meta{file name}}{no default, initially empty} | ||
This is a combination of \refKey{/tcb/savelowerto} and \refKey{/tcb/lowerbox}|=|\docValue{ignored} | ||
\emph{and additionally} avoids typesetting the content of the lower part. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
This can be useful, if the lower part contains counters or similar. | ||
\begin{exdispExample}{redirectlowerto} | ||
|
||
\setcounter{enumi}{1} | ||
Test counter: \theenumi | ||
|
||
\begin{tcolorbox}[redirectlowerto=\jobname_bspsave.tex,colback=white] | ||
This comment has been minimized.
Sorry, something went wrong.
muzimuzhi
Contributor
|
||
This is a \textbf{tcolorbox}. | ||
\tcblower | ||
This is the lower part.\stepcounter{enumi} | ||
New value of test counter: \theenumi. | ||
\end{tcolorbox} | ||
|
||
Now, we load the saved text:\\ | ||
\input{\jobname_bspsave.tex} | ||
\end{exdispExample} | ||
\end{docTcbKey} | ||
|
||
|
||
|
||
\clearpage | ||
\begin{docTcbKey}{lower separated}{\colOpt{=true\textbar false}}{default |true|, initially |true|} | ||
If set to |true|, the lower part is visually separated from the upper part. | ||
|
Do the docs for
lowerbox
and/orsavelowerto
need a note like "the lower part is always input and composed into a box once, then typeset or dropped accordingly"?Then the deprecated approach once discussed in #240 (comment) and my following comment, introducing a new value for
lowerbox
likelowerbox=totally ignored
, finds its advantage. It makes the typesetting state of lower part solely controlled bylowerbox
.(Feel free to ask for filing a new issue for each of my commit comments. More or less the git diff page just provides a form of emphasis.)
Update: Oh I realized the limitation mentioned in #240 (comment):
lowerbox=ignored totally
has to be implemented based on reading lower part in verbatim. Then the currentredirectlowerto
is understandable.