I have the following command which I am using as part of \setuphead[chapter]:

\define[2]\MyChapterCommand%

{\framed[frame=on,bottomframe=on,leftframe=off,rightframe=off,topframe=off,align=middle]

{\vbox{\headtext{chapter} #1 \blank #2}}}

Together with the rest of the \setuphead[chapter] elements, it functions correctly, as indeed it should

But as soon as I place the full description of the chapter head between a \startsetups.... \stopsetups (since I wanted to create a few different chapter possibilities as setups to choose from), the hashes in the above command cause an error.

The error reads: You meant to type ## instead of # right?..... fatal error...

Why is this?

Julian