From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110735 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Project structure light Date: Mon, 1 Mar 2021 18:12:38 +0100 Message-ID: <0e763132-3950-77da-5f49-3dee7508c114@gmail.com> References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3541505178385396925==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35380"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.46 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 01 18:13:20 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGm6h-00097U-Rq for gctc-ntg-context-518@m.gmane-mx.org; Mon, 01 Mar 2021 18:13:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6B8E6280E6B; Mon, 1 Mar 2021 18:12:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bQGOsCfJFlZ0; Mon, 1 Mar 2021 18:12:39 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8BD1628113D; Mon, 1 Mar 2021 18:12:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5EF8128113D for ; Mon, 1 Mar 2021 18:12:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QV7BjgBYJzXa for ; Mon, 1 Mar 2021 18:12:37 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.51; helo=mail-ej1-f51.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2F18A280E6B for ; Mon, 1 Mar 2021 18:12:37 +0100 (CET) Original-Received: by mail-ej1-f51.google.com with SMTP id jt13so29648506ejb.0 for ; Mon, 01 Mar 2021 09:12:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=d8L18PZqHrsVyQQ0vIz4IQRoHo8ESBmC7YFVuLPQoFY=; b=P6S3QVoqNqYcV2S+BXto5OcdPMUje9n7cvEDDGSQUJNjnPj0BqABLyK/QoZ9YayI9U tkb6Rdvp6hI3qj81uRnkVfhHlreFQmropKe/GuUIoM6zub4jxQew2R2skDTgS5//SEtT +tB8saleAYYnXmCTVIKUymHxHTee2LZ0DafdBAagprA/f/Pt1cBd8u7vz8DRdhbITkSF ua/5NzFUjjs+2vj9WZCFFbCgsowoiBBU0o+26i1saM5hvpkhEnj75JoPqtA4TIwrb0n3 1DBJXtLHqvSH1dCFZQDt5CamLfIQQ7oTkWOYoP83sukIdfxpKLUSfHKOLakFFpEz5Xhp Sb3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=d8L18PZqHrsVyQQ0vIz4IQRoHo8ESBmC7YFVuLPQoFY=; b=QShbMNbAq6Ws015iLMzqAhEUQy4Tdo5lL5EbbSe/p8iuHijNq+ih7METWIuJ6T7kj3 zBcCpq9UmlC9kUtyoVOAsLlJaU4Dceu7zwn/CR8pMX7YvOf5a3lKRNc3Vazi6h0tWaak snmR3L+twGfSC3Rg0aefRyFhUrA2qaepVONbTq2R3D2KAx+8UC61Yu+x/N8APIEoy8sr fuoaXHDpQ3DO2trV6iVeN+i3p2SY5YgybVeKrAIhMh37ap/OxyuQAAAI2HhgXS/qUSA3 yYy9NfAxTS4ThCNdAcWX0o4sPQG2RL2AGg7mm8oOvvUaxuTddBHtTKAhZuFEAPrArwd7 WHMA== X-Gm-Message-State: AOAM530F8YJe/XYuNs7p0W2mwkdZyv33dFNQK89/QqDhS+qcVXvpNzDd 3I21+8S9PiD0FkNG9CvY8HxQWkY21n8= X-Google-Smtp-Source: ABdhPJyPeg5U1X1Ixo7eAVOCeOWM6pT+OXuE4X3X3Tb8Cy1f3k6QwCvgEgbgr27/dU2716Ks5Ha8Mw== X-Received: by 2002:a17:906:260a:: with SMTP id h10mr17173939ejc.392.1614618756882; Mon, 01 Mar 2021 09:12:36 -0800 (PST) Original-Received: from [192.168.1.4] (dynamic-077-009-091-014.77.9.pool.telefonica.de. [77.9.91.14]) by smtp.gmail.com with ESMTPSA id be27sm85946edb.47.2021.03.01.09.12.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Mar 2021 09:12:36 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:110735 Archived-At: This is a multi-part message in MIME format. --===============3541505178385396925== Content-Type: multipart/alternative; boundary="------------661B7200610E2285A8FCE941" Content-Language: en-US This is a multi-part message in MIME format. --------------661B7200610E2285A8FCE941 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit denis.maier@ub.unibe.ch schrieb am 01.03.2021 um 17:54: > > Hi, > > another question regarding project structure. I want to put each > chapter of a book in a component or a distinct file loaded with > \input, but I don’t want to have a full project structure. Just a main > file and the chapters. Nevertheless, I want to load the environment > file in each subfile. Is that possible or will that cause problems? > There is no problem with this method because environment files are loaded only once, all further attempts to load the same file are ignored. Even though replacing \input with \component can be useful because \component doesn't generate a error when the given file doesn't exist. Wolfgang --------------661B7200610E2285A8FCE941 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit denis.maier@ub.unibe.ch schrieb am 01.03.2021 um 17:54:

Hi,

another question regarding project structure. I want to put each chapter of a book in a component or a distinct file loaded with \input, but I don’t want to have a full project structure. Just a main file and the chapters. Nevertheless, I want to load the environment file in each subfile. Is that possible or will that cause problems?


There is no problem with this method because environment files are loaded only once, all further attempts to load the same file are ignored.

Even though replacing \input with \component can be useful because \component doesn't generate a error when the given file doesn't exist.

Wolfgang

--------------661B7200610E2285A8FCE941-- --===============3541505178385396925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3541505178385396925==--