-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Doc for /tcb/compilable listing says it
Sets
/tcb/listing fileto\jobname-listing-⟨counter⟩.
leaving the ⟨counter⟩ unexplained.
According to the implementation, this ⟨counter⟩ is the \arabic form of tcblisting, a counter used to give each \tcbinputlisting or tcblisting env an unique number.
| compilable listing/.style={listing file={\jobname-listing-\thetcblistingcount.tex}}, |
tcolorbox/tex/latex/tcolorbox/tcblistingscore.code.tex
Lines 273 to 291 in b56e72b
| \newcounter{tcblisting} | |
| \newenvironment{tcblisting}[1]{% | |
| \stepcounter{tcblisting}\edef\thetcblistingcount{\thetcblisting}% | |
| \tcb@layer@pushup% | |
| \tcb@apply@box@options{capture=minipage,#1}% | |
| \begingroup\tcbverbatimwrite{\kvtcb@listingfile}% | |
| }{\endtcbverbatimwrite\endgroup% | |
| \tcbinputlisting@core% | |
| } | |
| \long\def\tcbinputlisting#1{% | |
| \begingroup% | |
| \stepcounter{tcblisting}\edef\thetcblistingcount{\thetcblisting}% | |
| \tcb@layer@pushup% | |
| \tcb@apply@box@options{capture=minipage,#1}% | |
| \tcbinputlisting@core% | |
| \endgroup% | |
| } |
Metadata
Metadata
Assignees
Labels
No labels