\setupfloat[..][..., after=\stopframedtext] not working?
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. Gr. Matthijs
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 however, floats can have frames anyway so you don't need the framedtext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
however, floats can have frames anyway so you don't need the framedtext I was not after the frame, but after the width. I want to put some text in a float and have the main body text wrap around that. I can do this by putting
Hi Hans, the startframedtext inside the placeintermezzo call, but I'd like to do this only once... Gr. Matthijs
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
participants (3)
-
Hans Hagen
-
Matthijs Kooijman
-
Wolfgang Schuster