What I am doing wrong?
Ignore the project file and load the environment file instead at the begin of your product and component files.
Wolfgang
This is not working! And what shall I do if I have more than one product? Wolfgang ------------------------------------ mtx-context | run 1: luatex --fmt="E:/LuaTeX/tex/texmf- cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en" --jobname="pd-medizin" --lua="E:/LuaTeX/tex/texmf-cache/luatex- cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont- en.lui" --no-parse-first-l ine --c:autopdf --c:currentrun=1 --c:fulljobname="./pd-medizin.tex" -- c:input="./pd-medizin.tex" --c:kindofrun=1 --c:maxnofruns=8 "cont- yes.mkiv" This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5024) \write18 enabled. (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.11.01 15:02 MKIV beta fmt: 2014.6.29 int: english/english system > 'cont-new.mkiv' loaded (E:/LuaTeX/tex/texmf-context/tex/context/base/cont-new.mkiv) system > files > jobname 'pd-medizin', input './pd-medizin', result 'pd-medizin' fonts > latin modern fonts are not preloaded languages > language 'en' is active (//HP/ga/Medizin/pd-medizin.tex (env-medizin.tex fonts > preloading latin modern fonts (third stage) fonts > typescripts > unknown library 'loc' {E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- math.map}{E:/LuaTeX/tex/texmf/fonts/map/dvips/lm/lm- rm.map}{E:/LuaTeX/tex/texmf-context/fonts/map/pdftex/context/mkiv- base.map} fonts > 'fallback modern ss 11pt' is loaded ) (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex ( pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd- medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex (pd-medizin.tex (test.tex ! TeX capacity exceeded, sorry [text input levels=127] system > tex > error on line 5 in file test.tex: TeX capacity exceeded, sorry [ ... 1 \environment env-medizin 2 %\project pj-medizin 3 \product pd-medizin 4 \startcomponent test 5 >> test 6 \stopcomponent 7 ! ==> Fatal error occurred, no output PDF file produced! mtx-context | fatal error: return code: 1>Exit code: 1 ------------------------------------