Am 03.05.2013 um 00:27 schrieb MANUEL GONZALEZ SUAREZ <gonzalezsmanuel@uniovi.es>:

Wolfgang Thanks for your help.
Your definition to customize the number of page works, but the command definition \ ChapterCommand gives me a compilation error. (with LuaTeX and MKIV).

I guess you’re using a older context version (TeXLive 2012?) where you have to use

  \unexpanded\def\ChapterCommand#1#2{…}

Wolfgang