\startenvironment env_corrige \startluacode userdata = userdata or {} function userdata.Critere (commentaire,note,notemax) context.startxcell { "width=11cm", "height=2.75cm" } context(userdata.Eleve[commentaire]) context.stopxcell () context.startxcell { "width=1.5cm", "align=flushright" } context("%s/%s",userdata.Eleve[note], notemax) context.stopxcell () end \stopluacode \startbuffer [ExoCorrection] \startxtable \startxrow \startxcell \ctxlua {userdata.Critere ("structure", "NoteStructure", 2)} \stopxcell \stopxrow \stopxtable \stopbuffer \stopenvironment