1

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...

4
  • Use \project test inside test_comp.tex instead of \product test_prod. May 6, 2019 at 23:29
  • @HenriMenke So the documentation is wrong here? How could I've known?
    – Denis
    May 7, 2019 at 4:20
  • 2
    The project structure is a bit confusing for me as well. I'm not sure myself how it works. I only know that projects are essentially collections of environments, so it seems natural to include the project within a product or component. May 7, 2019 at 4:38
  • 1
    Yes, but I would have thought that if we add the project to the product it will be inherited by the component. At least this is what the wiki indicates. But obviously this is not the case here... Perhaps something to ask on the list...
    – Denis
    May 7, 2019 at 8:06

0

You must log in to answer this question.

Browse other questions tagged .