![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 14.10.2011 um 12:59 schrieb Wolfgang Schuster:
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}
I found now the reason why the code don’t work, there is \laststructurecountersynchronize after I set the value, when I add it I have the information in the tuc file and when I uncomment \definelist I can also use \placelist to get a list with all entries :) Wolfgang