Am 02.12.2009 um 16:15 schrieb Hans Hagen:
Matthijs Kooijman wrote:
Hi all, the following example is not working for me: \setupfloat[intermezzo][before=\startframedtext[width=10cm],after=\stopframedtext] \starttext \placeintermezzo{Caption}{Text} \stoptext It fails with the following message: ! Undefined control sequence. \stopframedtext ->\dostopframedtext l.1 ...ramedtext[width=10cm],after=\stopframedtext ] Am I doing anything wrong, or is there perhaps another way to achieve this? I've tried passing width=10cm to \setupfloat as well as \placefloat, but that doesn't seem to do anything.
indeed, way to complex to do that as floats can move around
but not impossible when you ignore the caption which comes after \stopframed is added \starttext \vbox{\input knuth } \startframedtext \vbox{\input knuth } \stopframedtext \def\checknextbox {\ifx\next\bgroup \expandafter\setbox\expandafter\nextbox\expandafter\vbox\expandafter\bgroup\expandafter\startframedtext\expandafter\bgroup\expandafter\aftergroup\expandafter\stopframedtext\expandafter\aftergroup\expandafter\egroup\expandafter\let\expandafter\next \else \expandafter\setbox\expandafter\nextbox\expandafter\vbox \fi} \futurelet\next\checknextbox\bgroup text\egroup \box\nextbox \futurelet\next\checknextbox{text} \box\nextbox \futurelet\next\checknextbox\starttable[|l|l|]\HL\NC text \NC text \NC\SR\HL\stoptable \box\nextbox \stoptext Wolfgang