From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setupfloat[..][..., after=\stopframedtext] not working?
Date: Sat, 5 Dec 2009 09:33:52 +0100 [thread overview]
Message-ID: <7D075AB1-8760-4DEF-ADCE-699BB8D125EC@googlemail.com> (raw)
In-Reply-To: <4B16848E.50603@wxs.nl>
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
___________________________________________________________________________________
prev parent reply other threads:[~2009-12-05 8:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 12:24 Matthijs Kooijman
2009-12-02 15:15 ` Hans Hagen
2009-12-02 15:29 ` Matthijs Kooijman
2009-12-05 8:33 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7D075AB1-8760-4DEF-ADCE-699BB8D125EC@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).