From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/42883 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Error when calling \placecontent from product Date: Thu, 31 Jul 2008 12:38:09 +0200 Message-ID: <115224fb0807310338u175d5416p4e34b9d2e8deafd2@mail.gmail.com> 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 1217500793 13826 80.91.229.12 (31 Jul 2008 10:39:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Jul 2008 10:39:53 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 31 12:40:42 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 1KOVaE-00084u-My for gctc-ntg-context-518@m.gmane.org; Thu, 31 Jul 2008 12:40:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2ADA11FC45; Thu, 31 Jul 2008 12:39:37 +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 03842-03-15; Thu, 31 Jul 2008 12:38:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 742A31FBF1; Thu, 31 Jul 2008 12:38:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66C601FBF1 for ; Thu, 31 Jul 2008 12:38:44 +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 03842-03-14 for ; Thu, 31 Jul 2008 12:38:11 +0200 (CEST) Original-Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by ronja.ntg.nl (Postfix) with ESMTP id 0FC9C1FB72 for ; Thu, 31 Jul 2008 12:38:10 +0200 (CEST) Original-Received: by an-out-0708.google.com with SMTP id c8so78825ana.14 for ; Thu, 31 Jul 2008 03:38:10 -0700 (PDT) Original-Received: by 10.100.164.10 with SMTP id m10mr14438085ane.120.1217500689907; Thu, 31 Jul 2008 03:38:09 -0700 (PDT) Original-Received: by 10.100.109.20 with HTTP; Thu, 31 Jul 2008 03:38:09 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:42883 Archived-At: On Thu, Jul 31, 2008 at 12:32 PM, Elliot Clifton wrote: > Hi, > > I'd appreciated some help with the following problem. How can I stop > the following code generating an error on calling \placecontent from a > product? > > In the test case I have files: env-test, prd-test, cmp-test. > > \startenvironment [env-test] > \def\dostartArticle[#1]% generate article header with > {\getgparameters[my][#1] > \chapter{\mytitle} > } \def\dostartArticle[#1]% {\getparameters[my][title=,#1]% \expanded{\chapter{\mytitle}}} > \def\dostopArticle{% > \page} > > \def\startArticle{\dosingleempty\dostartArticle} > \def\stopArticle{\dosingleempty\dostopArticle} > \stopenvironment > > > \startproduct prd-test > \environment ../env-test > \placecontent %fails with Undefined control sequence \mytitle > \component cmp-test > \stopproduct > > > \startcomponent[cmp-test] > \product prd-test > \environment env-test > %\placecontent %works here > \startArticle[title={Into the unknown}, author={A. U. Thor}] %author > parameter unused in test, just example of what I expect \startArticle > to look like > \input knuth > \stopArticle > \stopcomponent > > > Any ideas how to make this work? > > TIA, > > Elliot Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________