\begin{example}[tcb options]{title}
, code followed by output, numbered\begin{example*}[tcb options]{title}
, unnumbered variant
Typical configured usage
- side by side,
\begin{example}[sidebyside]{title}
- change code language,
\begin{example}[minted options app={language=python}]{title}
- direct dependencies:
tcolorbox
, with librarieshooks
,minted
,skins
andxparse
loadedaccsupp
- environments are based on
tcolorbox
'sminted
library,-shell-escape
required - added
\emptyaccsupp
tcolorbox
optionsexample options
andexample title
- modified
\theFancyVerbLine
\printDef{csname}
, print definition of\cs{csname}
\printAndRunCode{code}
- direct dependencies:
fvextra
xcolor
with no package options
- added
\toString
\pgfkeys{<key>/.patch={<search>}{<replace>}}
\pgfkeyspatchvalue{<key path>}{<search>}{<replace>}
- direct dependency:
xpatch
- after
<key>/.store in=<macro>
(or.estore in
), handlers.get
,.add
,.prefix
, and.append
will act on<macro>
, not the key itself
<macro>
is stored in new subkey.@store
, which will be cleared by.initial
- for the above four handlers,
.@store
has higher precedence than the key itself (set by.initial
)
\autonameref{<label key>}
and\autonameref*{<label key>}
- 1-arg
\HyRef@autonameref@style
which controls the extra output style (see test file)
- direct dependency:
hyperref
\HyRef@autonameref
and\HyRef@autonamesetref