From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42901 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Error when calling \placecontent from product Date: Fri, 01 Aug 2008 11:45:54 +0200 Message-ID: <4892DB52.1000407@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217584046 32362 80.91.229.12 (1 Aug 2008 09:47:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 09:47:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 01 11:48:16 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KOrF6-00070O-Sj for gctc-ntg-context-518@m.gmane.org; Fri, 01 Aug 2008 11:48:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EDC161FB8C; Fri, 1 Aug 2008 11:47:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13862-03-7; Fri, 1 Aug 2008 11:46:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 410201FC24; Fri, 1 Aug 2008 11:46:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42C2C1FC24 for ; Fri, 1 Aug 2008 11:46:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13862-03-6 for ; Fri, 1 Aug 2008 11:45:54 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 19F891FBBE for ; Fri, 1 Aug 2008 11:45:53 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 8979-1840426 for ; Fri, 01 Aug 2008 11:45:53 +0200 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:42901 Archived-At: 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. > \mytitle > > \listtextcommand #1->\begstrut #1 > \endstrut > \doattributes ...sname #1#2\@EA \endcsname \fi {#4 > }\dostopattributes > ...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 ___________________________________________________________________________________