On Sat, 19 Aug 2017, Fabrice Couvreur wrote: > Hello, > I have tried many approaches, but it still does not work. Everything is > passed to the dm-1.tex file (font, footer) but not the header. > \startcomponent dm-1 > > \component MyLayout > > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} > > \input knuth > > \stopcomponent Two things: 1. Use \environment MyLayout instead of \component MyLayout. 2. The environment should be set before \startcomponent. I am attaching a zip file with working code. Aditya