[NTG-context] Project structure with nested subfolders and shared environments.

denis.maier at unibe.ch denis.maier at unibe.ch
Fri Dec 16 11:19:32 CET 2022

Another think you might want to consider: automatic local overrides. So, I’d copy everthing to a build folder, copy the environment from somewhere above unless the current folder contains a file with the same name.


Von: ntg-context <ntg-context-bounces at ntg.nl> Im Auftrag von Pawel Urbanski via ntg-context
Gesendet: Freitag, 16. Dezember 2022 11:01
An: mailing list for ConTeXt users <ntg-context at ntg.nl>
Cc: Pawel Urbanski <urbanski.pawel at gmail.com>
Betreff: Re: [NTG-context] Project structure with nested subfolders and shared environments.

Thank you for responses. While the ability to sort of inherit setups would be very useful it looks like as of time of posting this message in December 2022 it is not possible.
As a workaround I will create a shead environment file and just bulk copy it to subfolders. In case when I'll need to globally change some configuration I can just replace the file.
I keep all my documents in GIT so the ability to reverte hte change is just a command away.

Thanks for help.


On Fri, Dec 16, 2022 at 10:55 AM Henning Hraban Ramm via ntg-context <ntg-context at ntg.nl<mailto:ntg-context at ntg.nl>> wrote:
Am 16.12.22 um 10:09 schrieb Pawel Urbanski via ntg-context:
> When I compile a document I switch to the SubSubFolder for the document
> file is in there.

In my experience this won’t work. ConTeXt searches from the current
folder (you can configure search paths, but I gave up on that, and you’d
have to do it in the called file).

It should be enough to call the environment from the project, but either
the project or the environment isn’t found if the path doesn’t fit the
call location.

If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at ntg.nl<mailto:ntg-context at ntg.nl> / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20221216/700e1ed9/attachment-0001.htm>

More information about the ntg-context mailing list