* \setupfloat[..][..., after=\stopframedtext] not working?
@ 2009-12-02 12:24 Matthijs Kooijman
2009-12-02 15:15 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Matthijs Kooijman @ 2009-12-02 12:24 UTC (permalink / raw)
To: Mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 613 bytes --]
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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupfloat[..][..., after=\stopframedtext] not working?
2009-12-02 12:24 \setupfloat[..][..., after=\stopframedtext] not working? Matthijs Kooijman
@ 2009-12-02 15:15 ` Hans Hagen
2009-12-02 15:29 ` Matthijs Kooijman
2009-12-05 8:33 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2009-12-02 15:15 UTC (permalink / raw)
To: Mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupfloat[..][..., after=\stopframedtext] not working?
2009-12-02 15:15 ` Hans Hagen
@ 2009-12-02 15:29 ` Matthijs Kooijman
2009-12-05 8:33 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Matthijs Kooijman @ 2009-12-02 15:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 343 bytes --]
Hi Hans,
> 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
the startframedtext inside the placeintermezzo call, but I'd like to do this
only once...
Gr.
Matthijs
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \setupfloat[..][..., after=\stopframedtext] not working?
2009-12-02 15:15 ` Hans Hagen
2009-12-02 15:29 ` Matthijs Kooijman
@ 2009-12-05 8:33 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2009-12-05 8:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-05 8:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-02 12:24 \setupfloat[..][..., after=\stopframedtext] not working? Matthijs Kooijman
2009-12-02 15:15 ` Hans Hagen
2009-12-02 15:29 ` Matthijs Kooijman
2009-12-05 8:33 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).