I use TeXLive 2011 and I get the following error (the file name is custo.tex):

mtx-context | warning: synctex is enabled

mtx-context | run 1: luatex --synctex=1 --fmt="C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en" --lua="C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui" --backend="pdf" "./custo.tex"

This is LuaTeX, Version beta-0.70.1-2011061421 (rev 4277)

\write18 enabled.

(custo.tex

ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2013.4.23 int: english/english

system > cont-new.mkiv loaded

(C:/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv

system > beware: some patches loaded from cont-new.mkiv

)

system > custo.top loaded

(custo.top)

fonts > latin modern fonts are not preloaded

languages > language en is active

{C:/texlive/2011/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}

fonts > preloading latin modern fonts (second stage)

(C:/texlive/2011/texmf-dist/tex/context/base/type-siz.mkiv) (C:/texlive/2011/texmf-dist/tex/context/base/type-otf.mkiv){C:/texlive/2011/texmf-dist/fonts/map/dvips/lm/lm-math.map}{C:/texlive/2011/texmf-dist/fonts/map/dvips/lm/lm-rm.map}

fonts > virtual math > unable to resolve name mapsfromchar

fonts > fallback modern rm 12pt is loaded

system > begin file custo.tex at line 18

structure > sectioning > chapter @ level 2 : 0.1 -> This is a chapter

! Undefined control sequence.

system > tex > error on line 19 in file custo.tex: Undefined control sequence ...

9 \stopuseMPgraphic

10

11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber}]

12

13 \define[1]\PagenumberCommand

14 {\framed[frame=off,background=pagenumber]{#1}}

15

16 \setuppagenumbering[command=\PagenumberCommand]

17

18 \starttext

19 >> \chapter{This is a chapter}

20 \stoptext

\ChapterCommand #1#2->\startframed

[frame=off,bottomframe=on,framecolor=oran...

\placestructureheadnumbertext ...uctureheadtitle }

}\fi \endheadplacement {\g...

\dohandlestructurehead ...structureheadnumbertext

\else \placestructureheadt...

l.19 \chapter{This is a chapter}

?

! Undefined control sequence.

system > tex > error on line 19 in file custo.tex: Undefined control sequence ...

9 \stopuseMPgraphic

10

11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber}]

12

13 \define[1]\PagenumberCommand

14 {\framed[frame=off,background=pagenumber]{#1}}

15

16 \setuppagenumbering[command=\PagenumberCommand]

17

18 \starttext

19 >> \chapter{This is a chapter}

20 \stoptext

\ChapterCommand ...\hspace [medium]#2 \stopframed

\placestructureheadnumbertext ...uctureheadtitle }

}\fi \endheadplacement {\g...

\dohandlestructurehead ...structureheadnumbertext

\else \placestructureheadt...

l.19 \chapter{This is a chapter}

?

metapost > initializing instance 'metafun' using format 'metafun'

metapost > loading 'metafun.mp' (experimental metapost version two)

backend > xmp > using file 'C:/texlive/2011/texmf-dist/tex/context/base/lpdf-pdx.xml'

pages > flushing realpage 1, userpage 1, subpage 1

system > end file custo.tex at line 20

)<C:/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf>

mkiv lua stats > used config file - selfautoparent:/texmfcnf.lua;selfautoparent:/texmf/web2c/texmfcnf.lua

mkiv lua stats > used cache path - readable: 'C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026' (order 1)

mkiv lua stats > used cache path - writable: 'C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026'

mkiv lua stats > synctex tracing - synctex has been enabled (extra log file generated)

mkiv lua stats > input load time - 0.314 seconds

mkiv lua stats > stored bytecode data - 285 modules, 60 tables, 345 chunks

mkiv lua stats > cleaned up reserved nodes - 33 nodes, 9 lists of 423

mkiv lua stats > node memory usage - 27 glue_spec

mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 2385 calls

mkiv lua stats > used backend - pdf (backend for directly generating pdf output)

mkiv lua stats > loaded patterns - en::2

mkiv lua stats > callbacks - 2542 direct, 2985 indirect, 5527 total

mkiv lua stats > randomizer - resumed with value 0.59913937803278

mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls

mkiv lua stats > result saved in file - custo.pdf

mkiv lua stats > loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm

mkiv lua stats > fonts load time - 0.561 seconds

mkiv lua stats > metapost processing time - 0.002 seconds, loading: 0.201 seconds, execution: 0.002 seconds, n: 1

mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2011061421 (web2c 2011) (rev 4277)

mkiv lua stats > control sequences - 30346 of 165536

mkiv lua stats > current memory usage - 38 MB (ctx: 39 MB)

mkiv lua stats > runtime - 33.436 seconds, 1 processed pages, 1 shipped pages, 0.030 pages/second

SyncTeX written on custo.synctex.gz.

mtx-context | fatal error: return code: 1


Thanks again.

--
Manuel González Suárez