Elliot Clifton wrote: > 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 [EMAIL PROTECTED] \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?
it might depend on the order, i.e. when the need is there to load the tuo file, the \mytitle might not be defined yet; make sure you load the env as soon as possible ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________