Following the ConTeXt documentation enter link description here I should be able to use this project structure.
- test.tex
\startproject *
\environment test_env
\product test_prod
\stopproject
- test_env.tex
\startenvironment *
\setuphead
[section]
[textstyle=\em]
\stopenvironment
- test_prod.tex
\startproduct *
\project test
\component test_comp
\stopproduct
- test_comp.tex
\startcomponent *
\product test_prod
\section{Test}
Blabla
\stopcomponent
Now, compiling test_prod
gives me the desired result. The environment test_env is applied. But if I compile test_comp
I am getting the standard layout without the setups from the environment file. I need to add a line \project test
to get the desired results. This is not really a big deal but if I understand the documentation correctly this should work without this nevertheless...
\project test
insidetest_comp.tex
instead of\product test_prod
.