![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Hi Hans, how can i use the \dostructurecountercomponent command for my own macros? I tried it with the following code but nothing appear in the tuc file. \starttexcode \installnamespace {test} \installcommandhandler \????test {test} \????test \installstructurelistprocessor{test}{\usestructurelistprocessor{number+title}} \unexpanded\def\test_cmd[#1]#2#3% {\begingroup \edef\currenttest{#1}% \dostructurecountercomponent {test}% \setupcurrenttest \testparameter \detokenizedtestparameter \relax \relax \relax [\c!name=\currenttest,% \s!counter=\currenttest,% \s!hascaption=\v!yes,% \s!hasnumber=\v!yes,% \s!hastitle=\v!yes,% \c!reference=#2,% \c!title=#3, \c!bookmark=]% []% \endgroup} \appendtoks \setuevalue\currenttest{\test_cmd[\currenttest]}% \to \everydefinetest \appendtoks \definenumber[\currenttest]% % \definelist [\currenttest]% \to \everydefinetest \stoptexcode \definetest[test] \starttext \test{test:1}{This is the title!} \getnumber[test] \test{test:2}{This is the next title!} \getnumber[test] \stoptext Wolfgang