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
___________________________________________________________________________________