From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102173 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Need help with project: TeX capacity exceeded Date: Fri, 5 Oct 2018 17:33:55 +0200 Message-ID: References: <5664DE1C-CD1D-41D5-AA80-7EB254FE7D44@elvenkind.com> <873DE7BA-1BA1-4CAF-9F4F-07E4A105EB3A@axelkielhorn.de> <22CD6203-406C-48B1-BD63-584CF04EC3EC@fiee.net> <0831B134-3520-49BA-B09F-8720ECBE7E1B@axelkielhorn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2697330285303331063==" X-Trace: blaine.gmane.org 1538753536 12561 195.159.176.226 (5 Oct 2018 15:32:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2018 15:32:16 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 PostboxApp/6.1.4 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 05 17:32:12 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8S5L-0003Bj-Jg for gctc-ntg-context-518@m.gmane.org; Fri, 05 Oct 2018 17:32:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 265C474A8B; Fri, 5 Oct 2018 17:34:11 +0200 (CEST) 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 uBKDey3rYhrM; Fri, 5 Oct 2018 17:34:10 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6113474A8D; Fri, 5 Oct 2018 17:34:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DB1B674A8B for ; Fri, 5 Oct 2018 17:34:08 +0200 (CEST) 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 7CjbsBlqv2rv for ; Fri, 5 Oct 2018 17:34:07 +0200 (CEST) Original-Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4BEB174A84 for ; Fri, 5 Oct 2018 17:33:57 +0200 (CEST) Original-Received: by mail-wr1-f51.google.com with SMTP id d2-v6so9564991wro.7 for ; Fri, 05 Oct 2018 08:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=cWy7tga/PqMlAEpeXpkPxH0TIjMrVS7YHia6wj7ugZU=; b=riMdWeWA1iNJj4ka35lM9XKhRHiHp4KNIBJOcoZATwyLyUFXFaRh2bKDsYYmvBsqCr Rq6mTPus2XwKIquvALIMv5LM4MusqGpcqVVZCyXRPuFM+6Xs0pVpWQHh9oX1C5qhx8i1 zBPM8zQgvG1ptkaVYr354YxTtfS1wjXFFEuyEeD63FY7XSdkOISr6pGh3iqnMAvu6AFn TE3pgpW5DlNJcvXgOZUG71q61Nsx4IZUBu+Goa3Up85608k+lB470QEp5RdIyWk77nFM fkH/Nrz53qP2kBt/p4wD5k++7X8TvDhwoU9YHk3n6u8PBG39F0I7aQLNV7zB/UhyemXA fV+w== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=cWy7tga/PqMlAEpeXpkPxH0TIjMrVS7YHia6wj7ugZU=; b=gLzIulMxOZRFFjbNCqm7gGqPGNotydGgVb1qoWTSvetTBVJcD41pSJonFYVySJT97J 9d9d2giB/6nw+j5om2f7rhAnw2EL60Hb7GZwzf7Je1xKtQJY9+3b04/QfJzIDyyGugZ8 kRVoqPrdgt6R3zTvzs1S0SAyLvXrOqmrnA6xkg8L6LqU4YDHgAvOZ9W9LyQMPKOcEH/0 lasUJaF9aL6pAKNnGWwYmuW53r0uxJqq9co3Bl2uHDC7GxKBB18mVQSvBtxrl0d5KxI9 bHSMOXysHcMSqAKN9UbOaejOiYgqwsarJ6SgTTD7MCi8Ov+EX9ArmH4SoODPbwVncx6p N89Q== X-Gm-Message-State: ABuFfojQusxbHyMKwCQnw1hlzgoSPzgOkPJQ4Vt7/UaE6bTp4GqwFLrD hFeiSH/tg+vSTa3nVvVyWEYtplTf X-Google-Smtp-Source: ACcGV63m9gcuxc+mR8pdS/6gjcKfUd0WoWrB9ZW9ONCgJmYOc6ABi/kEak6/maPNWp4kNVX9AAhC0g== X-Received: by 2002:a5d:4b06:: with SMTP id v6-v6mr8079236wrq.87.1538753636722; Fri, 05 Oct 2018 08:33:56 -0700 (PDT) Original-Received: from [192.168.1.9] (x4d097294.dyn.telefonica.de. [77.9.114.148]) by smtp.gmail.com with ESMTPSA id j203-v6sm2540851wmd.46.2018.10.05.08.33.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 08:33:55 -0700 (PDT) In-Reply-To: <0831B134-3520-49BA-B09F-8720ECBE7E1B@axelkielhorn.de> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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.org gmane.comp.tex.context:102173 Archived-At: This is a multi-part message in MIME format. --===============2697330285303331063== Content-Type: multipart/alternative; boundary="------------1CBEA13281BB48F7B0EB4BD3" Content-Language: en-US This is a multi-part message in MIME format. --------------1CBEA13281BB48F7B0EB4BD3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I took a look at your example files and there a few things which can be improved. Product file: 1. You don’t need the actual name of the current file and use * instead 2. You can use brackets as delimiters for the file name instead of a space after the name 3. In products you can put all content in a document environment which has hooks to insert text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done with \setupinteraction but \startdocument is nicer). A minimal file would be     \startproduct [*]     \project [project_skel]     \startdocument     \component [c_01]     \component [c_02]     \stopdocument     \stopproduct or     \startproduct [*]     \project [project_skel]     \startdocument     \startbodymatter     \component [c_01]     \component [c_02]     \stopbodymatter     \stopdocument     \stopproduct Environment file: 1. Don’t load the project from your environment file 2. Don’t use \usepath to set the folders for the product files, use it instead to set the folders for your component files which are loaded from the products 3. You can remove the braces around the subfolder which aren’t necessary. Wolfgang Axel Kielhorn schrieb am 05.10.18 um 08:31: >> Am 04.10.2018 um 20:59 schrieb Henning Hraban Ramm : >> >> Am 2018-10-04 um 10:08 schrieb Axel Kielhorn : >> >>> Thus having the whole file inside \start{project|product|component} \stop… would be a good idea and consistent. >> That’s what I do. >> Since I wrote that wiki page (some years ago) I’ll change it. > I appreciate that. > > How about offering a skeleton project for download? > > Here is my corrected ECM with the following README: > > This is a skeleton project. > You can copy it and change the files to contain your content. > > The top level project collects metatdata to make all products have the same > layout. It is not meant to be processed by context. > > The products are used to generate the whole book, but you can process each > component seperately to reduce the processing time. > > > > > > > Greetings > Axel > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ --------------1CBEA13281BB48F7B0EB4BD3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I took a look at your example files and there a few things which can be improved.


Product file:

1. You don’t need the actual name of the current file and use * instead

2. You can use brackets as delimiters for the file name instead of a space after the name

3. In products you can put all content in a document environment which has hooks to insert text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done with \setupinteraction but \startdocument is nicer).

A minimal file would be

    \startproduct [*]

    \project [project_skel]

    \startdocument

    \component [c_01]
    \component [c_02]

    \stopdocument

    \stopproduct

or

    \startproduct [*]

    \project [project_skel]

    \startdocument

    \startbodymatter

    \component [c_01]
    \component [c_02]

    \stopbodymatter

    \stopdocument

    \stopproduct


Environment file:

1. Don’t load the project from your environment file

2. Don’t use \usepath to set the folders for the product files, use it instead to set the folders for your component files which are loaded from the products

3. You can remove the braces around the subfolder which aren’t necessary.


Wolfgang



Axel Kielhorn schrieb am 05.10.18 um 08:31:

  
Am 04.10.2018 um 20:59 schrieb Henning Hraban Ramm <texml@fiee.net>:

Am 2018-10-04 um 10:08 schrieb Axel Kielhorn <tex@axelkielhorn.de>:

Thus having the whole file inside \start{project|product|component} \stop… would be a good idea and consistent.
That’s what I do.
Since I wrote that wiki page (some years ago) I’ll change it.
I appreciate that.

How about offering a skeleton project for download?

Here is my corrected ECM with the following README:

This is a skeleton project.
You can copy it and change the files to contain your content.

The top level project collects metatdata to make all products have the same
layout. It is not meant to be processed by context.

The products are used to generate the whole book, but you can process each
component seperately to reduce the processing time.






Greetings
Axel


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

--------------1CBEA13281BB48F7B0EB4BD3-- --===============2697330285303331063== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2697330285303331063==--