Thanks Wolfgang, On 2008-07-31 11:38 +100 Wolfgang Schuster
\def\dostartArticle[#1]% {\getparameters[my][title=,#1]% \expanded{\chapter{\mytitle}}}
I have tried wrapping the call to \chapter in \expanded. Hans, also suggested that here: www.ntg.nl/maps/20/12.pdf Unfortunately doesn't seem to work. I think the problem occurs in the final run of TeXexec, whilst finalising the ToC. Is it something to do with the .tuo file? systems : begin file prd-test at line 1 systems : begin file ../env-test at line 2 systems : end file ../env-test at line 2 (./prd-test.tuo ! Undefined control sequence. <argument> \mytitle \listtextcommand #1->\begstrut #1 \endstrut \doattributes ...sname #1#2\@EA \endcsname \fi {#4 }\dostopattributes <argument> ...ont \limitatedlistentry {\mytitle }} \egroup \ifdim \wd 4=\zero... \secondoftwoarguments #1#2->#2 \dosomelistelement ...hss \dostoplistattributes }} \endgraf \nointerlineskip ... ... l.30 ...}{1}{1}{\mytitle }{2--0-1-0-0-0-0-0--1}{1} Just to be clear, \mytitle is defined by \getparameters in my environment file -- 'env-test'. The product 'prd-test' includes the component 'cmp-test'. The problem only occurs when ConTeX tries to build the product, not the component. What is it about the relationship between the product and component that cuases the trouble? Regards, Elliot