Hi Wolfgang,

Thank you, that works indeed. It seems to be incorrect on http://wiki.contextgarden.net/Project_structure; see Example Files/Component.

What is the significance of those two lines, though? The documentation states I can use the Component in any Product even if not specified on the \product line. I assume it just makes sure that the environment file for the Product is pulled in, would that be right? Does it do anything else?

Analogous, the \project line just pulls in environment file for the project?

Thank you,
Malte.


--
“The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe. ― Douglas AdamsDirk Gently's Holistic Detective Agency


On 12 Sep 2016, at 22:29 , Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

12. September 2016 um 13:03
Hi all,

I am just familiarising myself with projects/products/components. I have a number of documents that all belong to a large set of Reference Manuals and so far I have built them all separately and have relied a lot on the simple \input... statement. I assume with projects/products/components I might be able to do something much smarter. Let’s see.

I get stuck quite early on, though. I have created a minimal component file ‘component-1.tex’ and when I build it, context runs into what seems to be an infinite recursion. Here is the file:


\project test-project
\product reference-manual-1
Move the two lines after \startcomponent.
\startcomponent component-1
\starttext
You don’t need \starttext/\stoptext when you use product and component files.

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________