From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86528 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: using environments with project structure (in MkIV) Date: Fri, 28 Feb 2014 10:03:15 -0500 Message-ID: <8761nzwa8c.fsf@approx.mit.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393746613 696 80.91.229.3 (2 Mar 2014 07:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2014 07:50:13 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 02 08:50:23 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WK1AC-0006rT-7Z for gctc-ntg-context-518@m.gmane.org; Sun, 02 Mar 2014 08:50:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37F2C101F0; Sun, 2 Mar 2014 08:50:19 +0100 (CET) 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 8OQ6AKZ47dpu; Sun, 2 Mar 2014 08:50:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C2380101E6; Sun, 2 Mar 2014 08:50:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD661101E6 for ; Fri, 28 Feb 2014 16:03:35 +0100 (CET) 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 Io-VgMeQla8H for ; Fri, 28 Feb 2014 16:03:34 +0100 (CET) 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 2FE03101E1 for ; Fri, 28 Feb 2014 16:03:34 +0100 (CET) Original-Received: from dmz-mailsec-scanner-7.mit.edu (dmz-mailsec-scanner-7.mit.edu [18.7.68.36]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1SF3LQM028220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 28 Feb 2014 16:03:33 +0100 X-AuditID: 12074424-f79e26d000000c70-3f-5310a539e51d Original-Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id 52.17.03184.935A0135; Fri, 28 Feb 2014 10:03:21 -0500 (EST) Original-Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s1SF3K5K014993 for ; Fri, 28 Feb 2014 10:03:20 -0500 Original-Received: from approx.mit.edu (pool-71-126-235-4.bstnma.east.verizon.net [71.126.235.4]) (authenticated bits=0) (User authenticated as sanjoy@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s1SF3IsL031730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 28 Feb 2014 10:03:19 -0500 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from ) id 1WJOy4-0003h1-00 for ntg-context@ntg.nl; Fri, 28 Feb 2014 10:03:16 -0500 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (i486-pc-linux-gnu) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsUixCmqrWu5VCDYYOlVLou18xcxOTB6HFu1 mDGAMYrLJiU1J7MstUjfLoEr40DvTNaCpXwV16+sYGtgPMfdxcjBISFgInHgvXEXIyeQKSZx 4d56ti5GLg4hgdlMEs3Pv0M5pxglnjXdZIdw3jJJzNm4lhHC2cgocfrgZEaQUWwCqhJ//weC mCJAo15PDAaZKixgI9H+voUVxBYVCJK43vSUGcRmAapu+74RLM4roC2x9MsuKFtQ4uTMJywg NrOAhMTBFy+YJzDyzUKSmoUktYCRaRWjbEpulW5uYmZOcWqybnFyYl5eapGuuV5uZoleakrp JkZQKLG7qOxgbD6kdIhRgINRiYdXYpFAsBBrYllxZe4hRkkOJiVR3oiFQCG+pPyUyozE4oz4 otKc1OJDjBIczEoivJcWA+V4UxIrq1KL8mFS0hwsSuK8tRa/goQE0hNLUrNTUwtSi2CyMhwc ShK880D2CBalpqdWpGXmlCCkmTg4QYbzAA13AhteXJCYW5yZDpE/xagoJc5rD5IQAElklObB 9cJi/RWjONArwrwzQap4gGkCrvsV0GAmoMGcnmCDSxIRUlINjDIWYksPmEUVV3/7ZLBR/saD tEPPnpR02jvWq08yuMEjnX3smSHzE8HzbgL7yr3iDvcxXi/49olzu8wlru3e3ZysCs5KB246 f52YlfPBTj3M87HqJYWJazZVz8pd882DezZTyFUPToNWfgdVpvNZfxYtWH3Hd0/L/L98fovu zglnORpyfoanjBJLcUaioRZzUXEiADZhdvHQAgAA X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=18.7.68.36; country=US; region=MA; city=Cambridge; postalcode=02139; latitude=42.3646; longitude=-71.1028; metrocode=506; areacode=617; http://maps.google.com/maps?q=42.3646,-71.1028&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LvP3mlK - 4db2ce32a82b - 20140228 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Mailman-Approved-At: Sun, 02 Mar 2014 08:50:15 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86528 Archived-At: I'm having trouble using project structure and font loading together in MkIV. Here's how the problem arises. As Aditya and Wolfgang have pointed out, the recommended way to set up fonts in MkIV is before \starttext or \startcomponent. For a component, the setups usually go in an environment file that is referenced by the project file, and the project file is mentioned with a \project, e.g. \startcomponent test \project testproject \input knuth \stopcomponent However, the \project line has to come *after* \startcomponent. If it comes before \startcomponent, then context doesn't process the component file at all, and no PDF file is generated. An example: \project testproject \startcomponent test \input knuth \stopcomponent (with testproject.tex containing \startproject blah \stopproject) A workaround is to replace the \project line with \environment env where env is what testproject would have included anyway. e.g. \environment env \startcomponent test \input knuth \stopcomponent Here, env.tex has all the setups including the font setups (and one would do the same in the product file, i.e. in the file that includes the components, by putting "\environment env" before the \startproduct). The first problem is that it seems some of the functionality of products, projects, and components is lost. But maybe that's a matter of taste. Another problem is that env.tex doesn't know that one is compiling a product or component---thus, the system modes *product and *component are not defined while reading env.tex. Is there another way of doing project structure that I am missing? My update to the wiki page on project structure (on putting \project before \startcomponent) seems to be wrong, and I'll fix it once I understand what to do! -Sanjoy ___________________________________________________________________________________ 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 ___________________________________________________________________________________