OK, I think I tracked it down

this works:

\setuphead[chapter]
[style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, foregroundcolor=black, background=color, backgroundcolor=bgGrey1, framecolor=bgGrey2,offset=0.25cm,
rulethickness=0.05cm, frame=off, topframe=on,  bottomframe=on]\crlf},after={\stopframedtext\blank[4cm]}]


but these two raises the error:

\setuphead[section][style=\ss\tfb, before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaBlue]\textrule \color[fontColor]\stopframedtext}]

\setuphead[subsection][style=\ss\tfb,before={\startframedtext[frame=off]\color[cirmaGrey]}, after={\color[cirmaOrange]\textrule\color[fontColor]\stopframedtext}]

Best
-a-



--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - StudiUm
Università degli Studi di Torino
--------------------------------------------------

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

On 25 Feb 2014, at 14:42, Andrea Valle <valle@di.unito.it> wrote:

Thanks Wolfgang
I attach you the files I’m using. I didn’t want to bother the list with long stuff. 
But I can’t reproduce this on a short example.
I’m compiling c_00_introduzione (a chapter)

Thanks

Best

-a-



<c_00_introduzione.tex>
<env_scMaterials.tex>
<project_scMaterials.tex>

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - StudiUm
Università degli Studi di Torino
--------------------------------------------------

"This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." 
(Jeffrey 'The Dude' Lebowski)

On 25 Feb 2014, at 11:30, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:


Am 25.02.2014 um 10:57 schrieb Andrea Valle <valle@di.unito.it>:

Dear list,

I'm rewriting a handbook I wrote with ConTeXt.
While testing typography, I'm recompiling the sources now with Mark IV.
My sources still compile fine with ConTeXt, buyt I'm getting this error with Mark IV.

! You can’t use ‘\end’ in internal vertical mode

Can anyone shed some light?

Without more information I can only guess what the problem is.

One possibility is that you have product, component or TeXpage environment
used inside of \framed or a framed text environment. Another possibility is a forgotten
\start command of one the previous mentioned environments.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________