From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62685 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?q?M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Trouble with ConTeXt's project structure Date: Sun, 17 Oct 2010 21:43:11 +0200 Message-ID: <201010172143.11583.warrence.stm@gmx.de> 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: dough.gmane.org 1287344598 7936 80.91.229.12 (17 Oct 2010 19:43:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2010 19:43:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 17 21:43:17 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P7Z8X-0004Ze-1P for gctc-ntg-context-518@m.gmane.org; Sun, 17 Oct 2010 21:43:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2007CA761; Sun, 17 Oct 2010 21:43:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oefw6pmdq6GO; Sun, 17 Oct 2010 21:43:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A054CA73E; Sun, 17 Oct 2010 21:43:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9464CA73E for ; Sun, 17 Oct 2010 21:43:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id smS7we4p-Ebw for ; Sun, 17 Oct 2010 21:43:08 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 95003CA6F6 for ; Sun, 17 Oct 2010 21:43:08 +0200 (CEST) Original-Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o9HJh7CN021788 for ; Sun, 17 Oct 2010 21:43:08 +0200 Original-Received: (qmail invoked by alias); 17 Oct 2010 19:43:07 -0000 Original-Received: from 77-64-196-235.dynamic.primacom.net (EHLO bragi.localnet) [77.64.196.235] by mail.gmx.net (mp034) with SMTP; 17 Oct 2010 21:43:07 +0200 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX1+la/FKZhCl5zDgjj48uQIhN+o925MkKMG4JKvnEX Kl13XEkSrAm6ig User-Agent: KMail/1.13.5 (Linux/2.6.34.7-56.fc13.i686; KDE/4.4.5; i686; ; ) X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eDjTH7KE - 841fa9324198 - 20101017 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:62685 Archived-At: Dear list, I tried to set up a project of mine using the project structure propagated in the wiki [1]. Because I ran into some trouble I made the following small example (using MkIV, minimals 2010.10.14 13:14). %% project_mymag.tex \startproject project_mymag \environment env_mymag \product prd_year2004-01 \completecontent[criterium=all] \stopproject %% EOF %% env_mymag.tex \startenvironment env_mymag \setupindenting[medium, yes] %some random setup \stopenvironment %% EOF %% prd_year2004-01 \startproduct prd_year2004-01 \project project_mymag \component c_editorial \component c_article01 \stopproduct %% EOF %% c_editorial.tex \startcomponent c_editorial \product prd_year2004-01 \project project_mymag \chapter{Editorial} Dear reader... \stopcomponent %% EOF %% c_article01.tex \startcomponent c_article01 \product prd_year2004-01 \project project_mymag \chapter{First Article} This will be awesome... \stopcomponent %% EOF When I translate the project file I get what I want, e.g. 3 pages: first page "Editorial", second page "First Article", third page "Content". When I translate the product file I don't get "Editorial", "First Article" as expected, but "Content", "Editorial", "First Article". It seems as if context first typesets the project file without going down inside the products again, before typesetting the originally called project. When I translate one of the component files, lets say c_editorial.tex, I get "Contents", "Editorial" instead of just one page "Editorial". Again, it seems as if context first looks inside the project file (without going down) and only then typesets the component. Another case, same problem. If I drop the "product", i.e. I only have a project file including several components, the individual component files and an environment file, kind of the same problems appear. Translating the project file works well. Translating the component file c_editorial.tex results in a PDF with 4 pages (instead of one with "Editorial"): "Editorial", "First Article", "Contents", "Editorial". Context puts the whole project in the PDF and appends the component c_editorial... All this seems very strange to me, especially since a friend told me project structure works pretty well in his projects. I tested on two different machines (Windows Vista and Linux). Am I doing something wrong? Is this a bug or a feature? Thanks for your help in advance. Best wishes, Stefan. [1] http://wiki.contextgarden.net/Project_structure ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________