I want to DIY a environment like the tcolorbox stye:
and I read the docs of tcolorbox and find this:
\begin{docTcbKey}[][doc new=2014-11-28]{no recording}{}{}
Disables \refCom{tcbrecord} and \refKey{/tcb/record} inside the current
group.
\end{docTcbKey}
and the docTcbkey
is define as \tcbmakedocSubKey{docTcbKey}{tcb}
but the doctcbkey
is write latex3:
\NewDocumentCommand \tcbmakedocSubKey { m m }
{
\NewDocumentEnvironment{#1}{ O{} +O{} m m +m }
{
\__tcobox_doc_entry_begin:nnn
{
doc@sub@keypath=#2,
doc~keypath=##1,
doc~name={##3},
doc~parameter={##4},
doc~description={##5},
##2
}
{}{key}
}
{
\__tcobox_doc_entry_end:n { key }
}
\NewDocumentEnvironment{#1*}{}
{
\group_begin:
\tcb@doc@toindexfalse
\begin{#1}
}
{
\end{#1}
\group_end:
}
}
it is complex, it is more easy to design a new tcolorbox environment
and I want to make a key like this:
- first replace
/tcb
withtcb
2.then the delimiter/
with_
- then last number `123`` can be changed to any number that can be filled
- the right side is with other text
- here is the template :
change the
/tcb/vig/south
toSYS_VIG_123